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.

Arcan: A Farewell to Hubs

https://arcan-fe.com/2026/10/23/a-farewell-to-hubs/
1•ingenieroariel•2m ago•1 comments

OpenAI slashes funding target by $10B as tech anxieties mount

https://www.ft.com/content/7a3ad950-1b3b-4d9e-8c15-65a61ae6180f
2•zomtorg•10m ago•0 comments

Show HN: Blc – scheduled website blocker for macOS

https://github.com/BohdanPetryshyn/blc
1•BohdanPetryshyn•13m ago•0 comments

Welcome to GenZ University

https://genzuniversity.in/
1•jruohonen•14m ago•0 comments

Show HN: Governor, a firewall for AI agent spend and tool calls

https://bsvkey-governor-demo.fly.dev/
1•PDRGenerator•16m ago•0 comments

Travellar – the trips in your camera roll, as animated map videos

https://www.travellar.app/
2•gbresciano•26m ago•0 comments

Site Reliability Engineering (2nd Edition)

https://www.oreilly.com/library/view/site-reliability-engineering/9798341607675/
1•teleforce•26m ago•0 comments

System Zero

https://www.rightnowai.co/
1•OsamaJaber•28m ago•0 comments

Bee Cleansing Flight (What's It All About?)

https://beekeepinginsider.com/bee-cleansing-flight/
1•thunderbong•31m ago•0 comments

Black October: At least nine AI developer platforms breached this month

https://www.wiz.io/blog/black-october-for-ai-developer-platforms
2•acossta•32m ago•0 comments

Where AI agents' social boundaries break: 5 LLMs try to form a government

https://judgementlabs.app/blog/the-coalition-room
1•Jash271•38m ago•2 comments

Ask HN: What's the future like? For normies, will it still be apps and websites?

1•talmr•41m ago•0 comments

Behind the Scenes of Crypto's Biggest Nightmare: A Record-Breaking Cyber Heist

https://www.wsj.com/finance/currencies/behind-the-scenes-of-cryptos-biggest-nightmare-a-record-br...
1•jaredwiener•44m ago•1 comments

JWST reveals a distant galaxy that may let most of its ionizing radiation escape

https://phys.org/news/2026-10-jwst-reveals-distant-galaxy-ionizing.html
1•wglb•45m ago•1 comments

General Atomics Developing Flying Wing That Uses Hybrid-Electric Propulsion

https://www.twz.com/news-features/general-atomics-developing-strike-recon-flying-wing-called-next...
1•cisc•51m ago•0 comments

Show HN: To Honor Sir Patrick Stewart, Enjoy the TNG Episode Guessing Game

https://tng.episodle.com/
17•francisofascii•52m ago•5 comments

Live CVE Feed to Keep Your Agent Up to Speed

https://casco.com/cve
1•french_toast_fi•54m ago•0 comments

Googling Firebase got me a phishing page hosted by Google

https://volodymyr.smirnov.im/writing/google-firebase-phishing/
4•vsmim•54m ago•0 comments

Be a Loser

https://makemeacto.cc/be-a-loser/
1•larsfaye•55m ago•0 comments

China's CE-25A Electric Commuter Airliner Demonstrator Emerges

https://www.twz.com/air/chinas-ce-25a-electric-commuter-airliner-demonstrator-emerges-in-photos
2•cisc•1h ago•0 comments

Channel Binding

https://blog.prosody.im/channel-binding/
1•zaik•1h ago•0 comments

AI agents shape experts' judgment calls

https://www.anthropic.com/research/agents-judgment-calls
1•firasd•1h ago•1 comments

Hue-rs: control hue lightbulb directly

https://github.com/hiatus770/hue-rs
1•hiatus330•1h ago•0 comments

U.S. approves $2.1B sale of Patriot interceptors to Ukraine

https://www.nbcnews.com/world/ukraine/us-approves-21-billion-sale-patriot-interceptors-ukraine-rc...
3•paaloeye•1h ago•1 comments

Fair Use Benefits Everyone

https://openai.com/index/fair-use-benefits-everyone/
19•pentagrama•1h ago•44 comments

The 'Moylan Arrow' Is One of Ford's Best Contributions to Car Design

https://www.thedrive.com/news/the-moylan-arrow-is-one-of-fords-best-contributions-to-car-design
5•thunderbong•1h ago•0 comments

10.0: CVE-2026-112816 – Canonical LXD – Improper cert validation — no emudhra

https://twitter.com/cvedotnow/status/2116213963872518418
1•paaloeye•1h ago•0 comments

Ask HN: Are most of you using HN Replies? Or what else do you use?

3•Gooblebrai•1h ago•4 comments

Show HN: Free Unlimited Virtual Monitors+Watch Claude Work on Them+Community

https://multispace.dev/
1•DanielSystem•1h ago•12 comments

Federal Bureau of Prisons employees serve as election monitors at polling sites

https://www.corrections1.com/federal-prison/bop-employees-to-serve-as-election-monitors-at-pollin...
12•MadrasTh0rn•1h ago•2 comments