frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Show HN: Renotify – A WhatsApp operations platform for teams and agencies

https://renotify.app
1•richbowen•1m ago•0 comments

Keeping Shai-Hulud Off the Mélange

https://blog.barthe.ph/2026/08/23/keeping-shai-hulud-off-the-m%C3%A9lange/
1•jackjeff•2m ago•0 comments

Harvard's $699 startup bootcamp offers AI avatars of its instructors

https://techcrunch.com/2026/08/22/harvards-699-startup-bootcamp-offers-ai-avatars-of-its-instruct...
1•Brajeshwar•3m ago•0 comments

Why Silicon Valley Is Losing Public Trust in AI Data Centers and Surveillance CM

https://moztako.me/ai-data-centers-and-surveillance-cameras/
2•Jefmz•5m ago•0 comments

Robot boxing, football and sprinting at World Humanoid Games

https://www.bbc.co.uk/news/videos/c7vgvj6e1emo
1•mmarian•6m ago•0 comments

Vit D assoc w better cognition in those w sleep disturb./mild cognitive impair

https://www.sciencedirect.com/science/article/abs/pii/S1389945726001991?via%3Dihub
2•bookofjoe•10m ago•0 comments

Multi-Agent Debate Strategies: Survey, Taxonomy, and Challenges

https://arxiv.org/abs/2607.26212
1•wslh•10m ago•0 comments

Unlazy: Anti-laziness skill for AI agents

https://github.com/Leonxlnx/unlazy
1•mpgirro•11m ago•0 comments

Default Alive

https://alearningaday.blog/2026/08/23/default-alive/
1•herbertl•13m ago•0 comments

Free Pixelart-Style Icons

https://pixelarticons.com/
1•halfmage•13m ago•0 comments

Geometric Flow Visualization by Controllable Shape and Volumetric Appearance

https://momentsingraphics.de/STAG2022.html
1•ibobev•13m ago•0 comments

Vintage Computer Fair West 2026

https://bumbershootsoft.wordpress.com/2026/08/22/vintage-computer-fair-west-2026/
1•ibobev•14m ago•0 comments

Kodak DC50 now usable on the Apple II

https://www.colino.net/wordpress/archives/2026/08/23/kodak-dc50-now-usable-on-the-apple-ii/
2•ibobev•14m ago•0 comments

Saab unveils new uncrewed combat air system concept

https://www.aerotime.aero/articles/saab-unveils-new-uncrewed-combat-air-system-concept
1•r2sk5t•15m ago•1 comments

GLM-5.3 (open-weight) beat Anthropic/OpenAI models – for 1/5 the cost

https://reinvently.co.uk/tools/ed-o-meter/
2•ed-is-ai•16m ago•1 comments

Being nude in public can make us feel better about our bodies

https://www.bbc.com/future/article/20260820-how-social-nudity-can-boost-your-body-image
2•vinni2•19m ago•0 comments

Cudametal – vibecoded Python translator from .cu to mpl

https://github.com/martinkunc/cudametal
1•mkunc•19m ago•0 comments

Alpha-Gal Syndrome (AGS)

https://en.wikipedia.org/wiki/Alpha-gal_syndrome
1•burnt-resistor•19m ago•1 comments

AI Chip Architectures

https://www.jepeake.com/ai-chip-architectures
1•mellosouls•20m ago•0 comments

Three tough truths about climate – Bill Gates

https://www.gatesnotes.com/three-tough-truths-about-climate
1•paulpauper•20m ago•1 comments

I quit the tenure track: The insufferable hypocrisy of elite academia

https://www.theatlantic.com/magazine/2026/09/elite-academia-leadership-hypocrisy/687969/
2•vinni2•23m ago•0 comments

Why has sociology become so politicised?

https://www.optimallyirrational.com/p/why-has-sociology-become-so-politicised
1•paulpauper•25m ago•0 comments

Did you made a copycat after outbid.lol?

2•alexcloudstar•29m ago•0 comments

Wicker Man director's sons complete their late father's film trilogy

https://www.bbc.co.uk/news/articles/cj36kv62g7yo
1•rdmuser•29m ago•0 comments

How to Report a Bug So It Gets Fixed

https://blog.tymscar.com/posts/howtoreportabug/
1•tymscar•30m ago•0 comments

Giving ChatGPT access to Apple Messages is dangerous and irresponsible

https://paulfwalsh.substack.com/p/giving-chatgpt-access-to-apple-messages
2•taubek•32m ago•0 comments

Postgres 19: How Our Advice Has Changed

https://www.crunchydata.com/blog/postgres-19-how-our-advice-has-changed-since-we-wrote-it
1•plaur782•32m ago•0 comments

Show HN: Dev // Cyber Toolkit – a free floating dev/cybersecurity widget

https://dev-cyber-toolkit.netlify.app
1•axoupicsou•33m ago•1 comments

2-click code execution vulnerability on Omarchy Linux

https://twitter.com/mdisec/status/2091293921468932420
1•ozirus•34m ago•0 comments

Mcpsnoop fails CI on what your MCP server did on the wire

https://github.com/marketplace/actions/mcpsnoop
1•kerlenton•35m ago•0 comments