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.

Destroy Big Tech with a Salvaged Cyberdeck – Make

https://makezine.com/article/technology/raspberry-pi/destroy-big-tech-with-a-salvaged-cyberdeck/
1•evo_9•25s ago•0 comments

Me in 2026 – What is tech doing?

https://ivanlugo.dev/writing/first-words/
1•tikimcfee•27s ago•1 comments

Ask HN: Are you interested in building devtools/infra for science?

1•rorytbyrne•1m ago•0 comments

Using encapsulated development to code on my phone

https://maryrosecook.com/blog/post/using-encapsulated-development-to-code-on-my-phone
1•evakhoury•1m ago•0 comments

FBI warns of in-person data theft attacks from extortion gang

https://www.bleepingcomputer.com/news/security/fbi-warns-of-silent-ransom-group-in-person-data-th...
1•Brajeshwar•2m ago•0 comments

Meta Smart Glasses Covert Spying Bypass: Verified, Unresolved, Tested

https://ipvm.com/reports/meta-smart-glasses-covert-spying
1•jhonovich•3m ago•0 comments

Provedex: Tamper-evident audit logs for AI agents (Pipecat, LangChain)

https://github.com/provedex/provedex
1•adi-suresh•3m ago•0 comments

Vim Vim Revolution

https://vimvimrevolution.com/
1•kevinlinxc•4m ago•1 comments

We contain Claude across products

https://www.anthropic.com/engineering/how-we-contain-claude
1•skogstokig•4m ago•0 comments

Franchising has quietly made countless Americans rich

https://www.economist.com/business/2026/05/24/franchising-has-quietly-made-countless-americans-rich
1•bookofjoe•4m ago•1 comments

Google AI Threat Defense to help you outpace the adversary

https://cloud.google.com/blog/products/identity-security/introducing-google-ai-threat-defense
3•srameshc•5m ago•0 comments

Last.fm is now independent

https://support.last.fm/t/last-fm-is-now-independent/118591
1•twistslider•5m ago•0 comments

The Viruses Causing New Outbreaks Are Less Familiar to Science

https://www.nytimes.com/2026/05/27/science/ebola-hantavirus-species-strains.html
1•digital55•6m ago•0 comments

The Farmers Who Fought a Data Centre–and Won

https://macleans.ca/longforms/the-farmers-who-fought-a-data-centre-and-won/
1•speckx•6m ago•0 comments

[hand-drawn] recipes for laid-back engineers

https://leontrolski.github.io/recipes.html
1•guessmyname•8m ago•0 comments

Show HN: Approve Claude CLI prompts from the browser, phone, or tablet

https://notifai.net/
2•Witness327•8m ago•1 comments

Now, imagine other people are different from you (2019)

https://blog.jobelenus.dev/blog/now-imagine-other-people-are-different-from-you/
1•mooreds•10m ago•0 comments

An Update on Composer and Packagist Supply Chain Security

https://blog.packagist.com/an-update-on-composer-packagist-supply-chain-security/
4•Seldaek•10m ago•0 comments

Who buys custom chips and why?

https://substack.com/@johncoleisreading/note/c-263273279
1•johncole•11m ago•0 comments

LLM, meet ML pipeline. ML pipeline, meet your new build step

https://matthias-kainer.de/blog/posts/llm-meet-ml-pipeline/
2•oesimania•12m ago•0 comments

Transparent solar cells could be mounted right on windows

https://newatlas.com/energy/transparent-solar-cells-windows/
1•breve•12m ago•0 comments

A One-Character Host Header Bug in Starlette Exposed AI Agents

https://firethering.com/badhost-starlette-critical-vulnerability-ai-agents/
1•steveharing1•12m ago•0 comments

The Biggest and Weirdest Commits in Linux Kernel Git History (2017)

https://www.destroyallsoftware.com/blog/2017/the-biggest-and-weirdest-commits-in-linux-kernel-git...
1•downbad_•14m ago•0 comments

IBM's Video Explaining Five AI Risks That Can Get You Fired

https://www.youtube.com/watch?v=1m55T8xST9s
1•busymom0•14m ago•0 comments

Katharos: Monads, functors, and immutable data for Python

https://github.com/kamalfarahani/katharos
1•h8hawk•14m ago•0 comments

Ubuntu releases Workshops: Sandboxed dev environments in a single command

https://discourse.ubuntu.com/t/introducing-workshop-launch-sandboxed-development-environments-on-...
2•nullbio•15m ago•0 comments

The AI fight brewing inside The New York Times

https://www.theverge.com/ai-artificial-intelligence/937689/new-york-times-tech-guild-ai-monitorin...
3•Brajeshwar•16m ago•0 comments

» Planescape: Torment, Part 1: From the Tabletop

https://www.filfre.net/2026/05/planescape-torment-part-1-from-the-tabletop/
1•ibobev•16m ago•0 comments

C++26: Ordering of constraints involving fold expressions

https://www.sandordargo.com/blog/2026/05/27/cpp26-constraints-ordering-fold-expressions
1•ibobev•17m ago•0 comments

Does bulk memmove speed up `std:remove_if`? (No.)

https://quuxplusone.github.io/blog/2026/05/23/chunked-remove/
1•ibobev•17m ago•0 comments