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.

Building Reliable Agentic AI Systems

https://martinfowler.com/articles/reliable-llm-bayer.html
1•Garbage•1m ago•0 comments

Ordered Key Sharding in DynamoDB

https://death.andgravity.com/albumtitle
1•genericlemon24•3m ago•0 comments

Bernie Sanders unveils $7T plan to give Americans control of AI industry

https://arstechnica.com/tech-policy/2026/06/bernie-sanders-unveils-7-trillion-plan-to-give-americ...
1•asymmetric•5m ago•0 comments

Microsoft discovers new lightweight backdoor that steals cryptocurrency

https://arstechnica.com/security/2026/06/microsoft-spots-new-self-propagating-malware-for-stealin...
1•joozio•6m ago•0 comments

Show HN: Appaca – AI Workspace for Operators

https://www.appaca.ai/index.html
1•susros•14m ago•0 comments

Someone Built a Kleopatra Alternative for PGP

https://github.com/developaaah/pgp-manager
1•special_unicorn•21m ago•0 comments

Claude Code and Codex as one pipeline

https://www.unsiloed.ai/blog/guides/claude-code-codex-one-pipeline
1•ritzaco•22m ago•0 comments

Ask HN: Is Google's AI Mode and AI summaries now gone for everyone in EU?

2•consumer451•25m ago•0 comments

Roar (1981 Film)

https://en.wikipedia.org/wiki/Roar_(film)
1•vismit2000•25m ago•0 comments

Microsoft discovers new lightweight backdoor that steals cryptocurrency

https://www.techsentiments.com/article/2026/06/18/microsoft-discovers-new-lightweight-backdoor-th...
1•rajsuper123•28m ago•0 comments

Ask HN: Please recommend sci-fi books similar to "children of time" or "anathem"

1•rishabhpoddar•29m ago•0 comments

Every independent nation should work on three things

1•manishtiwari09•29m ago•0 comments

Refund: A farce in one act by Frigyes Karinthy

http://rafiq-lis.blogspot.com/2013/02/the-refund-hilarious-literary-play.html
1•rramadass•29m ago•1 comments

My suitcase robot gets high off a real gas sensor wired into the LLM sampler

https://old.reddit.com/r/LocalLLaMA/comments/1u9a17y/my_suitcase_robot_gets_high_now_off_a_real_gas/
1•thunderbong•34m ago•0 comments

Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28

https://www.jvm-weekly.com/p/project-valhalla-explained-how-a
2•philonoist•38m ago•0 comments

Computer Chronicles

https://archive.org/details/computerchronicles
1•modinfo•39m ago•0 comments

Understanding Geometric Algebra for Electromagnetic Theory

https://ieeexplore.ieee.org/document/6474507
1•teleforce•41m ago•0 comments

Future of Software Engineering (2003)

https://web.archive.org/web/20151020012340/http://discuss.fogcreek.com/joelonsoftware1/default.as...
1•tosh•43m ago•0 comments

The Lonely Work of Moderating Hacker News (2019)

https://www.newyorker.com/news/letter-from-silicon-valley/the-lonely-work-of-moderating-hacker-news
3•andsoitis•44m ago•0 comments

GLM 5.2 vs. Opus

https://techstackups.com/comparisons/glm-5.2-vs-opus/
2•sixhobbits•48m ago•1 comments

Climate change: the CO2 emitter you may not know about (2018)

https://www.bbc.com/news/science-environment-46455844
3•downbad_•53m ago•0 comments

Mark Warren's favorite novels about a child's immersion into wilderness

https://bookdna.com/best-books/childs-immersion-into-wilderness
1•bwb•56m ago•0 comments

My favorite classic working-class novels of all time

https://bookdna.com/best-books/classic-working-class-novels-of-all-time
1•bwb•58m ago•1 comments

Iran Delays U.S. Peace Talks over Israeli Attacks in Lebanon

https://maritime-executive.com/article/report-iran-suspends-hormuz-talks-because-of-israeli-attac...
5•consumer451•1h ago•0 comments

Bobby Prince Jr (composer of classic Doom soundtrack) has passed away

https://www.legacy.com/legacy/robert-bobby-prince-lll
3•andystanton•1h ago•1 comments

So You Want to Define a Well-Known URI

https://mnot.net/blog/2026/well_known_uris
16•ingve•1h ago•0 comments

World Cup AI: which AI model is winning the World Cup?

https://worldcupai.org/
1•ValentineC•1h ago•1 comments

Ongoing: Cloudflare customers seeing incorrect invoice payments for 2.5 days

https://www.cloudflarestatus.com/incidents/nq5q2glxd4yw
1•imcotton•1h ago•0 comments

The ISA Doesn't Matter Where It Counts

https://www.chipstrat.com/p/the-isa-doesnt-matter-where-it-counts
3•ksec•1h ago•0 comments

Ask HN: Is anyone else leaving AUR?

2•lordkrandel•1h ago•2 comments