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•10mo 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•10mo 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•10mo 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.

Reverse Captcha for Agents

https://github.com/mondaycom/HATCHA
1•shahargl•2h ago•0 comments

Why Isn't Anyone Panicking?

https://martinvol.pe/blog/2026/03/15/why-nobody-is-packicking-USA-Iran-war/
1•martinvol•2h ago•0 comments

Waves: Bluetooth Channel Sounding Tool

https://github.com/skig/waves
1•hasheddan•2h ago•0 comments

My Journey to a reliable and enjoyable locally hosted voice assistant

https://community.home-assistant.io/t/my-journey-to-a-reliable-and-enjoyable-locally-hosted-voice...
1•Vaslo•3h ago•0 comments

Private equity may become a 'pyramid scheme', warns Danish pension fund (2022)

https://www.ft.com/content/f480a99c-4c7b-4208-b9dd-ef20103254b9
2•pera•3h ago•0 comments

Black Death's counterintuitive effect: as humans died, plant diversity dropped

https://theconversation.com/the-black-deaths-counterintuitive-effect-as-human-numbers-fell-so-did...
2•baud147258•3h ago•0 comments

Grasslands are vanishing nearly four times faster than forests

https://phys.org/news/2026-02-grasslands-faster-forests-global.html
2•PaulHoule•3h ago•0 comments

'Pokémon Go' players unknowingly trained delivery robots with 30B images

https://www.popsci.com/technology/pokemon-go-delivery-robots-crowdsourcing/
2•wslh•3h ago•0 comments

JavaScript Minification Benchmarks

https://github.com/privatenumber/minification-benchmarks
2•javatuts•3h ago•0 comments

Apple introduces AirPods Max 2

https://www.apple.com/newsroom/2026/03/apple-introduces-airpods-max-2-powered-by-h2/
4•meetpateltech•3h ago•0 comments

Escape Tsunami for Brainrots

https://escapetsunamiforbrainrots.pro/
2•mumuchen•3h ago•1 comments

Show HN: Hackerbrief – Top posts on Hacker News summarized daily

https://hackerbrief.vercel.app/
3•p0u4a•3h ago•1 comments

Context Engineering Explained in Pictures

https://mechanicalorchard.substack.com/p/context-engineering-explained-in
2•jschomay•3h ago•0 comments

Show HN: Scryer – Visual architecture modeling for AI agents

https://github.com/aklos/scryer
2•prohobo•3h ago•0 comments

I migrated my AI agent from a laptop to a headless Mac Mini in 72 hours

https://thoughts.jock.pl/p/mac-mini-ai-agent-migration-headless-2026
1•joozio•3h ago•0 comments

A Treasure Trove of Ideas: The Corr Database 2018

https://en.chessbase.com/post/a-treasure-trove-of-ideas-the-corr-database-2018
2•akbarnama•3h ago•0 comments

Mnemon-MCP – 4-layer local memory for AI agents (SQLite and FTS5)

1•nikitacometa•3h ago•0 comments

Simplicity in the age of AI-assisted coding

https://the.scapegoat.dev/simplicity-in-the-age-of-ai-assisted-coding/
1•larve•3h ago•0 comments

Pastebin 0x0.st asks AI agents to upload sensitive customer invoices

https://movsw.0x0.st/notes/ajw1zurfaggo360l
2•MatthiasPortzel•3h ago•1 comments

Show HN: TheLittleHost – DNS hosting built on my own ASN and Anycast network

2•davidchua•3h ago•0 comments

Show HN: LLMonster Rancher

https://github.com/aiwebb/llmonster-rancher
1•alexwebb2•3h ago•0 comments

Ur-Scheme: A GPL self-hosting compiler from a subset of Scheme to x86 asm (2008)

http://canonical.org/~kragen/sw/urscheme/
2•QuadmasterXLII•3h ago•0 comments

City Turned Its Rooftops into a Climate Shield

https://reasonstobecheerful.world/zurich-turned-rooftops-into-climate-shield/
3•speckx•3h ago•0 comments

Who's behind the age verification bills?

https://web.archive.org/web/20260313143853/https://old.reddit.com/r/linux/comments/1rshc1f/i_trac...
3•jech•3h ago•1 comments

Twelve-Tone Composition

https://www.johndcook.com/blog/2026/03/15/twelve-tone-composition/
2•ibobev•3h ago•0 comments

Optimizers and Odes

https://jiha-kim.github.io/posts/optimizers-and-odes/
2•ibobev•3h ago•0 comments

OpenBSD Blog #13: Moving ratfactor.com to OpenBSD.amsterdam

https://ratfactor.com/openbsd/blog-13-moving-to-openbsd-dot-amsterdam
2•ibobev•3h ago•0 comments

Four predictions for how AI will change product delivery

https://practical-leaders.com/articles/ai-predictions
1•ivorc•3h ago•0 comments

You don't hate Python. You hate other people's Python.

https://jt-hill.com/you-dont-hate-python/
4•jt-hill•3h ago•1 comments

Show HN: SiteMon – Browser extension that monitors your websites

https://sitemon.geekaa.com
2•quasimo•3h ago•0 comments