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•9mo 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•9mo 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•9mo 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.

The Hunt for Dark Breakfast – Can we derive breakfasts we have never observed?

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
1•moultano•2m ago•0 comments

The Imposter in My AI's Files

https://brianthinks.github.io/posts/the-imposter-in-my-files/
1•yozel•3m ago•0 comments

Fred Trump Jr

https://en.wikipedia.org/wiki/Fred_Trump_Jr.
1•doener•6m ago•0 comments

Why AI won't wipe out white-collar jobs (YouTube) [video]

https://www.youtube.com/watch?v=1CAvNn5tUR8
1•deterministic•6m ago•0 comments

I Caught Politico and the New York Times Laundering Pink Slime "News"

https://spinclass.substack.com/p/spin-class-case-study-i-caught-politico
1•jkestner•7m ago•0 comments

The Gap

https://www.robpanico.com/articles/display/?entry_short=the-gap
1•retrocog•9m ago•1 comments

GNU Octave 11.1.0 Released

https://lwn.net/Articles/1059965/
1•rhabarba•11m ago•0 comments

Colorado Senate Bill Would Require Apple and Google to Embed ID Checks in OS

https://reclaimthenet.org/colorado-operating-system-age-verification-minors-online-access
1•anonymousiam•14m ago•1 comments

Teens see social media as the place to learn about race and faith

https://theconversation.com/teens-see-social-media-more-than-school-as-the-place-to-learn-about-r...
1•PaulHoule•14m ago•0 comments

Humans Are Becoming Horses [video]

https://www.youtube.com/watch?v=7Pq-S557XQU
1•tyleo•15m ago•0 comments

Ask HN: How do I get started in AI?

1•imwillofficial•15m ago•0 comments

Want to Survive Current Tech Era – Learn to Be a Good QA

https://worklifenotes.com/2026/02/23/want-to-survive-current-tech-era-learn-to-be-a-good-qa/
1•taleodor•15m ago•0 comments

RFC 406i the Rejection of Artificially Generated Slop (Rags)

https://406.fail
1•addvilz•16m ago•0 comments

Signed, Sealed, Stolen: How We Patched Critical Vulnerabilities Under Fire [video]

https://www.youtube.com/watch?v=CZ4nk9aWzYM
2•todsacerdoti•17m ago•1 comments

Simpler JVM Project Setup with Mill

https://mill-build.org/blog/17-simpler-jvm-mill-110.html
2•lihaoyi•19m ago•0 comments

Show HN: AppIconKitchen – Free AI app icon generator I built for indie devs

https://www.appiconkitchen.com
1•rickyLee_coder•21m ago•0 comments

Amazon Just Confirmed My Worst Fear About the AI Economy

https://medium.com/predict/amazon-just-confirmed-my-worst-fear-about-the-ai-economy-49d0e0c35c72
2•RustyBucket•21m ago•0 comments

Tesla Drops "Autopilot" Name After Legal Pressure from California

https://www.caranddriver.com/news/a70420085/tesla-drops-autopilot-name-california/
2•apparent•22m ago•0 comments

Why Your Load Balancer Still Sends Traffic to Dead Backends

https://singh-sanjay.com/2026/01/12/health-checks-client-vs-server-side-lb.html
2•singhsanjay12•22m ago•1 comments

Microsoft's big Xbox leadership shake-up

https://www.theverge.com/tech/883015/microsoft-xbox-new-ceo-shakeup-notepad
1•cebert•23m ago•2 comments

IOU Wallet – a lightweight protocol to structure informal obligations

https://iou-wallet.com/
1•xklondon•24m ago•1 comments

Viral Doomsday Report Lays Bare Wall Street's Deep Anxiety About AI Future

https://www.wsj.com/finance/stocks/global-stocks-markets-dow-news-02-23-2026-06a32080
5•ViktorRay•26m ago•1 comments

Show HN: An AI built a Solana bonding curve platform for music artists (72h)

https://fanstake.app
2•caseyolayos•27m ago•1 comments

Show HN: loopmaster Beta – Code Music

https://beta.loopmaster.xyz
1•stagas•28m ago•2 comments

Are we entering a Physical Asset supercycle? The pivot from digital to physical

https://www.equitileconversations.com/2459100/episodes/18720603-energetic-times
2•Incerto•29m ago•0 comments

Poor judgment or a principled stand? Susan Rice's spat with Trump dissected

https://www.businessinsider.com/susan-rice-critique-trump-fuels-debate-on-board-members-speech-20...
3•petethomas•31m ago•0 comments

VeriSoftBench: Repository-Scale Formal Verification Benchmarks for Lean

https://utopia-group.github.io/VeriSoftBench/
1•matt_d•33m ago•0 comments

Sam Altman's anti-human worldview

https://disconnect.blog/sam-altmans-anti-human-worldview/
10•doener•34m ago•0 comments

Show HN: Using LLMs and differential testing to convert code

https://reorchestrate.com/posts/your-binary-is-no-longer-safe-conversion/
1•seddonm1•35m ago•0 comments

What Is Claude? Anthropic Doesn't Know, Either

https://www.newyorker.com/magazine/2026/02/16/what-is-claude-anthropic-doesnt-know-either
3•dosinga•38m ago•0 comments