frontpage.
newsnewestaskshowjobs

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.

1•kevinlu•27s ago

EU accuses Temu of hindering raid in Ireland

https://www.rte.ie/news/business/2026/0731/1585977-temu-dublin/
1•austinallegro•5m ago•0 comments

The Index – a hand-checked catalog of AI tools

https://theindex.agnissanisaac.com/
1•Code_A-Z•5m ago•0 comments

AI #179 Part 2: Hearing the Fire Alarm

https://thezvi.substack.com/p/ai-179-part-2-hearing-the-fire-alarm
1•paulpauper•7m ago•0 comments

Moiré Pattern

https://en.wikipedia.org/wiki/Moir%C3%A9_pattern
1•petethomas•11m ago•0 comments

Jacques Vallée Spent 70 Years Investigating UFOs. Mystery Is Bigger Than Aliens

https://rmmclaren.substack.com/p/jacques-vallee-spent-70-years-investigating
2•handfuloflight•11m ago•0 comments

Show HN: Unified API for wearable and health data at 1/25th of Terra's price

https://stridee.fit/developer
1•alvaromolina0•13m ago•0 comments

Linux 7.3 to Allow Tuning AMD P-State Dynamic EPP with per CPU Core Granularity

https://www.phoronix.com/news/Linux-7.3-AMD-Per-Core-Dynamic
1•Bender•15m ago•0 comments

Show HN: Posecode inspectable human movement as text

https://www.posecode.org/play
1•brnbrn•18m ago•0 comments

Show HN AI Data Center Alert

https://aidatacenterimpact.com/
1•studsnchayns•20m ago•0 comments

Get ready to flee, Americans in ten countries warned

https://www.dailymail.com/news/article-16021741/flee-Americans-nine-countries-US-embassies-Iran-w...
2•Bender•20m ago•2 comments

Charities remain locked out of CAF Bank online accounts

https://www.theregister.com/security/2026/07/31/charities-remain-locked-out-of-caf-bank-online-ac...
1•Bender•24m ago•0 comments

Kun's Pi Agent Config

https://blog.kunchenguid.com/p/kuns-pi-agent-config
1•handfuloflight•28m ago•0 comments

Fermi Paradox

https://en.wikipedia.org/wiki/Fermi_paradox
1•simonebrunozzi•29m ago•0 comments

I made Squirrel game with Flutter and Flame

https://danvilela.com/squirrel-up
1•dmvvilela•29m ago•0 comments

Show HN: Cockpit for you Claude Code agents in Rust

https://episko.dev/
1•evolabs•30m ago•1 comments

GenAI Added to Google Earth

https://www.theatlantic.com/technology/2026/07/google-earth-ai-images/688145/
3•alwa•30m ago•1 comments

People Are Crossing Oceans for a Fayetteville Roller Coaster

https://www.axios.com/local/atlanta/2026/07/24/arieforce-one-closing-fayetteville-fun-spot-americ...
2•Xcelerate•31m ago•0 comments

Rails patches critical Active Storage flaw with RCE potential

https://www.bleepingcomputer.com/news/security/rails-patches-critical-active-storage-flaw-with-rc...
2•sbulaev•32m ago•0 comments

Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

2•pera•34m ago•5 comments

Trump Media's new paid data service goes live, faster access to Trump's posts

https://www.cnbc.com/2026/08/01/trump-medias-new-data-service-gives-faster-access-to-trumps-posts...
3•srameshc•35m ago•1 comments

Static Devirtualization of Tencent VM

https://back.engineering/blog/31/07/2026/
2•not_a9•37m ago•0 comments

The Swiss Spaghetti Harvest

https://hoaxes.org/archive/permalink/the_swiss_spaghetti_harvest
1•EndXA•38m ago•0 comments

Signal Structure of the Starlink Ku-Band Downlink (2023) [pdf]

https://radionavlab.ae.utexas.edu/wp-content/uploads/starlink_structure.pdf
1•peter_d_sherman•39m ago•0 comments

A Tech Founder Wanted to Start a New Country. An Actual Country Got in the Way

https://www.wsj.com/tech/a-tech-founder-wanted-to-start-a-new-country-an-actual-country-got-in-th...
1•impish9208•40m ago•1 comments

Chess Engine Dev Community Openly Hostile to AI Assisted Development

https://github.com/adamtwiss/coda/issues/15
3•chesspeoplercra•41m ago•0 comments

What's Up with the Weird Mouths of These Finch Chicks?

https://www.audubon.org/news/whats-weird-mouths-these-finch-chicks
1•thunderbong•42m ago•0 comments

Expanded Genetic Code

https://en.wikipedia.org/wiki/Expanded_genetic_code
1•frozenseven•43m ago•0 comments

Google cancels AI Studio app after 800k preorders

https://twitter.com/GoogleAIStudio/status/2083274575769473092
2•BlueBerry2001•44m ago•0 comments

Show HN: BugDetect AI – AI-powered code debugging assistant

https://bugdetectai.com
1•laxmansubedi•48m ago•0 comments