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.

Art and War with a Master Storyteller

https://www.realcleardefense.com/articles/2026/05/01/art_and_war_with_a_master_storyteller_117988...
2•RickJWagner•3m ago•0 comments

CA Billionaire Spends $3.5M to oppose OpenAI in NY house race

https://www.nytimes.com/2026/05/01/us/politics/alex-bores-chris-larsen-open-ai-jack-schlossberg.html
1•dolomo•6m ago•1 comments

Anthropic's anti-distillation defense,reverse-engineered from Claude Code source

https://wanlanglin.github.io/-awesome-cc-harness/en/
2•felixwll•10m ago•0 comments

Ling-2.6-1T: A Trillion-Parameter Comprehensive Flagship Model for Complex Tasks

https://huggingface.co/inclusionAI/Ling-2.6-1T
1•darkhorse13•10m ago•0 comments

Show HN: LocalVQE: Tiny ~1M param audio model that cancels echo and noise

https://huggingface.co/spaces/LocalAI-io/LocalVQE-demo
1•richiejp•13m ago•0 comments

SpaceX spending on Starship tops $15B in rush for airline-like rocketry

https://www.reuters.com/business/autos-transportation/spacex-spending-starship-tops-15-billion-ru...
1•bilsbie•14m ago•0 comments

Publishers Demand Accountability from Common Crawl over Unauthorized Use

https://www.newsmediaalliance.org/nma-letter-to-common-crawl/
1•thm•14m ago•1 comments

Ask HN: How do you self-host your apps?

2•blindlobstar•15m ago•1 comments

Without warning, Germany ordered Lexus to remotely shut down the remote-start

https://twitter.com/redpillb0t/status/2050052552948175265
2•bilsbie•16m ago•0 comments

AI commerce needs an MLPerf – early attempt at one

https://ucpchecker.com/blog/ucp-playground-evals
1•benjifisher•17m ago•0 comments

The Productivity Panic Is Your Problem Now

https://stratechgist.com/p/the-productivity-panic-is-your-problem
2•bartdegoede•21m ago•0 comments

Hallucinated citations are polluting the scientific literature. What can be done

https://www.nature.com/articles/d41586-026-00969-z
1•b-man•21m ago•0 comments

Android VPN IP Leak Even If Always-On VPN Enabled

https://lowlevel.fun/posts/tiny-udp-cannon-android-vpn-bypass/
6•birdculture•22m ago•0 comments

The Rise of the High-Range, Less Expensive E.V

https://www.nytimes.com/2026/04/27/upshot/cheap-electric-cars-gas-prices.html
2•TheWeiHu•22m ago•1 comments

Elon Musk's A.I. Claims of Danger Face Limits in OpenAI Trial

https://www.nytimes.com/2026/04/30/technology/openai-trial-elon-musk-existential.html
1•1vuio0pswjnm7•23m ago•0 comments

An Ode to Inconsolation

https://terminaltrove.com/blog/an-ode-to-inconsolation/
1•diazc•23m ago•0 comments

Abaxx Announces Release of Open-Source Library for Agentic Identity: Agents++

https://investors.abaxx.tech/press-releases/abaxx-announces-the-formation-of-abaxx-labs-and-the-r...
1•mdhen•24m ago•1 comments

Herb Sutter: What C++26 Means for Production Systems [video]

https://www.youtube.com/watch?v=Qvr9MTAU_y4
1•KnuthIsGod•25m ago•0 comments

For first time since World War II, US national debt now larger than its economy

https://fortune.com/2026/04/30/national-debt-larger-than-economy-gdp-ratio-100-percent/
2•Geekette•25m ago•0 comments

Juan Alday: Why C++ Wins in Finance [video]

https://www.youtube.com/watch?v=InLxLEqg_fs
1•KnuthIsGod•26m ago•0 comments

Dreams – A New Social Media Network

1•code1234567890•26m ago•0 comments

California billionaire tax proposal attracts 1.5M signatures

https://www.latimes.com/business/story/2026-04-30/what-to-know-about-california-billionaire-tax-p...
3•1vuio0pswjnm7•27m ago•0 comments

Public consultation should begins on plans to transform the moon and Mars

https://www.theguardian.com/commentisfree/2026/may/01/artemis-moon-mars
1•giuliomagnifico•29m ago•0 comments

D. B. Cooper

https://en.wikipedia.org/wiki/D._B._Cooper
1•chistev•29m ago•0 comments

Gašper Ažman: How C++26 Rethinks Concurrency and Execution [video]

https://www.youtube.com/watch?v=A13jJXW74xQ
1•KnuthIsGod•30m ago•0 comments

Vatican Observatory has asteroid named after Pope Leo XIII

https://www.vaticannews.va/en/vatican-city/news/2026-05/vatican-observatory-astronomy-asteroids-p...
1•thinkingemote•32m ago•0 comments

Running Adobe's 1991 PostScript Interpreter in the Browser

https://www.pagetable.com/?p=1854
9•ingve•36m ago•1 comments

Ask HN: How do you detect breaking API changes in CI?

1•coffeecoderr•37m ago•0 comments

Sanders splits with Washington on AI arms race with China

https://www.axios.com/2026/04/30/bernie-sanders-ai-arms-race-china
1•1vuio0pswjnm7•40m ago•1 comments

NHS Goes to War Against Open Source

https://shkspr.mobi/blog/2026/05/nhs-goes-to-war-against-open-source/
5•edent•41m ago•1 comments