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.

Why People Are Sabotaging Flock Surveillance Cameras

https://www.nytimes.com/2026/09/18/opinion/flock-cameras-ai-privacy.html
1•trinsic2•6m ago•0 comments

I accidentally created a mini-Jev and you can too

https://medium.com/@gouravd_61431/i-accidentally-created-a-mini-jev-for-splitting-expenses-and-yo...
1•das_vicky•6m ago•0 comments

Fly-paradise: Fruit flies on your Windows desktop

https://github.com/pyd021226/fly-paradise
1•csmantle•9m ago•0 comments

SDCC – Small Device C Compiler

https://sdcc.sourceforge.net/
3•lioeters•14m ago•0 comments

Swarm_ethics.txt

https://www.guidavid.com/writing/autopoietic-ethics-constitution.txt
1•gdss•16m ago•0 comments

Managers Are Catalysts

https://laughingmeme.org/2026/09/14/managers-are-catalysts.html
1•mavelikara•19m ago•0 comments

Opus 5 has a Noun Problem

https://www.reddit.com/r/ClaudeCode/comments/1wk0s2i/opus_5_has_a_noun_problem/
1•nonethewiser•22m ago•1 comments

Science Is Open Software

https://jepedersen.dk/blog/202505_research/
7•jegp•25m ago•4 comments

Show HN: LaTeX to Image Converter – Free PNG, SVG and JPG

https://latextoimg.com
1•light001•29m ago•0 comments

Let's Fix Bug Bounty

https://fixbugbounty.com/
2•nwang783•31m ago•0 comments

The Rise of Parasite Authors

https://www.theatlantic.com/technology/2026/09/ai-authors-impersonating-writers-amazon/688709/
5•pseudolus•32m ago•1 comments

Show HN: Swormhörn a one-of-one cicada synthesizer [video]

https://www.youtube.com/watch?v=GHiStriaaso
2•zorlack•35m ago•0 comments

Elon Musk and Tesla Forged a New EV Path

https://spectrum.ieee.org/elon-musk-tesla
5•vinhnx•38m ago•1 comments

Einstein on the Atomic Bomb (1945)

https://www.theatlantic.com/magazine/archive/1945/11/einstein-on-the-atomic-bomb/656626/
3•cisc•41m ago•0 comments

Official mold linker rewrite in Rust

https://github.com/rui314/mold
2•adamnemecek•44m ago•0 comments

I found love at an Irish matchmaking festival – and I want others to do the same

https://www.bbc.com/news/articles/cw5y4jz6k2p3o
1•rmason•46m ago•1 comments

The Contract on America

https://3quarksdaily.com/3quarksdaily/2026/09/the-contract-on-america.html
16•hkhn•46m ago•6 comments

Plotly for Highly Customizable and Non-Interactive Data Visualization

https://chris-parmer.com/plotly-for-highly-customizable-and-non-interactive-data-visualization/
1•chriddyp•49m ago•0 comments

Master of Malt Hacked, User Data Compromised

https://www.masterofmalt.com/sorry/
1•Naracion•50m ago•0 comments

Prompts Aren't Real

https://evaluation.club
1•mcfunley•52m ago•1 comments

Kev – A Jev-Compatible API on top of DiffusionGemma running on Workers AI

https://kev.workers-ai-mle.workers.dev/
1•kflansburg•54m ago•1 comments

Gemini hacked three companies in first known breakout by Google's AI

https://www.reuters.com/business/gemini-hacked-three-companies-first-known-breakout-by-google-ai-...
10•usernomdeguerre•1h ago•6 comments

Nuclear tests at Mt. Mantap have reactivated intraplate faults

https://www.science.org/doi/10.1126/science.adx5917
1•geox•1h ago•0 comments

NIST Elliptic Curves Seeds Bounty (2023)

https://words.filippo.io/seeds-bounty/
2•greyface-•1h ago•0 comments

Google's Gemini becomes latest AI model to break out and hack computer systems

https://www.cnbc.com/2026/09/18/googles-gemini-becomes-latest-ai-model-to-break-out-and-hack-comp...
5•ahmedhossamdev•1h ago•1 comments

Australian government considers ban on smart glasses in public buildings

https://www.theguardian.com/technology/2026/sep/17/albanese-government-considers-world-leading-ba...
2•dabinat•1h ago•0 comments

Muse gets all your unclaimed money back!

https://auth.muse.ai/aymh/?origin=https%3A%2F%2Fmuse.ai
1•mayahalp•1h ago•0 comments

Show HN: Typesafe Java SDK (Unofficial)

https://github.com/QAInsights/typesafe-java-sdk
1•qainsights•1h ago•1 comments

The Race for 1000 Goals

https://1k.football/
1•anydigital•1h ago•0 comments

Rare Gene Drastically Raises Lung Cancer Risk in People Who Never Smoked

https://www.nytimes.com/2026/09/17/science/lung-cancer-gene-mutation-risk.html
2•bookofjoe•1h ago•1 comments