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.

Church Encoding, Parametricity, and the Yoneda Lemma

https://blog.wybxc.cc/blog/parametricity/
1•g0xA52A2A•4m ago•0 comments

Null Linux

https://github.com/Duck25543/Null-Linux
1•PvsLH102•6m ago•0 comments

Whimsical Animations

https://whimsy.joshwcomeau.com
1•vismit2000•7m ago•0 comments

Texas AG sues Meta over claims that WhatsApp doesn't provide end-to-end encrypt

https://arstechnica.com/security/2026/05/texas-ag-sues-meta-over-claims-that-whatsapp-doesnt-prov...
1•joozio•10m ago•0 comments

After Automation

https://every.to/p/after-automation
1•jibcage•18m ago•0 comments

Spanish Court Declines to Fine NordVPN over LaLiga Piracy Blocking Order

https://torrentfreak.com/spanish-court-declines-to-fine-nordvpn-over-laliga-piracy-blocking-order/
2•gslin•19m ago•0 comments

The Best Windows is Linux

https://lunduke.substack.com/p/the-best-windows-is-linux
2•gargan•25m ago•0 comments

The just-say-no engineer was a ZIRP phenomenon

https://www.seangoedecke.com/the-just-say-no-engineer-was-a-zirp-phenomenon/
1•vismit2000•26m ago•0 comments

High-Throughput Chips for LLMs

https://matx.com/
1•consumer451•29m ago•0 comments

Denuvo game cracked on day 1 of launch

https://pastebin.com/jQjvNrvA
2•sensanaty•29m ago•0 comments

Parsing IPv6 Addresses Crazily Fast with AVX-512

https://lemire.me/blog/2026/05/23/parsing-ipv6-addresses-crazily-fast-with-avx-512/
2•0xedb•30m ago•0 comments

Show HN: Brev – A frictionless Android note taking app

https://play.google.com/store/apps/details?id=com.shkurta.brev&hl=en_US
1•Klaudjo_shkurta•35m ago•0 comments

Layoffs Hitting Zalando?

https://old.reddit.com/r/cscareerquestionsEU/comments/1tkx5ll/layoffs_hitting_zalando/
2•theanonymousone•35m ago•0 comments

The International Space Station is leaking (again)

https://arstechnica.com/space/2026/05/uh-oh-the-international-space-station-is-leaking-again/
1•jnord•36m ago•0 comments

AI is getting pricey, but relief is coming, but not for you

https://www.theregister.com/ai-ml/2026/05/21/ai-is-getting-pricey-but-relief-is-coming-but-not-fo...
1•jnord•38m ago•1 comments

ExtendDB – The DynamoDB API, everywhere you run code

https://extenddb.org/
2•0xedb•39m ago•1 comments

New RFC Editor Website

https://www.rfc-editor.org/
1•jerleth•40m ago•0 comments

Former US execs plead guilty to aiding tech support scammers

https://www.bleepingcomputer.com/news/security/former-us-execs-plead-guilty-to-aiding-tech-suppor...
2•jnord•41m ago•0 comments

Rubish: A Unix shell written in pure Ruby

https://github.com/amatsuda/rubish
3•winebarrel•42m ago•0 comments

Ask HN: Is $300/HR too low these days for custom full stack?

2•noduerme•43m ago•0 comments

UK economic catastrophe unless it adapts to young people rewired by smartphones

https://news.sky.com/story/uk-faces-economic-catastrophe-unless-it-adapts-to-young-people-rewired...
3•austinallegro•46m ago•1 comments

Pip 26.1 Ships Dependency Cooldowns and Experimental Lockfile Support

https://www.infoq.com/news/2026/05/pip-261-dependency-cooldowns/
2•OutOfHere•53m ago•0 comments

Show HN: TruLayer – tracing, evals, and a control loop for production LLMs

https://trulayer.ai/
2•trulayer•54m ago•0 comments

The Software Coordination Tax: Why Your 40-Engineer Team Is Shipping Like 25

https://www.forbes.com/councils/forbestechcouncil/2026/05/20/the-software-coordination-tax-why-yo...
2•RyeCombinator•1h ago•0 comments

Exploring Ref Qualifiers in C++

https://meetingcpp.com/blog/items/Exploring-ref-qualifiers-in-Cpp.html
3•signa11•1h ago•0 comments

Why are there keys on my messenger app that I don't recognize

2•ttim•1h ago•0 comments

The uno reverse public license

https://github.com/Zuhaitz-dev/URPL
2•anticensor•1h ago•0 comments

Open-source living-room entertainment system, with pretty UI made in Electron

https://github.com/charnam/ClasmeraSpace
3•charnam•1h ago•2 comments

Riyadh Leads Global Tech Growth as Cyprus Becomes Europe's Crisis Safe Haven

https://www.startupblink.com/startupecosystemreport
2•Sam6late•1h ago•1 comments

AI-Declaration.md

https://github.com/DimwitLabs/AI-DECLARATION.md
2•rapiz•1h ago•0 comments