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.

AI Agent Hacks McKinsey

https://codewall.ai/blog/how-we-hacked-mckinseys-ai-platform
1•mycroft_4221•22s ago•0 comments

Movies I Highly Recommend

https://github.com/ojhaugen15/12_movies
1•programmexxx•2m ago•0 comments

Richard Feynman's story illustrating the problem of p-hacking

https://twitter.com/SwipeWright/status/2031604331510690112
2•MrBuddyCasino•10m ago•0 comments

Glanceway – Collect RSS and custom plugin data in your macOS menu bar

https://glanceway.app
1•codytseng•11m ago•1 comments

Unbash: Fast 0-deps bash parser written in TypeScript

https://github.com/webpro-nl/unbash
1•mariuz•12m ago•0 comments

Ask HN: Is there a market for a security-audited Claude Code skills newsletter?

1•camicortazar•12m ago•0 comments

The Anthropic Institute

https://www.anthropic.com/news/the-anthropic-institute
4•meetpateltech•13m ago•0 comments

Gemini 2 Is the Top Model for Embeddings

https://agentset.ai/blog/gemini-2-embedding
2•tifa2up•17m ago•0 comments

Tutorials in Optomechanics

https://wp.optics.arizona.edu/optomech/tutorials-in-optomechanics/
1•o4c•19m ago•0 comments

A.I. Incites a New Wave of Grieving Parents Fighting for Online Safety

https://www.nytimes.com/2026/03/10/technology/ai-social-media-child-safety-parents.html
2•1vuio0pswjnm7•23m ago•0 comments

The Ig Nobel Prize Ceremony Is Moving to Europe (After 35 Years in the USA)

https://improbable.com/2026/03/10/the-ig-nobel-prize-ceremony-is-moving-to-europe-after-35-years-...
3•layer8•26m ago•0 comments

Some Arabic Words Transliterated

https://docs.google.com/document/d/1RMxjUr2Rki6TLNTNd00BNtBUwB0DJXiE4Dd_YppUi1I/edit
1•programmexxx•28m ago•0 comments

Google to Provide Pentagon with AI Agents

https://www.bloomberg.com/news/articles/2026-03-10/google-to-provide-pentagon-with-ai-agents-for-...
6•1vuio0pswjnm7•29m ago•2 comments

Europe tops global arms imports, SIPRI reports

https://www.dw.com/en/sipri-europe-arms-imports-global-weapons-trade-defense-spending/a-76261906
1•breve•33m ago•0 comments

AI-powered apps struggle with long-term retention, new report shows

https://techcrunch.com/2026/03/10/ai-powered-apps-struggle-with-long-term-retention-new-report-sh...
2•pseudolus•36m ago•0 comments

My app got 3k users in 48 hours and then monetization almost killed it

https://getcalendarly.com
1•DimKat•37m ago•1 comments

PEP 827 – Type Manipulation

https://peps.python.org/pep-0827/
2•EvgeniyZh•37m ago•0 comments

NASA's Van Allen Probe A to re-enter atmosphere

https://phys.org/news/2026-03-nasa-van-allen-probe-atmosphere.html
6•bookmtn•37m ago•0 comments

How age standardization make health metrics comparable

https://ourworldindata.org/age-standardization
1•sohkamyung•39m ago•0 comments

Discovering Little Worlds (2020)

https://dmitrybrant.com/2020/08/01/discovering-little-worlds
2•wonger_•39m ago•0 comments

Ukraine Reaches a Milestone: Making ‘China-Free’ Drones

https://www.nytimes.com/2026/03/11/world/europe/ukraine-drones-china.html
2•giuliomagnifico•40m ago•2 comments

Simple-Git NPM package has CVSS 9.8 RCE; 5M+ weekly downloads–check lockfiles

https://www.codeant.ai/security-research/simple-git-remote-code-execution-cve-2026-28292
1•birdculture•42m ago•0 comments

Automatic Pronunciation Error Detection and Correction of the Holy Quran

https://arxiv.org/abs/2509.00094
1•handfuloflight•45m ago•0 comments

Show HN: A simple hardened AI Docker cluster

https://github.com/kummahiih/secure-mcp/
1•kummap•48m ago•0 comments

Astro 6.0 Is Released

https://astro.build/blog/astro-6/
3•mariuz•48m ago•0 comments

A new model defines an upper limit to planetary radiation belt intensity

https://phys.org/news/2026-03-upper-limit-planetary-belt-intensity.html
3•bookmtn•49m ago•0 comments

VoltRN CLI for React Native/Expo Scaffolding, Generators

https://github.com/IronTony/voltrn-cli
1•IronTony•49m ago•1 comments

Analect – AST and LLM Code Summary and Navigation

https://analect.dev
1•ascent817•51m ago•0 comments

Show IH: I built a runtime control plane to stop AI agents from burning money

https://github.com/vijaym2k6/SteerPlane
1•vijaym2k6•52m ago•0 comments

Show HN: Free API toolkit – cron, webhooks, DNS, hashing, regex

https://frog03-20494.wykr.es/devtools/
1•patchnull•56m ago•1 comments