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.

Entasis

https://en.wikipedia.org/wiki/Entasis
1•nomilk•2m ago•0 comments

How the Bitcoin protocol works (2013)

https://michaelnielsen.org/ddi/how-the-bitcoin-protocol-actually-works/
1•downbad_•2m ago•0 comments

The first graffiti wall (online)

https://freestencilmaker.com/the-wall
1•superluvdub•4m ago•1 comments

Chinese Electrotech Is the Big Winner in the Iran War

https://paulkrugman.substack.com/p/chinese-electrotech-is-the-big-winner
1•MaysonL•11m ago•0 comments

Pentagon Approaches Automakers, Manufacturers to Boost Weapons Production

https://www.wsj.com/politics/national-security/pentagon-approaches-automakers-manufacturers-to-bo...
1•cwwc•12m ago•0 comments

WebODM – Free and open source drone mapping software

https://webodm.org
1•alligray•21m ago•0 comments

Treasury Secretary Scott Bessent is preparing banks to collect citizenship data

https://www.cnbc.com/2026/04/15/banks-citizenship-data-collection-customer-accounts.html
5•pseudolus•25m ago•0 comments

The Universal Constraint Engine: Neuromorphic Computing Without Neural Networks

https://zenodo.org/records/19600206
2•skinney_uce•26m ago•0 comments

Shares in Allbirds surge after maker of wool sneakers announces pivot to AI

https://www.theguardian.com/business/2026/apr/15/allbirds-stock-ai-pivot
3•i7l•28m ago•1 comments

Tirith – Track your AI API spend with one CLI import

https://github.com/joedaviesio/tirith
1•joedaviesio•29m ago•0 comments

Show HN: The RUM Conjecture Explained [video]

https://www.youtube.com/watch?v=DGoI6T3SGfY
2•rcron•31m ago•0 comments

Amazon worker dies on warehouse floor. Workers told to keep going

https://finance.yahoo.com/sectors/healthcare/articles/just-dont-look-amazon-worker-170000180.html
9•latexr•31m ago•1 comments

YouTube now lets you turn off Shorts

https://www.theverge.com/streaming/912898/youtube-shorts-feed-limit-zero-minutes
24•pentagrama•31m ago•2 comments

Ants Find Food (2003)

https://mute-net.sourceforge.net/howAnts.shtml
1•downbad_•34m ago•3 comments

Substrate Independent

https://github.com/Technologicat/substrate-independent
1•skeledrew•34m ago•0 comments

Zappa: An AI Powered Mitmproxy

https://geohot.github.io//blog/jekyll/update/2026/04/15/zappa-mitmproxy.html
2•__cayenne__•35m ago•0 comments

Anthropic: Stop Shipping. Seriously.

https://www.reddit.com/r/ClaudeAI/s/C9WM4DHtqt
2•IndignantTyrant•37m ago•0 comments

The TL;DR on MCP: Why context matters and how to put it to work

https://www.figma.com/blog/the-tldr-on-mcp/
2•salkahfi•38m ago•0 comments

TruffleRuby 34: Ruby 3.4 Compatibility, 23% Faster Parsing, New 20x Faster

https://truffleruby.dev/blog/truffleruby-34-is-released
1•birdculture•39m ago•0 comments

Atlassian defends firing engineer for suggesting CEO is 'rich jerk'

https://www.afr.com/technology/atlassian-defends-firing-engineer-for-suggesting-ceo-is-rich-jerk-...
15•jamesfinlayson•42m ago•3 comments

Docker Hodgepodge Images

https://www.chainguard.dev/unchained/docker-hodgepodge-images
2•prdonahue•49m ago•0 comments

Bonafide.Work a platform for contractors to launch a website, manage bookings

https://bonafide.work/
1•fullstacking•49m ago•0 comments

Elegant D

https://www.youtube.com/watch?v=-kYM7ue7pqc
1•MikeShah•50m ago•1 comments

Switch: Faster, smarter AI audio conversion

https://www.nch.com.au/pad/switch.xml
1•NCHSoftware•53m ago•0 comments

Nginx 1.30.0

https://github.com/nginx/nginx/releases/tag/release-1.30.0
3•thunderbong•54m ago•0 comments

Come scegliere un developer freelance Laravel per il tuo progetto

https://donatodelpeschio.it/blog/come-scegliere-developer-freelance-laravel
1•donnyBlanko•55m ago•0 comments

For quantum computing, different qubits are better together

https://www.darpa.mil/news/2026/quantum-computing-different-qubits-better-together
1•bookofjoe•56m ago•0 comments

Gay Talese on a Writer's Life

https://www.realclearpolitics.com/articles/2026/04/15/gay_talese_on_a_writers_life_154037.html
2•RickJWagner•59m ago•0 comments

Repos.. 2M+ scanned.. most Google OAuth implementations key on email not sub

https://neelagiri65.github.io/gmail-oauth-research/
1•Srinathprasanna•1h ago•0 comments

Google shoehorned Rust into Pixel 10 modem to make legacy code safer

https://arstechnica.com/gadgets/2026/04/google-shoehorned-rust-into-pixel-10-modem-to-make-legacy...
8•snackoverflow•1h ago•0 comments