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

What is gravity? – A 7-minute read

https://corpusk.info/what-is-gravity.html
1•nik_slusarenko•1m ago•0 comments

AI Changed What We Build. Then It Changed Who We Hire

https://www.hauser.io/ai-changed-what-we-build-then-it-changed-who-we-hire/
1•bkfh•3m ago•0 comments

Show HN: Xlg – Jq for APIs

1•alykirk•3m ago•1 comments

Programming Used to Be Free

https://purplesyringa.moe/blog/programming-used-to-be-free/
1•yeputons•6m ago•0 comments

The P Source: How humanities scholars changed modern spycraft (2020)

https://paw.princeton.edu/article/p-source
2•walterbell•6m ago•0 comments

Record oil production in West Texas helps stabilize U.S. supply amid Iran war

https://www.texastribune.org/2026/04/09/west-texas-oil-production-iran/
1•1659447091•8m ago•0 comments

CC v2.1.100 inflates cache_creation by ~20K tokens vs. v2.1.98

https://github.com/anthropics/claude-code/issues/46917
1•tamnd•9m ago•0 comments

Caught Off Guard Again:How Democrats Keep Misjudging the Information Battlefield

https://weaponizedspaces.substack.com/p/caught-off-guard-again-how-democrats
1•rbanffy•11m ago•0 comments

We change when others are watching

https://nesslabs.com/audience-effect
1•theorchid•12m ago•0 comments

Object Oriented Programming (OOP) in R Explained

https://r-statistics.co/OOP-in-R.html
1•selva86•13m ago•0 comments

Mano-P – On-device GUI agent, #1 on OSWorld, runs on M4 Mac

https://github.com/Mininglamp-AI/Mano-P
1•mininglamp•17m ago•0 comments

Meta builds AI version of Mark Zuckerberg to interact with staff

https://www.ft.com/content/02107c23-6c7a-4c19-b8e2-b45f4bb9ce5f
2•jmsflknr•18m ago•0 comments

The AI Layoff Trap

https://arxiv.org/abs/2603.20617
15•armcat•33m ago•4 comments

Horizontal Infrastructure for Building Computer Vision Applications

1•AdamEyes•34m ago•0 comments

Fly Drones from the Browser

https://fpvsim.com/sim
1•mosfets•37m ago•0 comments

Claude Code plugin with a built-in fact-check compiler

https://grainulator.app/
3•woptober•37m ago•0 comments

Battery Intelligence SDK for IoT (NRF52840, STM32, ESP32-C3)

https://github.com/aliaksandr-liapin/ibattery-sdk
1•iBattery•38m ago•0 comments

The Economics of Software Teams: Why Most Engineering Orgs Are Flying Blind

https://www.viktorcessan.com/the-economics-of-software-teams/
2•kiyanwang•45m ago•0 comments

Relocating Rigor

https://aicoding.leaflet.pub/3mbrvhyye4k2e
2•kiyanwang•48m ago•0 comments

Trovare – I built a search aggregator with 39 adapters across 11 platforms

https://trovare.ro/
1•mariusmitrofan•49m ago•0 comments

X Randomly Banning Users for "Inauthentic Behavior"

https://old.reddit.com/r/LinusTechTips/comments/1rsdk7i/anybody_here_talking_about_the_massive/
6•crmrc114•51m ago•5 comments

How to Share Terraform State (Tutorial)

https://spacelift.io/blog/how-to-share-terraform-state
2•kat-w•56m ago•0 comments

Gall's Law – Laws of Software

https://www.laws-of-software.com/laws/gall/
2•fagnerbrack•57m ago•0 comments

Why successful people often have bad opinions online

https://greyenlightenment.com/2026/04/02/why-successful-people-often-have-bad-opinions-online/
2•paulpauper•58m ago•1 comments

Taking a Look at Compression Algorithms – Moncef Abboud

https://cefboud.com/posts/compression/
1•fagnerbrack•58m ago•0 comments

The Future Is Neuro-Symbolic: Where Has It Been, and Where Is It Going?

https://ojs.aaai.org/index.php/AAAI/article/view/42130
4•walterbell•1h ago•1 comments

The Synth Is Not the Box

https://www.lunchfirm.com/blog/posts/localdsp-claude/
1•mcdowell_atx•1h ago•0 comments

Nintendo's Greed Could Change the Tech Industry [video]

https://www.youtube.com/watch?v=Lh9gnkF-Imo
1•josephcsible•1h ago•0 comments

The Future of Everything Is Lies, I Guess: Psychological Hazards

https://aphyr.com/posts/416-the-future-of-everything-is-lies-i-guess-psychological-hazards
2•vermilingua•1h ago•0 comments

Why didn't IPv6 work in my home network?

https://gowtham.dev/blog/ipv6-problems.html
3•gowthamgts12•1h ago•0 comments