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.

The State Policy Network

https://www.sourcewatch.org/index.php?title=State_Policy_Network
1•jamesgill•4m ago•0 comments

Locked Up but Not Locked Out: iOS App Pentesting Without Jailbreak

https://www.anvilsecure.com/blog/locked-up-but-not-locked-out-ios-app-pentesting-without-jailbrea...
1•depierre•8m ago•0 comments

AI Adoption Rapidly Growing in Public Sector

https://www.gallup.com/workplace/702983/adoption-rapidly-growing-public-sector.aspx
1•hn_acker•9m ago•0 comments

GitHome: Local Git repository management at scale

https://crates.io/crates/githome
1•agentk9•11m ago•0 comments

Patrons of Journalism

https://www.hamiltonnolan.com/p/patrons-of-journalism
2•thm•13m ago•0 comments

TTL Exceeded – In Memory of FX

https://phenoelit.de/fx.html
2•_tk_•14m ago•0 comments

50 Years of Thinking Different

https://www.apple.com/50-years-of-thinking-different/
2•mndren•15m ago•0 comments

Show HN: I built a heartbeat and uptime monitoring for developers

https://pulsemon.dev/
2•ramgale•16m ago•0 comments

Sunsetting Jazzband

https://jazzband.co/news/2026/03/14/sunsetting-jazzband
4•mooreds•16m ago•0 comments

Can you see Earth's shadow?

https://www.livescience.com/space/can-you-see-earths-shadow
2•Brajeshwar•17m ago•0 comments

My Claude Settings

https://twitter.com/JoshuaBaer/status/2032666249465942208
2•tosh•19m ago•0 comments

Knowing What Not to Animate

https://micro.bossadizenith.me/writing/animations
3•handfuloflight•20m ago•0 comments

Show HN: I made a tool to pixelate image

https://www.pixelateimage.co/
2•atharvtathe•20m ago•0 comments

The Pentagon Went to War with Anthropic. What's Really at Stake?

https://www.newyorker.com/news/annals-of-inquiry/the-pentagon-went-to-war-with-anthropic-whats-re...
2•mitchbob•22m ago•1 comments

Show HN: VibeNVR – Open-source self-hosted NVR with REST API and Homepage widget

https://github.com/spupuz/VibeNVR
2•spupuz•22m ago•0 comments

Team Human

https://onTeamHuman.com
1•andytratt•24m ago•0 comments

North Korea: secretive nation lands in spotlight at Women's Asian Cup

https://www.theguardian.com/sport/2026/feb/23/north-korea-womens-national-football-team-asian-cup...
1•PaulHoule•24m ago•0 comments

The ArXiv is separating from Cornell University, and is hiring a CEO for 300k/yr

https://mathstodon.xyz/@johncarlosbaez/116223948891539024
4•binsquare•24m ago•2 comments

AVL Tree

https://en.wikipedia.org/wiki/AVL_tree
1•Brysonbw•25m ago•0 comments

At a CNY class, locally-developed tech lets students hear earthworm brain waves

https://www.localsyr.com/education/at-a-central-new-york-classroom-locally-developed-tech-lets-st...
1•rolph•27m ago•0 comments

Due Processing: As Lawyers Go All-In on AI, the Courts Play Catch-Up

https://www.rstreet.org/commentary/due-processing-as-lawyers-go-all-in-on-ai-the-courts-play-catc...
1•hn_acker•27m ago•0 comments

The United States of Eugenics

https://conversationalist.org/2025/04/17/united-states-america-eugenics-politics-policy-race-scie...
5•jamesgill•29m ago•0 comments

AI Gets Wrong Woman Jailed for Six Months, Life Ruined

https://www.youtube.com/watch?v=mzS7dmCUzcQ
48•vaxman•32m ago•14 comments

An enormous brain in a jar? NASA's best space telescope saw something real weird

https://www.skyatnightmagazine.com/news/exposed-cranium-nebula-webb
1•rolph•33m ago•0 comments

CachyOS Is Now the Most Popular Desktop Linux Distro on ProtonDB

https://boilingsteam.com/cachy-os-is-now-the-most-popular-distro-on-proton-db/
1•ekianjo•34m ago•0 comments

MacBook Neo Teardown – Is This Apple's Repairable Era?

https://www.youtube.com/watch?v=Sb9YclnJIYM
1•G3rn0ti•34m ago•1 comments

CozoDB: Hippocampus for AI, with Embedded Datalog

https://www.cozodb.org/
1•measurablefunc•34m ago•0 comments

An audio reader for your X/Twitter feed(

https://xeder-app.web.app/
1•sanjastepa•35m ago•1 comments

PopSockets created to manage headphone cables

https://www.youtube.com/watch?v=glXoAcVf45U
1•etothet•36m ago•1 comments

Firehose – Realtime mentions API from Ahrefs

https://firehose.com
2•samdb•36m ago•0 comments