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.

UK Government Plots Digital ID Lockdown on Every Phone in Lockstep with Big Tech

https://modernity.news/2026/06/05/uk-government-plots-digital-id-lockdown-on-every-phone-in-locks...
1•CGMthrowaway•51s ago•0 comments

Robot skin can feel pain now. The hard part is teaching it to think

https://medium.com/@alanscottencinas/robot-skin-can-feel-pain-now-the-hard-part-is-teaching-it-to...
1•encinas88•2m ago•0 comments

Parents Aren't Waiting to Pass Down Wealth

https://www.wsj.com/lifestyle/parents-arent-waiting-to-pass-down-wealth-fd615a4a
1•odig•3m ago•0 comments

Phantom Chat – iOS messenger with NIST post-quantum encryption (PQXDH)

https://testflight.apple.com/join/rmSrMch9
1•VeilusDigital•6m ago•0 comments

Motorola effectively bricked its entire line of WiFi routers without explanation

https://mashable.com/tech/motorola-wifi-routers-stop-working-motosync-plus-app-down
1•thisislife2•7m ago•0 comments

Moving beyond fork() + exec()

https://lwn.net/SubscriberLink/1076018/16f01bbbb8e0d1f0/
2•jwilk•16m ago•0 comments

Getting silly with C, part and((int*)1)[-1]

https://lcamtuf.substack.com/p/getting-silly-with-c-part-and-int1
1•Brajeshwar•20m ago•0 comments

The Apple Ad That Broke Microsoft [video]

https://www.youtube.com/watch?v=iBof-aNaDa0
1•lisper•20m ago•0 comments

Inflation is being driven up by investment in artificial intelligence

https://www.washingtonpost.com/technology/2026/06/06/inflation-is-being-driven-up-by-huge-investm...
2•reaperducer•23m ago•0 comments

Demystifying phone unlocking tools: A technical overview

https://osservatorionessuno.org/blog/2026/05/demystifying-phone-unlocking-tools-a-technical-overv...
3•boroaldo•24m ago•0 comments

"Sad to see Ted Chiang resorting to such bad arguments in this piece."

https://twitter.com/robertwiblin/status/2062479838879826387
1•Ariarule•27m ago•0 comments

Using Clause for Moodle content creation

https://ilite.substack.com/p/i-built-a-university-course-in-10
2•seanmarx69•27m ago•0 comments

The Largest Floating Dry Dock Was Towed Across the Atlantic to Bermuda in 1869

https://mastermariners.org.au/stories-from-the-past/6481-the-world-s-largest-floating-dry-dock-wa...
1•dtj1123•28m ago•0 comments

Trackr Bar – a macOS menu bar app for tracking AI usage and costs

https://www.trackr.bar/
2•jonaskamner•29m ago•0 comments

Average cost of living, anywhere on Earth

https://www.averagecostof.living/
5•azeemkafridi•33m ago•0 comments

Arc v0.0.2-alpha – Release Notes

https://github.com/VxidDev/Arc/releases/tag/v0.0.2-alpha
5•VoidDev•33m ago•0 comments

Are you there Grok?: AI as a centralizing technology

https://www.theargumentmag.com/p/are-you-there-grok-its-me-margaret
3•firasd•34m ago•0 comments

Running Python code in a sandbox with MicroPython and WASM

https://simonwillison.net/2026/Jun/6/micropython-in-a-sandbox/
4•theanonymousone•35m ago•1 comments

The Hardware Behind AI

https://www.pathtostaff.com/p/unpacking-ai-the-hardware-behind
4•sidwyn•39m ago•0 comments

Roblox Released the Biggest AI World Model in Gaming. Everyone Hates It

https://kuber.studio/blog/AI/Roblox-Released-the-Biggest-AI-World-Model-in-Gaming.-Everyone-Hates...
4•kuberwastaken•44m ago•0 comments

Multi-Robot Cooperative Spatial Reasoning with Multimodal Large Language Models

https://arxiv.org/abs/2605.18431
2•yogthos•45m ago•0 comments

Revenge of the AI Bubble

https://www.axios.com/2026/06/06/ai-bubble-economy-growth
3•1vuio0pswjnm7•48m ago•0 comments

If LLMs Have Human-Like Attributes, Then So Does Age of Empires II

https://arxiv.org/abs/2605.31514
2•gekoxyz•48m ago•0 comments

Auburn college student missing in Japan argued with mom over ChatGPT usage

https://www.cbsnews.com/news/james-weston-higginbotham-missing-japan-mom-chatgpt/
2•llboston•49m ago•1 comments

Benchmarks in Leipzig

https://arxiv.org/abs/2606.05818
36•root-parent•50m ago•11 comments

Arc Fusion Power Plant Physics Basis

https://www.cambridge.org/core/journals/journal-of-plasma-physics/collections/arc-fusion-power-pl...
2•mpweiher•50m ago•0 comments

Ask HN: Were CS profs right to look down on programming in light of modern AI?

4•amichail•51m ago•1 comments

The First SMS Message

https://spacedaily.com/d-on-december-3-1992-a-22-year-old-british-software-engineer-named-neil-pa...
3•ultratalk•54m ago•0 comments

CreatorL.ink Now Live

https://creatorl.ink
3•BiltlyAdm•56m ago•1 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
4•hasheddan•58m ago•0 comments