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.

German cabinet approves 3-month IP address retention

https://europeanconservative.com/articles/news-corner/germany-merz-surveillance-ip-tracking-berli...
2•ExpertAdvisor01•8m ago•1 comments

GCC Establishes Working Group to Decide on AI/LLM Policy

https://www.phoronix.com/news/GCC-Working-Group-AI-Policy
1•breve•16m ago•0 comments

How Hard Is It to Open a File?

https://blog.sebastianwick.net/posts/how-hard-is-it-to-open-a-file/
1•vinhnx•16m ago•0 comments

Hotels are slashing World Cup rates as FIFA cancels rooms

https://moneywise.com/news/top-stories/fifa-world-cup-hotels-rates-tourism-slump
3•vrganj•28m ago•3 comments

Open VSX Sleeper Extensions Linked to GlassWorm Show New Malware Activations

https://socket.dev/blog/73-open-vsx-sleeper-extensions-glassworm
1•salkahfi•31m ago•0 comments

FilamentPHP MCP Server

https://github.com/suwi-lanji/filamentphp-mcp
1•bumi-kitan•34m ago•0 comments

Devin for Terminal

https://devin.ai/terminal
1•nickzana•34m ago•0 comments

The Bizarre Biology of Bdelloid Rotifers

https://biologicalrecording.co.uk/2025/09/23/bdelloid-rotifers/
2•thunderbong•35m ago•0 comments

SpaceX Starship Documentary – Test Like You Fly

https://www.spacex.com/content/starship/test-like-you-fly
1•d_silin•37m ago•0 comments

Xiaomi releases mimo-v2.5 model

https://mimo.xiaomi.com/mimo-v2-5
1•gainsurier•42m ago•0 comments

OpenAI's Sam Altman writes apology to community of Tumbler Ridge

https://www.cbc.ca/news/canada/british-columbia/sam-altman-tumbler-ridge-apology-9.7176482
3•acyou•42m ago•2 comments

Developing Trustworthy Information

https://jessicacanepa.com/blog/developing-trustworthy-information/
2•mooreds•44m ago•0 comments

YC as a Service

https://ycaas.lol
1•ipostragebait•44m ago•0 comments

Firefox Has Integrated Brave's Adblock Engine

https://itsfoss.com/news/firefox-ships-brave-adblock-engine/
9•nreece•47m ago•0 comments

Translinear Circuits as EML Natural Physical Substrate

https://zenodo.org/records/19749753
2•iranssantos•47m ago•1 comments

The Tail End (2015)

https://waitbutwhy.com/2015/12/the-tail-end.html
1•RyanShook•53m ago•0 comments

ZCAM: iOS camera app that cryptographically proves human authorship

https://zcam.succinct.xyz/
1•GZGavinZhao•53m ago•1 comments

Rippling exposed your SSN/banking to anyone who sent you an offer letter

https://infosec.exchange/@SecureOwl/116415101610028363
2•noiobeforebed•1h ago•0 comments

Useknockout – open-source background removal API, 40× cheaper than remove.bg

https://github.com/useknockout/api
3•tlorents•1h ago•0 comments

SF Giants sell piece of team to venture capital firm run by Joshua Kushner

https://www.sfgate.com/giants/article/sf-giants-joshua-kushner-22224927.php
1•iancmceachern•1h ago•0 comments

DevResolve – AI chat widget that answers technical questions from your docs

https://devresolve.ai
1•EthanWayne•1h ago•0 comments

Open source memory layer so any AI agent can do what Claude.ai and ChatGPT do

https://alash3al.github.io/stash?_v01
3•alash3al•1h ago•1 comments

Asking Qwen3.5-9B, running on 16GB VRAM, to exploit old Windows machines

https://thepatrickfisher.com/blog/computers/series-vibe-coding-sec-scan/00-vibe-coding-security-p...
1•sqeak•1h ago•2 comments

Llama 4: A Deep Dive into Liquid Transformers 2.0 and Sovereign AI

https://en.landingfymax.com.br/artificial-intelligence/llama-4-meta-open-source-sovereignty-2026
1•EvCarvalho•1h ago•0 comments

Show HN: Building a local FIX protocol triage agent on an RTX 3070

https://domgalati.substack.com/p/the-fix-triage-agent-building-a-local
1•dgalati•1h ago•0 comments

(Blender) Cosmology with Geometry Nodes

https://www.blender.org/user-stories/cosmology-with-geometry-nodes/
4•shankysingh•1h ago•0 comments

BMW is one step closer to selling you a color-changing car

https://www.theverge.com/tech/918216/bmw-ix3-flow-edition-concept-car-2026-beijing-auto-show-e-in...
2•dmitrygr•1h ago•0 comments

"Plain text has been around for decades and it's here to stay." – Unsung

https://unsung.aresluna.org/plain-text-has-been-around-for-decades-and-its-here-to-stay/
4•rbanffy•1h ago•0 comments

[Show HN] Free Baccarat

https://baccarat.free/
2•cbxyp•1h ago•1 comments

Apple IIc: A smaller, sleeker Apple II from 1984

https://dfarq.homeip.net/apple-iic/
3•rbanffy•1h ago•2 comments