frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

AWS says data center overheating in North Virginia disrupts services

https://www.reuters.com/business/retail-consumer/amazon-cloud-unit-says-data-center-overheating-n...
1•christhecaribou•4m ago•0 comments

Replit's Amjad Masad on Cursor deal, Apple fight, and why he'd rather not sell

https://techcrunch.com/2026/05/01/replits-amjad-masad-on-the-cursor-deal-fighting-apple-and-why-h...
1•gmays•6m ago•0 comments

Sley is live: the first native AI programming language

https://github.com/GreyforgeLabs/sley
1•Greyforge•9m ago•1 comments

Evaluating Geekbench 6

https://chipsandcheese.com/p/evaluating-geekbench-6
1•wmf•26m ago•0 comments

Canadian sues DHS over alleged Google data grab tied to social media posts

https://www.cbc.ca/news/world/us-dhs-aclu-lawsuit-canadian-john-doe-9.7187851
2•cdrnsf•33m ago•0 comments

How to Generate Terraform from Existing AWS Resources

https://www.ops0.com/blog/generate-terraform-from-existing-aws-resources
1•sureshpaulchamy•35m ago•0 comments

Worlds first OptoSAR Satellite launched

https://www.indiatoday.in/science/story/galaxeye-mission-drishti-optosar-satellite-launch-india-p...
3•raks619•37m ago•0 comments

Australian Renewable Energy Hub

https://research.csiro.au/hyresource/australian-renewable-energy-hub/
1•mooreds•37m ago•0 comments

Critical RCE found in Obsidian Tasks plugin

https://zeroquarry.com/research/obsidian-tasks-rce/
4•eskibars•39m ago•1 comments

AI at Discount

https://tomtunguz.com/ai-at-discount/
1•swolpers•42m ago•0 comments

Data Race Freedom in OxCaml

https://kcsrk.info/ocaml/oxcaml/x-ocaml/blogging/2026/05/07/data-race-freedom-in-oxcaml/
1•matt_d•45m ago•0 comments

Got the syntax highlighting right, theming too – EaglePress.org v1.43

https://eaglepress.org
2•eagle10ne•45m ago•0 comments

Show HN: Loxai.tech and Neutboom – Gen AI's frontier of individuality

https://www.neutboom.com
1•audreyfei•46m ago•0 comments

SpaceX is starting to move on from the most successful rocket

https://arstechnica.com/space/2026/05/spacex-is-starting-to-move-on-from-the-worlds-most-successf...
1•rbanffy•46m ago•0 comments

Mojo 1.0 Beta

https://mojolang.org/
2•sbt567•47m ago•0 comments

Why Are Morel Mushrooms Hard to Grow?

https://mushroomwowhub.com/why-are-morel-mushrooms-hard-to-grow/
2•thunderbong•47m ago•0 comments

Coding plan comparisons based on actual usage

https://sites.diy/blog/2026-05-01-coding-plan-comparisons/
1•gmays•52m ago•0 comments

DNA matches identify four more sailors from Franklin expedition

https://uwaterloo.ca/news/media/dna-matches-identify-four-more-sailors-franklin-expedition
1•bandrami•53m ago•0 comments

Claude Code CVE-2026-39861:sandbox escape via symlink

https://github.com/advisories/GHSA-vp62-r36r-9xqp
2•Armor1AI•56m ago•1 comments

Anthropic response to 1-click pwn: Shouldn't have clicked 'ok'

https://www.theregister.com/security/2026/05/07/claude-code-trust-prompt-can-trigger-one-click-rc...
3•Lihh27•57m ago•0 comments

Hexo accidentally made the repository private and lost all stars

https://github.com/orgs/hexojs/discussions/5775
1•ZeroAurora•58m ago•0 comments

Stop paying twice for storage. Use your spare webhosting as your own cloud drive

https://github.com/KyleBenzle/FreeCloud
1•Hilliard_Ohiooo•1h ago•0 comments

Thermal event affecting AWS AZ use1-az4

https://health.aws.amazon.com/health/status#786566
4•themenomen•1h ago•0 comments

Companies help parents try to pick their babies' traits

https://text.npr.org/nx-s1-5704317
1•mooreds•1h ago•1 comments

Bliss (Photograph)

https://en.wikipedia.org/wiki/Bliss_(photograph)
1•cainxinth•1h ago•0 comments

Silver, Silk, and States: The Spanish Empire and Ming China

https://andrewhuangster.substack.com/p/silver-silk-and-states-how-a-single
3•soupspaces•1h ago•0 comments

SDLC is a power tool, not a compliance document

https://blog.robbowley.net/2026/05/07/your-sdlc-is-a-power-tool-not-a-compliance-document/
2•8organicbits•1h ago•1 comments

Anthropic and the Department of War

https://www.hyperdimensional.co/p/clawed
2•mooreds•1h ago•0 comments

Summer of Math Expositions(2021-2025) – 3b1B archive

https://some.3b1b.co/archive?category=video&year=2021&page=1
1•num42•1h ago•0 comments

Archive.today requires scanning a QR code on your phone to use

https://archive.fo
3•Cider9986•1h ago•1 comments