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.

How many people died? Why counting disaster fatalities is harder than it looks

https://eos.org/thelandslideblog/why-counting-disaster-fatalities-is-harder-than-it-looks
1•sohkamyung•4m ago•0 comments

NATO allies foil Russian subsea cable sabotage plot

https://www.reuters.com/world/europe/nato-allies-foil-russian-subsea-cable-sabotage-plot-2026-09-10/
1•aa_is_op•4m ago•0 comments

A Guide to Sankt Pauli, Hamburg

https://alexgettinglost.com/2022/10/26/guide-to-sankt-pauli-hamburg/
1•jruohonen•6m ago•0 comments

New Apple Watches have ears

https://leancrew.com/all-this/2026/09/new-apple-watches-have-ears/
1•ingve•8m ago•0 comments

Sharpness Is Power

https://baku89.com/sharpness-is-power
1•prathyvsh•9m ago•0 comments

OpenAI: Defense Factory

https://openai.com/the-defense-factory/
1•tosh•10m ago•1 comments

4K Analog Video Feedback Fractal Device Complete

https://www.youtube.com/watch?v=R1z3oM6h8uM
1•o4c•11m ago•0 comments

Curated List of Osint Tools

https://osintech.substack.com/p/osintechs-timeline-171-16072026
2•GetSMS•21m ago•0 comments

If PHP Were British

https://aloneonahill.com/blog/if-php-were-british/
1•soltanov•21m ago•0 comments

Kelivo: A Flutter LLM Chat Client. Support Mobile and Desktop

https://github.com/Chevey339/kelivo
2•xbmcuser•22m ago•0 comments

GPS and the Limits of Control

https://www.lawfaremedia.org/article/gps-and-the-limits-of-control
1•heisenbit•23m ago•0 comments

OpenClaw Dashboards: Personal Use, Team Workflows, and Building Your Own

https://openclaw.ai/podcast/episode-10
1•tosh•25m ago•0 comments

Show HN: Sindlish, a programming language for Sindhi speakers

https://sindlish.vercel.app/
1•amanatalipanhwe•26m ago•0 comments

Experience Shapes Extraordinary Beliefs

https://www.cell.com/trends/cognitive-sciences/fulltext/S1364-6613(25)00310-9
1•shymaple•26m ago•0 comments

In this era of AI, it is important to remember what it is like to be a child

https://mathstodon.xyz/@tao/117244104044239500
2•o4c•26m ago•0 comments

Ultimate dev environment for Playwright NixOS VM tests

https://blog.tiserbox.com/posts/2026-09-09-ultimate-dev-environment-for-playwright-nix-os-vm-test...
1•ibizaman•27m ago•0 comments

The first drink-driving conviction may have happened in London - electric

https://www.ianvisits.co.uk/articles/the-worlds-first-drink-driving-conviction-may-have-happened-...
1•beardyw•30m ago•0 comments

The Autistici/Inventati collective is shutting down

https://www.inventati.org/campaign/press
2•BaudouinVH•31m ago•1 comments

Maths Sheep Play Sheep

https://davidkbutler.xyz/2026/08/23/maths-sheep-play-sheep/
1•o4c•32m ago•1 comments

Anthropic Researcher Quits over 'Out-of-Control' AI Fears

https://www.wsj.com/tech/ai/anthropic-researcher-quits-over-out-of-control-ai-fears-707b7628
2•ramon156•34m ago•0 comments

Nvidia Personal-AI-Router

https://github.com/NVIDIA/Personal-AI-Router
1•BerislavLopac•36m ago•0 comments

DeepSeek v4 Pro discontinuation (email)

1•lionkor•37m ago•0 comments

IKEA made a mod for Skyrim [video]

https://www.youtube.com/watch?v=iZODN0QUgjI
3•kegenaar•39m ago•0 comments

Ex-Anthropic researcher Jacob Coxon says AI development poses risk to humans

https://apnews.com/article/anthropic-ai-safety-jacob-coxon-2ed549e07f2f941600a135070487d83d
1•olalonde•39m ago•0 comments

Practical Agentic RAG patterns implemented with LangGraph

https://github.com/ChandulaSenevirathna/Agentic_RAG
4•Delta000•40m ago•7 comments

Multiprobe – Paris Traceroute and path analytics in pure Rust

https://crates.io/crates/multiprobe
1•biplabku•48m ago•0 comments

We're evolving toward our own extinction

https://twitter.com/goon_nguyen/status/2097918005959332200
1•cmpit•48m ago•0 comments

How to make GPT-6 Astra creative

https://www.echohive.ai/how-to-make-astra-creative
1•echohive42•51m ago•0 comments

Groups caught using the same Chrome and Windows exploit kit

https://arstechnica.com/information-technology/2026/09/4-groups-caught-using-the-same-chrome-and-...
2•joozio•57m ago•0 comments

The Daily Clouflare Outage of Today

https://www.cloudflarestatus.com/incidents/sjs8s0q2x4hw
1•Betelbuddy•58m ago•1 comments