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.

ePulz.io

https://epulz.io/
1•tiptech•39s ago•0 comments

Making a Meal of the Family Meal: Cooking Dinner [audio]

https://abundance.institute/our-work/everyday-abundance-making-a-meal-of-the-family-meal-cooking-...
1•mooreds•1m ago•0 comments

A Beginner's Guide to Reopening the Strait (Of Hormuz)

https://www.commoditycontext.com/p/a-beginners-guide-to-reopening-the-strait
1•mooreds•1m ago•0 comments

AI-Enhanced Writing

https://enocc.com/blog/2026-04-09-on-ai-enhanced-writing.html
1•speckx•1m ago•0 comments

Pizza wheels are bad, Japanese toilets are great

https://www.noahpinion.blog/p/pizza-wheels-are-bad-japanese-toilets
1•mooreds•2m ago•0 comments

Ask HN: AI robbed my joy of reading books?

3•hasudon7171•5m ago•3 comments

Search, Discovery, Pills, and Portals

https://contraptions.venkateshrao.com/p/search-discovery-pills-and-portals
1•surprisetalk•5m ago•0 comments

Route Phone Calls to an AI Agent with the Telnyx Voice API

https://telnyx.com/resources/route-phone-calls-ai-agent
1•harpreetseehra•6m ago•0 comments

Dragon's Egg: a formally verified, distributed object-capability OS

https://github.com/emberian/dregg
1•iamthebesthere•6m ago•0 comments

Ask HN: Building a minimal to-do app based on Signal vs. Noise

1•simonhansson•7m ago•0 comments

Migratrom: Schema migrations you can trust your agent to write

https://migratrom.org/
1•alloysmila•9m ago•0 comments

Rocket Lab Buys Satellite Operator Iridium in Bid to Challenge SpaceX

https://www.wsj.com/business/telecom/rocket-lab-buys-satellite-operator-iridium-in-bid-to-challen...
1•JumpCrisscross•9m ago•0 comments

Tesla FSD v14 Lite

https://twitter.com/elonmusk/status/2071538306039357838
1•lucamark•12m ago•0 comments

Has anyone here used the AI trading bot "Zentriq"? Looking for honest feedback

https://qafstudio.gumroad.com/l/zentriq
1•klegolas•12m ago•0 comments

Turning Risk Appetite into Impact – By Eric Gilliam

https://www.freaktakes.com/p/turning-risk-appetite-into-impact
1•rbanffy•14m ago•0 comments

Anatomy of an Agent – By Stephen Gruppetta

https://www.thepythoncodingstack.com/p/2-anatomy-of-an-agent
1•rbanffy•15m ago•0 comments

CRISPR's next act: the companies editing the epigenome to treat disease

https://www.nature.com/articles/d41586-026-01976-w
1•bookofjoe•15m ago•1 comments

Fame, an external memory and tool-safety gateway for local coding agents

https://github.com/superalp1985/fame-knowledge-agent-gateway
1•superalp•16m ago•0 comments

The Science of Play

https://www.unicef.org/parenting/child-care/science-of-play
1•the-mitr•16m ago•1 comments

Comcast Plans Company Split, Sending Shares Soaring 20%

https://www.wsj.com/business/media/comcast-to-split-media-and-tech-businesses-into-two-separate-c...
1•JumpCrisscross•16m ago•0 comments

Ask HN: Favorite Online Magazines?

1•m-hodges•18m ago•0 comments

The Black Holes That Burp Years After They Eat

https://www.universetoday.com/articles/the-black-holes-that-burp-years-after-they-eat
1•rbanffy•18m ago•0 comments

A Simulated Attack Story on React Server Components to Exploit React2Shell

https://mate.security/blog/a-simulated-attack-story-on-react-server-components-to-exploit-react2s...
1•noisysoc•19m ago•0 comments

Aerial Photographs (2017)

https://www.toronto.ca/city-government/accountability-operations-customer-service/access-city-inf...
1•surprisetalk•19m ago•0 comments

Samsung, SK Hynix, Micron Sued in US over Memory Price Fixing

https://en.sedaily.com/international/2026/06/29/samsung-sk-hynix-micron-sued-in-us-over-memory-pr...
4•donohoe•22m ago•0 comments

Weathering the Storm of AI

https://www.bencodezen.io/blog/weathering-the-storm-of-ai/
2•mooreds•23m ago•0 comments

The Shape of Rome (2013)

https://www.exurbe.com/the-shape-of-rome/
3•downbad_•23m ago•0 comments

Astro 7 Is Here

https://astro.build/blog/astro-7/
3•mooreds•23m ago•0 comments

Bouvet Island: The Most Remote Island Is Norwegian

https://www.lifeinnorway.net/bouvet-island/
3•mooreds•25m ago•0 comments

Five Forecasts for the Future of Work

https://www.wealthsystems.ai/p/five-forecasts-for-the-future-of
2•mattmcdonagh•27m ago•0 comments