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

Trump Evacuated After Shots Fired at DC Event; Shooter Detained

https://www.bloomberg.com/news/articles/2026-04-26/alleged-shooter-at-white-house-press-event-in-...
2•anjneymidha•1m ago•0 comments

Tired of high costs, some Americans are importing homes straight from China

https://www.cnn.com/2026/04/25/business/china-imports-americans-homebuilding-costs
2•breve•6m ago•0 comments

Trump rushed out of dinner amid reports of shots fired

https://www.nytimes.com/live/2026/04/25/us/trump-whca-shooting
1•koolba•10m ago•0 comments

Multiple AI Models in One Platform

https://www.chatcomparison.ai/
1•chatcomparison•12m ago•0 comments

Zephyr Agent: Add AI chat to any website

https://zephyr-agent.sh/
1•daltonlcarr•12m ago•0 comments

My husband and son dived to see the wreck of the Titanic, and never came back

https://www.theguardian.com/world/2026/apr/25/my-husband-and-son-titan-submersible-christine-dawo...
1•pseudolus•14m ago•0 comments

With A.I., Anyone Can Be an Influencer

https://www.newyorker.com/culture/the-lede/with-ai-anyone-can-be-an-influencer
1•petethomas•22m ago•0 comments

Tell HN: An app is silently installing itself on my iPhone every day

5•_-x-_•23m ago•1 comments

OpenAI shipped privacy-filter, a 1.5B PII tagger you can run locally

https://redactdesk.app/blog/openai-privacy-filter
2•kamban•25m ago•0 comments

Yalda Hakim on the collapse of 'seeing is believing'

https://www.reuters.com/lifestyle/culture-current/yalda-hakim-collapse-seeing-is-believing-2026-0...
1•petethomas•26m ago•0 comments

Decoupled DiLoCo for Resilient Distributed Pre-Training [pdf]

https://storage.googleapis.com/deepmind-media/DeepMind.com/Blog/decoupled-diloco-a-new-frontier-f...
1•gnabgib•27m ago•0 comments

The Race to Make the Most In-Demand Machine

https://www.wsj.com/business/the-race-to-make-the-worlds-most-in-demand-machine-092e8cea
1•petethomas•28m ago•0 comments

EarTrumpet: Volume Control for Windows

https://eartrumpet.app/
1•thunderbong•29m ago•0 comments

New Model May Explain Why You're Not a Twin

https://nautil.us/this-new-model-may-explain-why-youre-not-a-twin-1280219
1•Brajeshwar•29m ago•0 comments

Why is there so much bad code at big companies?

https://www.natemeyvis.com/why-is-there-so-much-bad-code-at-big-companies/
1•Brajeshwar•31m ago•0 comments

Usage limits for each of the Claude plans

https://xcancel.com/nrehiew_/status/2048009931757097079
2•byincugnito•31m ago•0 comments

Google unveils way to train AI models across distributed data centers

https://www.sdxcentral.com/news/google-unveils-way-to-train-ai-models-across-distributed-data-cen...
1•oavioklein•34m ago•1 comments

China Publishes Maps Detailing Minerals on the Ocean Floor

https://www.nytimes.com/2026/04/23/climate/china-seabed-mining-maps-rare-earths.html
1•bookofjoe•34m ago•1 comments

The Super Nintendo Cartridges

https://fabiensanglard.net/snes_carts/
3•offbyone42•36m ago•0 comments

Thalidomide Scandal

https://en.wikipedia.org/wiki/Thalidomide_scandal
2•jseip•37m ago•0 comments

Superpower Suicide (Or, Attempted Suicide)

https://snyder.substack.com/p/superpower-suicide
1•hkhn•38m ago•0 comments

AI cannot plan

https://orchidfiles.com/ai-will-build-your-roadmap-in-ten-seconds/
1•theorchid•39m ago•0 comments

Europe to burned American scientists: We'll take you in (2025)

https://www.politico.eu/article/europe-exploit-dunald-trump-brain-drain-academic-research-progres...
20•vrganj•44m ago•7 comments

Show HN: OO – Automated O&O Shut-Up for Windows

https://github.com/mytech-today-now/OO
1•mytechtoday•46m ago•0 comments

Show HN: DDoS detection in 0.9s, tested against a 48 Gbps attack live

https://flowtriq.com/blog/lorikeet-security-case-study
1•jacob_masse•46m ago•0 comments

Fast Fourier Transforms: for fun and profit (1966)

https://dl-acm-org.mutex.gmu.edu/doi/abs/10.1145/1464291.1464352
2•smitty1e•50m ago•0 comments

Ask HN: Oh, What Places to Go (Seriously Tho)

4•thx•51m ago•7 comments

Show HN: MTTCleaner – Same as CCleaner but free, no ads

https://github.com/mytech-today-now/mTTCleaner
1•mytechtoday•1h ago•0 comments

Why has there been so little progress on Alzheimer's disease?

https://freakonomics.com/podcast/why-has-there-been-so-little-progress-on-alzheimers-disease/
33•chiefalchemist•1h ago•4 comments

Multiple things can be true at the same time

https://frederikbraun.de/feels-and-llms.html
2•birdculture•1h ago•0 comments