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.

How to Just Do a Thing

https://www.raptitude.com/2026/05/how-to-just-do-a-thing/
1•crescit_eundo•56s ago•0 comments

Langwag: Learn a Language from News Stories

https://langwag.com/en
1•danosull•2m ago•1 comments

Dell confirms its SupportAssist software causes Windows BSOD crashes

https://www.bleepingcomputer.com/news/software/dell-confirms-its-supportassist-software-causes-wi...
1•Brajeshwar•2m ago•0 comments

VectorSmuggle: Steganographic exfiltration in vector embedding stores

https://arxiv.org/abs/2605.13764
1•smugglereal•3m ago•0 comments

I cut my OpenRouter bill 43% by fixing my own prompts. Then shipped the tool

https://fixmyprompt.net/
1•chewymole•3m ago•0 comments

From latency to instant: Modernizing GitHub Issues navigation performance

https://github.blog/engineering/architecture-optimization/from-latency-to-instant-modernizing-git...
1•soheilpro•3m ago•0 comments

The Graveyard of the Internet

https://doublespeed.ai/
1•nwhnwh•3m ago•0 comments

Httpx2

https://tildeweb.nl/~michiel/httpx2.html
1•thm•6m ago•0 comments

The Agent Is a Workflow That Writes Itself

https://www.getauctor.com/blog/the-agent-is-a-workflow-that-writes-itself
4•tjbai•6m ago•0 comments

Interrogatory LLM

https://martinfowler.com/bliki/InterrogatoryLLM.html
1•soheilpro•6m ago•0 comments

Cuba says it has run out of fuel, blames U.S. embargo

https://www.upi.com/Top_News/World-News/2026/05/14/Cuba-says-oil-reserves-totally-drained/9311778...
2•thm•8m ago•0 comments

"This was a user-friendly computer."

https://unsung.aresluna.org/this-was-a-user-friendly-computer/
1•bobbiechen•9m ago•0 comments

All 11 onboard survived after plane made emergency landing near the Bahamas

https://www.theguardian.com/us-news/2026/may/14/florida-atlantic-plane-rescue-fuel-low
1•tosh•10m ago•0 comments

Magnetic switch for multimodal, chip-free, and batteryless airway sensing

https://www.science.org/doi/10.1126/sciadv.aed3998
1•PaulHoule•10m ago•0 comments

Restoring the Flow: A Milestone in the Revival of the Everglades

https://e360.yale.edu/features/picayune-strand-restoration-project
1•Brajeshwar•11m ago•0 comments

'The Most Bipartisan Issue Since Beer': Opposition to Data Centers

https://www.nytimes.com/2026/05/01/us/politics/liberals-conservatives-data-centers.html
2•Teever•11m ago•0 comments

Performance per engineer doubled at six big tech companies, and the metric used

https://medium.com/@navigara/performance-per-engineer-doubled-at-six-big-tech-companies-heres-how...
1•alienll•12m ago•0 comments

Turning recorded D&D sessions into comics

https://haffi112.github.io/2026/05/14/dnd-comics/
1•haffi112•12m ago•0 comments

Req Is All You Need

https://benreinhart.com/blog/req-is-all-you-need/
2•ezekg•13m ago•0 comments

I Prefer Djot over Markdown

https://www.karl.berlin/djot.html
1•Tomte•14m ago•0 comments

Apple's Security Has Been Tough to Crack. Mythos Helped Find a Way In

https://www.wsj.com/tech/ai/anthropic-mythos-apple-macos-bug-339da403
2•jbredeche•14m ago•0 comments

You didn't start a business to write content

https://www.muana.page/
1•oktra_dev•14m ago•0 comments

Desperate Trump Taps "Tim Apple," Jensen Huang, Elon Musk to Attend Xi Summit

https://arstechnica.com/tech-policy/2026/05/desperate-trump-taps-tim-apple-jensen-huang-elon-musk...
3•rbanffy•16m ago•0 comments

The SpaceX IPO is upending the stock market

https://www.axios.com/2026/05/14/spacex-musk-sp-stocks
1•Brajeshwar•21m ago•1 comments

Cyber lack of security and AI governance

https://thezvi.substack.com/p/cyber-lack-of-security-and-ai-governance
1•maxutility•21m ago•0 comments

I let Claude autonomously create a graphic novel

https://twitter.com/deepwhitman/status/2054466408835350985
1•bilater•23m ago•1 comments

Extracting the Root VCEK Seed on EPYC Milan via a Software-Only Attack

https://arxiv.org/abs/2605.12990
1•Timofeibu•25m ago•0 comments

RTX 5090 and M4 MacBook Air: Can It Game?

https://scottjg.com/posts/2026-05-05-egpu-mac-gaming/
3•allenleee•25m ago•0 comments

Fully-functional RTX 3070 16GB gets frankensteined into existence

https://www.tomshardware.com/pc-components/gpus/fully-functional-rtx-3070-16gb-gets-frankensteine...
2•Timofeibu•25m ago•0 comments

Help People Up the Stairs

https://reactiverobot.com/writing/stairs.html
1•ref-matt•26m ago•0 comments