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

OpenPGP Cleartext Signature Framework Susceptible to Format Confusion

https://paste.debian.net/plainh/97923151
1•eat_veggies•5m ago•0 comments

Human Capital, Not "Industrial Policy," Explains East Asian Success

https://www.richardhanania.com/p/human-capital-not-industrial-policy
1•gmays•10m ago•1 comments

Micro Architecture: What Happens Beneath

https://www.youtube.com/watch?v=BVVNtG5dgks
1•vismit2000•12m ago•0 comments

Show HN: Visualize different text streaming speeds

https://gemini.google.com/share/5f5a70db02c2
1•rcanand2025•13m ago•1 comments

Super Mario Retro Suite – WDR Funkhausorchester [video]

https://www.youtube.com/watch?v=SEVKvQaRmYQ
1•rendx•17m ago•0 comments

Indian AI royalty proposal targets data practices of OpenAI, Google

https://www.reuters.com/sustainability/boards-policy-regulation/indian-ai-royalty-proposal-target...
2•virtuosity•19m ago•1 comments

Scientists say evolution works differently than we thought

https://www.sciencedaily.com/releases/2025/12/251224032359.htm
1•QueensGambit•22m ago•0 comments

National Atomic Testing Museum

https://www.atomicmuseum.vegas/
1•bookofjoe•22m ago•0 comments

What If Heavy Files Felt Heavy?

https://www.shiveesh.com/thoughts-and-ideas/what-if-heavy-files-actually-felt-heavy
1•shiveeshfotedar•22m ago•0 comments

A 3D-printed optical microscope for low-cost histological imaging

https://onlinelibrary.wiley.com/doi/10.1111/jmi.13398
2•manidoraisamy•25m ago•0 comments

Show HN: I built a coding platform where you learn by writing code, not watching

https://pixeldeveloper.io/
1•WahyuS002•26m ago•1 comments

Hijacking Chrome's Network Tab to Debug an Electron App

https://seg6.space/posts/debug-proxy-ffi/
1•seg6•27m ago•0 comments

I opened a bookshop. It was the best, worst thing I've ever done

https://www.ft.com/content/cc77c2c9-3415-4b96-af76-65f04d761a85
1•Brajeshwar•31m ago•1 comments

Gust a fast, rust based Swift package manager

https://github.com/quantbagel/gust
1•quantbagel•34m ago•0 comments

Survival of the Mediocre Mediocre (2018)

https://www.ribbonfarm.com/2018/04/24/survival-of-the-mediocre-mediocre/
2•Ariarule•36m ago•0 comments

Multiscale Aperture Synthesis Imager

https://hbr.org/2025/07/hybrid-still-isnt-working
1•wisty•40m ago•2 comments

Favorite Compiler and Interpreter Resources

https://eatonphil.com/compilers-and-interpreters.html
1•ibobev•41m ago•1 comments

How to use a specific version of MSVC in GitHub Actions

https://blog.ganets.ky/MsvcGha/
1•ibobev•41m ago•0 comments

Load and store forwarding in the Toy Optimizer

https://bernsteinbear.com/blog/toy-load-store/
1•ibobev•42m ago•0 comments

Why Britain has a deer problem – leaving damage that costs millions

https://www.bbc.co.uk/news/articles/c9d93xzey70o
2•zeristor•45m ago•0 comments

Humidity Calculator for Quick Cold Snaps

https://www.humidsnap.com/
2•saikiran91•51m ago•1 comments

The Promise of P-Graphs

https://pavpanchekha.com/blog/p-graphs.html
2•PaulHoule•54m ago•0 comments

The impact of nerve injury on the immune system in mice is sexually dimorphic

https://www.sciencedirect.com/science/article/pii/S2452073X25000170
2•bookofjoe•56m ago•0 comments

F-Droid bans Gab for being a "free speech zone" that "tolerates all opinions"

https://reclaimthenet.org/f-droid-bans-gab-app
3•like_any_other•57m ago•0 comments

AI Gets an Innocent Man Arrested [video]

https://www.youtube.com/watch?v=B9M4F_U1eEw
3•esaym•1h ago•0 comments

The battle to stop clever people betting

https://www.economist.com/christmas-specials/2025/12/18/the-battle-to-stop-clever-people-betting
2•Anon84•1h ago•2 comments

MiniMax M2.1: Built for Real-World Complex Tasks, Multi-Language Programming

https://www.minimaxi.com/news/minimax-m21
29•110•1h ago•6 comments

The Nine Days Paul McCartney Spent in a Tokyo Jail

https://www.utterlyinteresting.com/post/the-nine-days-paul-mccartney-spent-in-a-tokyo-jail
2•handfuloflight•1h ago•0 comments

Show HN: Filenest – Desktop File Organizer

https://filenest.tech
1•Ilikeruby•1h ago•0 comments

VFlight Insurance Vending Machine

https://airandspace.si.edu/multimedia-gallery/14310hjpg
1•handfuloflight•1h ago•0 comments