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.

AI simply can't replicate it': Japan embraces zine trend

https://www.japantimes.co.jp/culture/2026/06/01/books/japan-zines-kyoto-shimbun/
1•Michelangelo11•1m ago•0 comments

Investigation: Russian censorship systems (TMCT) expose Chinese DPI signatures

https://freenet.monster/china-unicom.html?lang=en
1•aliowka•1m ago•0 comments

Becoming a Magician (2018)

https://autotranslucence.wordpress.com/2018/03/30/becoming-a-magician/
1•surprisetalk•3m ago•0 comments

The Attacker Lives Between Your Tools

https://medium.com/@eldorzufarov66/the-attacker-lives-between-your-tools-a312246f9712
1•EldorZ•5m ago•0 comments

Women are getting most of the new jobs. What's going on with men? – OPB

https://www.opb.org/article/2026/04/10/men-fall-behind-as-women-get-most-new-jobs/
1•bilsbie•6m ago•0 comments

Ask HN: Azure, GCP, AWS Free Tiers or Something Else

1•ARMack•6m ago•0 comments

New Free Online Survival Game

1•desinxstudio•7m ago•0 comments

Building a highly accurate digital twin of the Earth

https://destination-earth.eu/
1•ZacnyLos•8m ago•0 comments

Engineers building MCPs in regulated industries: what's been the hardest part?

https://deepsense.ai/resource/designing-compliance-first-architectures-for-regulated-production/
1•Applied_AI•8m ago•1 comments

RP2040 DMA is Turing Complete (2023)

https://people.ece.cornell.edu/land/courses/ece4760/RP2040/C_SDK_DMA_machine/DMA_machine_rp2040.html
1•birdculture•8m ago•0 comments

I built my own music collection and why you should too

https://blog.rishabhps.com/posts/2026-06-04-i-built-my-own-music-collection-and-why-you-should-too/
1•speckx•9m ago•0 comments

I built a new dictionary for pedantic word game players

https://wordtrak.com/blog/2026-05-28-how-i-built-a-new-dictionary-for-pedantic-word-game-players
1•qrush•10m ago•0 comments

Dexinx_studio

https://www.instagram.com/desinx_studio/
1•desinxstudio•10m ago•0 comments

Agyn – OSS Alternative to AWS AgentCore: FS, Network, Credential Isolation

https://arxiv.org/abs/2605.27575
1•NBenkovich•11m ago•1 comments

Algorithmic Monocultures in Hiring

https://algorithmichiring.github.io/
1•hunglee2•11m ago•0 comments

We've boosted the performance of Grand Theft Auto V by 30% at night

https://danielgp.com/blog/gta-v-night-fps-prefetch
2•divocbn•15m ago•0 comments

Exploring the Game with Graph Capabilities of LadybugDB, DuckDB and PostgreSQL

https://theconsensus.dev/p/2026/05/29/ladybug-duckdb-and-postgresql.html
3•eatonphil•17m ago•0 comments

A Survey of Inlining Heuristics

https://bernsteinbear.com/blog/inlining-heuristics/
2•surprisetalk•17m ago•0 comments

1970: Could Machines Become Intelligent? [video]

https://www.youtube.com/watch?v=7Bb6yTPZrnA
2•vinhnx•18m ago•0 comments

The polarization transition in a double-random field model of elections

https://arxiv.org/abs/2510.00612
2•PaulHoule•19m ago•0 comments

How I created an AI pipeline to build a fireworks/drone show app in 30 days

https://stellarspot.app/
3•allentackett•20m ago•0 comments

Questions arise after Waymo blocks road in midst of Dallas apartment explosion

https://www.nbcdfw.com/news/local/waymo-block-road-dallas-apartment-explosion/4032442/
2•6stringmerc•21m ago•0 comments

Anthropic urges pause in AI development, says industry needs 'brake pedal'

https://abcnews.com/video/133610860/
2•mgh2•21m ago•0 comments

US tobacco firms applied tobacco strategies to globalize ultra-processed foods

https://ajph.aphapublications.org/doi/10.2105/AJPH.2026.308501
26•giuliomagnifico•21m ago•4 comments

Bmc4j – Prove your Java/Kotlin code correct from jUnit style tests

https://github.com/bmc4j/bmc4j
1•Grover_c13•24m ago•1 comments

Do Containers Still Contain?

https://raesene.github.io/blog/2026/06/03/do-containers-still-contain/
1•hasheddan•27m ago•0 comments

Claude resets your limit too late, not anymore

https://github.com/claude-schwabe/schwabe
1•tesstuser•28m ago•0 comments

Why Code Review Feels Like a Trial (and What It Costs Your Team)

https://medium.com/@tbelbek/why-code-review-feels-like-a-trial-and-what-it-costs-your-team-52ba4c...
1•rdstrtwlkr•29m ago•0 comments

Efficient base editing & development in human embryos w/o chromosomal alteration

https://www.biorxiv.org/content/10.64898/2026.05.30.728989v1
1•goplayoutside•31m ago•0 comments

I Thought I Knew How Electrolysis Worked [video]

https://www.youtube.com/watch?v=eq7fR9ISuCw
2•tambourine_man•32m ago•0 comments