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

Warfare in Dune, Part II: The Fremen Jihad

https://acoup.blog/2026/03/13/collections-warfare-in-dune-part-ii-the-fremen-jihad/
1•Tomte•1m ago•0 comments

How I Use Claude to Run My Workday

https://aititus.com/content/How_I_Use_Claude_to_Run_My_Entire_Workday
1•titusblair•4m ago•0 comments

Claude, you are a cutie-pie

https://margaretatwood.substack.com/p/claude-you-are-a-cutie-pie
1•shervinafshar•6m ago•0 comments

50 Years of Thinking Different

https://www.apple.com/50-years-of-thinking-different/
1•itchingsphynx•11m ago•0 comments

Einstein Letter to the NY Times on Zionism (1948)

https://archive.org/details/AlbertEinsteinLetterToTheNewYorkTimes.December41948
1•fullautomation•17m ago•0 comments

How to use storytelling to fit inline assembly into Rust

https://www.ralfj.de/blog/2026/03/13/inline-asm.html
1•vinhnx•26m ago•0 comments

Reinventing Python's AsyncIO

https://blog.baro.dev/p/reinventing-pythons-asyncio
1•vinhnx•27m ago•0 comments

I've taught people how to use AI – here's what I've learned

https://www.theguardian.com/lifeandstyle/ng-interactive/2026/mar/10/teaching-ai-what-i-learned
2•coloradoave22•31m ago•1 comments

Show HN: Ffetch v5 – TypeScript-first fetch client

https://www.npmjs.com/package/@fetchkit/ffetch
1•gkoos•37m ago•0 comments

Everyone within humanities can contribute to the study of AI

https://www.universiteitleiden.nl/en/news/2025/09/stephan-raaijmakers-everyone-within-humanities-...
1•teleforce•40m ago•0 comments

Ex-Windows chief praises MacBook Neo, laments Surface defeat

https://www.windowscentral.com/microsoft/ex-windows-chief-calls-macbook-neo-a-paradigm-shifting-c...
4•walterbell•41m ago•0 comments

Riva: Local-first observability for AI agents

https://github.com/sarkar-ai-taken/riva
1•sarkarsaurabh27•46m ago•1 comments

From CIA to CEO, Spies Step Out of the Shadows and into the Boardroom

https://www.bloomberg.com/news/features/2026-03-13/former-cia-spies-launch-defense-tech-startups-...
2•jbegley•47m ago•0 comments

Musk Says xAI Must Be Rebuilt as Co-Founders Exit

https://www.wsj.com/tech/musk-says-xai-must-be-rebuilt-as-co-founders-exit-47770dfa
1•1vuio0pswjnm7•48m ago•0 comments

Hegseth on CNN: 'The sooner David Ellison takes over that network, the better'

https://thehill.com/policy/defense/5782562-hegeseth-criticizes-cnn-iran/
2•KnuthIsGod•49m ago•0 comments

xAI Co-Founder Toby Pohlen Is Latest Executive to Depart

https://www.bloomberg.com/news/articles/2026-02-27/xai-co-founder-toby-pohlen-is-latest-executive...
2•1vuio0pswjnm7•51m ago•1 comments

Lawyers in landmark social media addiction trial make final appeals to the jury

https://apnews.com/article/meta-instagram-facebook-trial-social-media-addiction-0e99c9ba615942172...
4•1vuio0pswjnm7•55m ago•0 comments

Nasdaq Proposes New "Fast Entry" Rule for the Nasdaq-100 Index

https://www.ashurst.com/en/insights/nasdaq-proposes-new-fast-entry-rule-for-the-nasdaq-100-index/
1•walterbell•57m ago•0 comments

Tethyr Cloud: Open Agent discovery, zero vendor lock-in (AIdeas Semi-finalist)

https://builder.aws.com
1•walmsles•59m ago•1 comments

Wool – A no-nonsense distributed Python runtime

https://github.com/wool-labs/wool
3•bzurak•1h ago•2 comments

Approximating π using Monte Carlo Simulation (watch as the process converges)

https://graui.de/code/montePi/
1•joebig•1h ago•0 comments

Can a 100-Year-Old Mouse Save Disney?

https://www.honest-broker.com/p/can-a-100-year-old-mouse-save-disney
1•paulpauper•1h ago•0 comments

The Anthropic Institute

https://www.anthropic.com/news/the-anthropic-institute
1•gmays•1h ago•0 comments

I built AP score calculators for all 24 AP exams

https://apscorecalc.com/
1•smarthomeu•1h ago•1 comments

A Hard Reset, and What Comes Next

https://digg.com
3•magnust•1h ago•1 comments

Show HN: Free email finder for job seekers – find and contact hiring managers

https://www.dropzone.careers
1•qcarroll•1h ago•5 comments

exe-muttha-fukken-dev.exe.xyz [fan page]

https://exe-muttha-fukken-dev.exe.xyz
1•indigodaddy•1h ago•0 comments

The Church of Artificial Superintelligence

https://churchofai.webzum.com
2•billions•1h ago•0 comments

'Not built right the first time', Musk's xAI is starting over again, again

https://techcrunch.com/2026/03/13/not-built-right-the-first-time-musks-xai-is-starting-over-again...
2•jnord•1h ago•0 comments

The Most Accurately Predicted Genocide in History

https://thewalrus.ca/sudan-genocide/
10•garbawarb•1h ago•1 comments