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

Nick Bostrom Has a Plan for Humanity's 'Big Retirement'

https://www.wired.com/story/nick-bostrom-has-a-plan-for-humanitys-big-retirement/
1•danielmorozoff•1m ago•0 comments

Truth Social lays bare narrow obsessions of an online president

https://www.npr.org/2026/05/08/nx-s1-5749358/trump-truth-social-online-posts-iran-white-house-bal...
1•robtherobber•1m ago•0 comments

Show HN: Groxy – a Go library for building forward proxy servers

https://github.com/SalzDevs/groxy
2•SalzDevs•2m ago•0 comments

An AI‑enabled device code phishing campaign

https://www.microsoft.com/en-us/security/blog/2026/04/06/ai-enabled-device-code-phishing-campaign...
1•buccal•4m ago•1 comments

Programming the Commodore 128

https://retrogamecoders.com/programming-the-commodore-128/
1•ibobev•5m ago•0 comments

Big Tech's $725B AI spending spree sends free cash flow to a decade low

https://www.ft.com/content/b3dfaba9-17a2-4fac-90fe-4ab3ca7c9494
1•bram98•5m ago•0 comments

Emulating Old Junk from Yesteryear

https://themaister.net/blog/2026/05/09/emulating-old-junk-from-yesteryear-or-my-obsession-making-...
1•ibobev•5m ago•0 comments

Comparing an LZ4 Decompressor on Four Legacy CPUs

https://bumbershootsoft.wordpress.com/2026/05/09/comparing-an-lz4-decompressor-on-four-legacy-cpus/
1•ibobev•6m ago•0 comments

Jewish American pedophiles hide from justice in Israel (2020)

https://www.cbsnews.com/news/how-jewish-american-pedophiles-hide-from-justice-in-israel/
2•rdevilla•10m ago•0 comments

Show HN: AI Tool for Batch-Generating Multi-Platform Marketing Content

1•zzh030902•11m ago•0 comments

Dusk Is Now Available

https://twilitrealm.dev/posts/2026-05-09-dusk-v1-released/
1•novoreorx•12m ago•0 comments

The Adventure Family Tree

https://mipmip.org/advfamily/advfamily.html
1•exvi•14m ago•0 comments

RSSTranslate – Translate any RSS feed to JSON with one API call

https://rsstranslate.com/
1•kophazialmos•15m ago•0 comments

Crowther's Adventure for Linux (2007)

https://web.archive.org/web/20090831075301/http://www.russotto.net/~mrussotto/ADVENT/
1•exvi•15m ago•0 comments

The AI That Took a Sunday Off

https://debarshibasak.github.io/readables/blogs/eu-ai-right.html
1•debarshri•18m ago•1 comments

Meet the academics refusing to use generative AI

https://www.nature.com/articles/d41586-026-00508-w
2•XzetaU8•21m ago•1 comments

Sandbox Your Agents

https://philippkuhnhardt.de/blog/sandbox-your-agents/
1•Extasia785•22m ago•0 comments

ProgramBench (Meta) Repro: variance across runs and findings

https://nickcheng0921.github.io/2026/05/10/thoughts-on-programbench-part1.html
1•porterbaseball•25m ago•1 comments

Show HN: DialYourShot – interactive espresso parameter tool

https://dialyourshot.com/
3•pirotechnique•33m ago•0 comments

Show HN: Harper, a free ocean forecast for surfers

https://harper.surf/
1•fbenevides•34m ago•0 comments

Somewhere Nearby is Colossal Cave (2007)

https://dhq.digitalhumanities.org/vol/1/2/000009/000009.html
2•exvi•36m ago•0 comments

GitHub Copilot is deprecating Grok Code Fast 1

https://github.blog/changelog/2026-05-08-upcoming-deprecation-of-grok-code-fast-1/
1•whtsky•37m ago•0 comments

Apple Faces £3B UK Trial over iCloud Lock-In Claims

https://www.macrumors.com/2026/05/07/apple-icloud-lock-in-uk-lawsuit/
3•johneth•40m ago•0 comments

The Brand Age

https://www.paulgraham.com/brandage.html
2•KnuthIsGod•41m ago•0 comments

European Lisp Symposium 2026

https://european-lisp-symposium.org/2026/index.html
2•Igrom•41m ago•1 comments

Writers are fleeing the Substack Tax

https://www.theverge.com/tech/927294/substack-tax-ghost-beehiiv
4•articsputnik•42m ago•1 comments

UX Dark Patterns and Social Media Addiction

https://www.designorate.com/ux-dark-patterns-and-social-media-addiction/
1•rrm1977•44m ago•0 comments

Squatt.ing – The state of the .ing top level domain shortly after public release

https://blog.ioces.com/matt/posts/squatt.ing/
1•shoobs•45m ago•0 comments

Modi urges Indians to WFH and limit foreign travel as Iran war continues

https://www.bbc.com/news/articles/c8r8e2ne1v6o
1•penguin_booze•50m ago•0 comments

Young evil genius forces hamster to run on wheel to power his gadgets

https://www.theregister.com/offbeat/2026/05/06/youtuber-turns-hamster-wheel-into-phone-charger/52...
2•luckys•51m ago•0 comments