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.

AI Nelo Image

https://neloimage.com
1•LeoRay•2m ago•0 comments

Yonkers Rises

https://simonwillison.net/2026/Nov/10/yonkers-rises/
1•jimauthors•3m ago•0 comments

Jellyfin for Android TV 0.20 – Jellyfin

https://jellyfin.org/posts/androidtv-v0.20.0/
1•xbmcuser•7m ago•0 comments

Amazon's Ring retries $250 home security drone and $1k patrol robot

https://www.geekwire.com/2026/amazons-ring-tries-again-with-a-250-flying-home-security-drone-and-...
2•GloVin•8m ago•0 comments

The library rejected all 36M valid Hungarian tax numbers

https://hrabovskyi.online/writing/attest/
1•nimus•9m ago•0 comments

Panorea, a chiptune note player working on Pascal and aplay

https://github.com/SuDuSuDoUsNe/Panorea
1•SuDuSuDoUsNe•15m ago•0 comments

Convert all Google photos to AVIF

https://github.com/gregjotau/google-photos-cli
1•convertalltoavi•16m ago•0 comments

Reprogramming Dormant Neurons to Backdoor AI Agents

https://www.microsoft.com/en-us/research/blog/lazare-veni-foras-reprogramming-dormant-neurons-to-...
1•sshah03•17m ago•0 comments

Kora

https://kora.fun/
1•privacyishuman•18m ago•1 comments

Notes on Making a Canonical Anthology: The Oxford Book of American Poetry

https://hudsonreview.com/2026/10/notes-on-making-a-canonical-anthology-the-oxford-book-of-america...
1•lermontov•19m ago•1 comments

Compress any LLM 3x in one click, near-lossless, in under 50 MB RAM

https://github.com/NeuraCryption/SPECTRA
3•NeuraCryption•19m ago•0 comments

Show HN: Overdeck 0.74 – MCP tools for coding agents, plus phone apps

https://github.com/eltmon/overdeck/releases/tag/v0.74.0
1•Eltmon•24m ago•0 comments

Show HN: Screen time monitor and self control app Tabstinence

https://tabstinence.com
1•mythormedicine•25m ago•0 comments

Stabl: Societal transformation and AI bottlenecks lab

https://stabl.ai/
1•thoughtpeddler•25m ago•0 comments

Singapore Airlines unveils 'largest double bed in the sky'

https://www.cnn.com/travel/singapore-airlines-double-bed-cabin-revamp
1•rawgabbit•30m ago•1 comments

The Tragedy of the Oxide Root of Trust

https://danielmangum.com/posts/tragedy-oxide-rot/
2•hasheddan•31m ago•0 comments

Fossil CEO says turnaround is ahead of plan as sales return to growth

https://www.cnbc.com/2026/11/10/fossil-fosl-q3-2026-earnings.html
1•madihaa•31m ago•0 comments

Which Apple Silicon builds iOS apps fastest?

https://benchmarks.bitrise.io/
1•theanonymousone•33m ago•0 comments

Grok Build coding agent leaks confidential info, some belonging to SpaceXSI

https://arstechnica.com/security/2026/11/grok-build-coding-agent-leaks-oodles-of-confidential-inf...
2•Palmik•34m ago•0 comments

Show HN: GraphFlow – system design diagrams that run in the browser

https://graph-flow-virid.vercel.app/
2•hanubaki•34m ago•0 comments

Understanding and Engineering Consciousness

https://astera.org/understanding-and-engineering-consciousness/
1•ersinesen•34m ago•1 comments

Fake accounts defended Jensen Huang and attacked lawmakers

https://www.modelrepublic.org/articles/nvidia-koios-campaign-sockpuppet-accounts
2•DeepLogin•37m ago•1 comments

We're still so small but I'm loving the team we've got at Superlogical

https://twitter.com/mitchellh/status/2120221244478083249
1•tosh•39m ago•0 comments

AI and Original Intentionality

https://johnoestmannmusic.com/ai-and-original-intentionality/
1•soundworlds•41m ago•0 comments

VirtualTryOn – AI try-on for clothes, glasses, rings, and hairstyles

https://virtualtryon.pro/
1•TinyMomentum•45m ago•0 comments

Firefox 160.0 Release Notes

https://www.firefox.com/en-US/firefox/160.0/releasenotes/
6•thunderbong•47m ago•0 comments

In Memoriam: Tim Peters 1952–2026

https://discuss.python.org/t/in-memoriam-tim-peters-1952-2026/110028
6•ayhanfuat•55m ago•2 comments

Ask HN: How do you share an open-source project without being treated as spam?

2•bonguynvan•56m ago•0 comments

It's Not as Simple as Putting Data Centers in Space [video]

https://www.youtube.com/watch?v=Xom0I1iQXHM
1•mkesper•56m ago•0 comments

Chatting with criminals: How ransom negotiations unfold

https://www.heise.de/en/background/Chatting-with-criminals-How-ransom-negotiations-unfold-1151950...
1•zirkuswurstikus•58m ago•1 comments