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

Gallup poll: GenZ AI adoption steady but skepticism on the rise

https://web.archive.org/web/20260410202758/https://news.gallup.com/poll/708224/gen-adoption-stead...
1•1vuio0pswjnm7•1m ago•1 comments

You should be able to SEE what your agents are doing. I created the solution

https://www.tarsy.dev/
1•leddo•2m ago•0 comments

Kids Are Discovering the Joys–and Pains–Of the Landline

https://www.wsj.com/lifestyle/kids-are-discovering-the-joysand-painsof-the-landline-f703d505
1•impish9208•2m ago•1 comments

Show HN: When Clocks Drift Apart

https://animeshchouhan.com/time/
1•animeshchouhan•2m ago•0 comments

We reverse-engineered Claude Code's billing system to fix overage charges

https://github.com/askalf/dario
1•askalf•4m ago•0 comments

Advanced Mac Substitute is an API-level reimplementation of 1980s-era Mac OS

https://www.v68k.org/advanced-mac-substitute/
1•zdw•7m ago•0 comments

What Is Hypernormalization?

https://adbusters.org/articles-coded/what-is-hypernormalization
1•burnt-resistor•7m ago•0 comments

Raising Carthaginian Armies, Part I: Finding Carthaginians

https://acoup.blog/2026/04/10/collections-raising-carthaginian-armies-part-i-finding-carthaginians/
1•gostsamo•7m ago•0 comments

Don't Be Evil

https://pluralistic.net/2026/04/11/obvious-terrible-ideas/
2•hn_acker•8m ago•0 comments

Preparing for My Own Funeral

https://chrisaustem.substack.com/p/preparing-for-my-own-funeral
1•putzdown•12m ago•0 comments

What tools do you use to visualize algorithms?

1•rjn32s•13m ago•0 comments

EU should regulate Big Tech, not banning kids from social media, Estonia says

https://www.politico.eu/article/europe-should-stand-up-to-big-tech-instead-of-imposing-social-med...
2•donohoe•16m ago•0 comments

The Structure of the Puma Computer System [pdf]

https://softwarepreservation.computerhistory.org/SETL/setl/doc/Grishman-Structure_of_Puma-1978.pdf
3•rbanffy•19m ago•0 comments

We replaced user accounts with Lightning payments for identity

https://blog.satsrail.com/payment-as-identity/
2•keymaker_p•20m ago•1 comments

Native Raspberry Pi 3B version of the Oberon System 3

https://github.com/rochus-keller/OberonSystem3Native/releases/tag/2026-04-10
3•HotGarbage•20m ago•0 comments

The Romance of the Gas Station Sign

https://www.theatlantic.com/ideas/2026/04/gas-prices-sign-driving/686759/
2•fortran77•20m ago•0 comments

False Memory Syndrome Foundation

https://en.wikipedia.org/wiki/False_Memory_Syndrome_Foundation
3•irthomasthomas•21m ago•0 comments

Online "Phreak Box" (Enhanced Blue Box)

https://phreaknet.org/bluebox/
3•bookofjoe•21m ago•0 comments

Hart Research March 8, 2024 opinion poll for NBC News: people hate AI

https://web.archive.org/web/20260310175721if_/https://s3.documentcloud.org/documents/27777984/nbc...
3•1vuio0pswjnm7•21m ago•1 comments

Show HN: Audit the browser for malicious extensions removed from Chrome Store

https://chromewebstore.google.com/detail/malext-sentry/bpohikihiogjgmebpnbgnloipjaddibe
2•toborrm9•22m ago•0 comments

Bulldog: A compiler for VLIW architectures [pdf]

https://www.cs.yale.edu/publications/techreports/tr364.pdf
5•rbanffy•23m ago•1 comments

Eagle Press alt software pyPowered to WordPress

https://github.com/CaptainFantasticVibeCoder/EaglePress
2•eagle10ne•25m ago•0 comments

The Lean Programming Language and Theorem Prover

https://leodemoura.github.io/static/etaps2026/
2•azhenley•25m ago•0 comments

Breathing life into my 13 year old Nexus 7 with Codex

https://opuslabs.substack.com/p/breathing-life-into-my-13-year-old
4•opuslabs•26m ago•0 comments

Tor Browser on Android leaks IP in desktop mode

4•shchess•27m ago•1 comments

Show HN: Animated ASCII art in pure SVG

https://github.com/syi0808/asciianimesvg
1•syi0808•28m ago•2 comments

Iran's Other Front: The War over the Internet

https://warontherocks.com/2026/04/irans-other-front-the-war-over-the-internet/
2•thinkingemote•28m ago•1 comments

The Obscure Relation of Appropriateness

https://vincentcarchidi.substack.com/p/the-obscure-relation-of-appropriateness
1•darccio•29m ago•0 comments

Quantization, LoRA, and the 8% Problem Benchmarking Local LLMs for Production AI

https://walsenburgtech.com/blog/quantization-lora-benchmarking-local-llms
3•cowartc•30m ago•0 comments

The System Turning Chinese Tech Companies into Military Suppliers

https://warontherocks.com/2026/04/the-hidden-system-turning-chinese-tech-companies-into-military-...
1•thinkingemote•31m ago•0 comments