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

Let's Buy Spirit Air

https://letsbuyspiritair.com/
1•bjhess•3m ago•0 comments

Vertical agrivoltaics in a temperate climate: Technical and social dimensions

https://www.sciencedirect.com/science/article/pii/S2772427125001664
3•bookofjoe•12m ago•0 comments

GameStop Is Offering to Buy eBay for $56B, CEO Ryan Cohen Says

https://www.wsj.com/business/deals/gamestop-is-offering-to-buy-ebay-for-56-billion-ceo-ryan-cohen...
2•momentmaker•12m ago•1 comments

Show HN: Special Days

https://special-days.pressbin.com/
2•jawns•13m ago•0 comments

Every American interacting with chatbot would need to upload a government ID

https://reclaimthenet.org/senate-panel-backs-guard-act-ai-age-verification-bill
4•g42gregory•17m ago•0 comments

xAI (Grok) Text-to-Speech and Speech-to-Text Are Now Available in Puter.js

https://developer.puter.com/blog/xai-tts-stt-in-puter-js/
1•ent101•19m ago•0 comments

Modern Standby is draining your laptop's battery, and Microsoft won't fix it

https://www.xda-developers.com/modern-standby-draining-windows-11-laptop-battery-microsoft-wont-f...
1•unddoch•22m ago•0 comments

WASM interpreter fits in a QR code

https://purplesyringa.moe/blog/this-wasm-interpreter-fits-in-a-qr-code/
3•curryhoward•25m ago•1 comments

Show HN: Three-step Reader an experimental visual layout for speed reading books

https://vernetit.github.io/s4/
1•Vernetit•26m ago•0 comments

The 'Hidden' Costs of Great Abstractions

https://jdgr.net/the-hidden-costs-of-great-abstractions
11•jdgr•27m ago•0 comments

Want to Watch button missing for movie searches

https://support.google.com/websearch/thread/414738182/want-to-watch-button-missing-for-movie-sear...
1•chatmasta•28m ago•0 comments

Three cruise ship passengers die in suspected hantavirus outbreak

https://www.reuters.com/business/healthcare-pharmaceuticals/three-passengers-dead-one-case-hantav...
2•vld_chk•30m ago•0 comments

No Joke. Unification of (GR/Qt)

https://twitter.com/CTibedo/status/2051071923849723947
1•GeometryKernel•32m ago•1 comments

H4ckf0r0day/obscura: The headless browser for AI agents and web scraping

https://github.com/h4ckf0r0day/obscura
4•rezaprima•36m ago•3 comments

Show HN: Optical Design and Simulation in Matlab

https://www.mathworks.com/help/images/optical-system-design-and-analysis.html
1•ashishuthama•38m ago•0 comments

Could the X-Bat Stealth Fighter Drone Change the Air Combat Game?

https://www.twz.com/air/could-the-x-bat-stealth-fighter-drone-change-the-air-combat-game
1•breve•42m ago•0 comments

I Replaced Kiro with a Free Plugin – Here's What Happened

https://www.getdraft.dev/blog/replaced-kiro-with-free-plugin/
1•mayurpise•42m ago•0 comments

Drones are getting drugs, escape tools and crab legs to inmates

https://www.cnn.com/2026/05/03/us/drone-deliveries-contraband-prison-inmates
1•breve•45m ago•1 comments

Show HN: Cryptographic receipt authority for ISO 20022 financial messages

https://20022validator.com
1•NextGenRails•46m ago•0 comments

Show HN: Stigmem – open-source federated knowledge fabric for AI agents (v1.0)

2•barryjones20•46m ago•0 comments

Agentic Coding Is a Trap

https://larsfaye.com/articles/agentic-coding-is-a-trap
4•ayoisaiah•47m ago•1 comments

Local, deterministic, version-controlled knowledge graph

https://www.getdraft.dev/blog/local-graph-engine/
1•mayurpise•53m ago•0 comments

The PHP License, Simplified

https://ben.ramsey.dev/blog/2026/05/the-php-license-simplified
2•gslin•1h ago•0 comments

Open source intelligence about Palantir

https://palantirwatch.org
1•seb1204•1h ago•0 comments

Using the "Sandwich Method" to Teach Mathematics

https://pikuma.com/blog/sandwich-method-math-education
1•atan2•1h ago•0 comments

Kloak keeps secrets out of your application's memory

https://getkloak.io/blog/kloak-50000-feet-view/
1•spinningfactory•1h ago•0 comments

PyFlue – Python-Native Agent Harness Framework (Python Clone of Flue)

https://super-agentic.ai/pyflue
2•sebst•1h ago•0 comments

Show HN: Zuma Portable

https://drive.google.com/drive/folders/1hDRvlY707VrO_UztEtIt1EoPgKBICL8Q?usp=sharing
1•zeeeeeebo•1h ago•0 comments

Simpson's Paradox

https://en.wikipedia.org/wiki/Simpson%27s_paradox
7•basilikum•1h ago•1 comments

California man uses elaborate drone show to help delivery drivers find his house

https://www.dexerto.com/entertainment/california-man-uses-elaborate-drone-show-to-help-delivery-d...
3•gnabgib•1h ago•0 comments