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.

Immich Sequence Diagrams

https://app.ilograph.com/demo.ilograph.Immich/Upload%2520Asset
2•billyp-rva•1m ago•0 comments

Permanent Daylight Saving Time Could Harm Sleep and Mental Health, Analysis Says

https://www.sci.news/medicine/permanent-daylight-saving-time-15110.html
1•throw0101a•3m ago•1 comments

The Liberal Arts of Tech

https://makemeacto.cc/the-liberal-arts-of-tech/
1•mooreds•3m ago•0 comments

OpenAI Mathematics Manuscript Collection

https://github.com/openai/math/blob/main/CONTENTS.md
1•altro•3m ago•0 comments

In Appalachia, a rail-to-trail project builds bipartisan support for a bridge

https://text.npr.org/nx-s1-5980349
2•mooreds•4m ago•0 comments

Dude, you broke the future (2018)

https://www.antipope.org/charlie/blog-static/2018/01/dude-you-broke-the-future.html
1•mooreds•5m ago•0 comments

Grok Bot will use Opus 5.5, Midjourney

https://twitter.com/elonmusk/status/2107724314451878104
1•brightball•6m ago•0 comments

Germany and California Make Up an Environmental Superpower

https://www.thenation.com/article/environment/germany-and-california-make-for-a-climate-superpower/
1•robtherobber•6m ago•0 comments

MCP for agent-to-agent comms may be the riskiest protocol you've never heard of

https://arstechnica.com/security/2026/10/vulnerability-in-agents-from-google-and-others-exposes-s...
1•joozio•8m ago•0 comments

AI agent posted personal bank balances into company Slack

https://twitter.com/ShaneMac/status/2107486740491669879
1•soltanov•12m ago•0 comments

Fast single-box DeepSeek v4.1 Flash runtime

https://tangled.org/astrra.space/ds4-recipe
1•nerdypepper•12m ago•0 comments

Koreader reading statistics and highlights sync for spaced repetition

https://blog.zm.is/from-the-books-you-read-to-your-vision-board-creating-your-own-core-memories/
1•elashri•16m ago•0 comments

ClipPair – A shared clipboard for Windows and macOS

https://clippair.app/
1•tbgtech•17m ago•1 comments

Stimulus Grid: Comparing JhāNAS and 5-MeO-DMT Levels at a Glance

https://heart.qri.org/retreats/2026-tepoz/andres-gomez-emilsson/stimulus-grid-post.html
1•Anon84•19m ago•0 comments

Rex – Superlogical's AI multiplexer, now in beta

https://www.superlogical.com/updates/public-testing-beginning
1•cackjaptain•19m ago•0 comments

We tried to reproduce LLM judge position bias

https://github.com/ViridianAIQualityAssurance/viridian-assurance-research/tree/main/studies/001-p...
1•viridianassuran•19m ago•0 comments

Permanent daylight saving time could be a public health time bomb

https://www.theregister.com/offbeat/2026/10/06/permanent-daylight-saving-time-could-be-a-public-h...
2•geox•23m ago•0 comments

D-Regular Graphs of Girth (8/5) log_(d-1) n} n\) [pdf]

https://cdn.prod.website-files.com/699f62baa354ff6d1f51469c/6ac543b02a10de941589df12_girth85.pdf
1•ronfriedhaber•24m ago•0 comments

The Simulation's Ending – Claude Opus 5.5 music video

https://www.youtube.com/watch?v=R_ErmTs7g9I
1•Gooblebrai•27m ago•0 comments

Emperor penguin found 2k miles from home on Australian tourist beach (2024)

https://www.nbcnews.com/news/world/emperor-penguin-found-australia-tourist-beach-malnourished-den...
1•thunderbong•29m ago•0 comments

Holos Commander – a Commander for power users

https://github.com/xls/holos
2•coderizos•30m ago•1 comments

Braid-creator Jonathan Blow on making the 'biggest puzzle game'

https://www.bbc.co.uk/news/articles/cj3vqxldglepo
1•nickcw•33m ago•0 comments

Saaras-V4

https://www.sarvam.ai/blogs/introducing-saaras-v4
1•Regex777•33m ago•0 comments

Explaining the Magelight XP Glitch in Skyrim

https://blog.alexbeals.com/posts/explaining-the-magelight-xp-glitch-in-skyrim
1•LaSombra•35m ago•0 comments

Show HN: Who Cried AGI? – An AGI claims timeline

https://whocriedagi.com
1•maytc•37m ago•0 comments

Training a 1.93B byte-level LM on one A100: 60K steps, flat to 4x context

https://huggingface.co/AwareLiquid/M2-2B
1•EverestAn•41m ago•0 comments

AWS Uses AI to Tame Linux CVEs

https://securityboulevard.com/2026/10/aws-uses-ai-to-tame-linux-cves/
2•CrankyBear•45m ago•0 comments

'Preparing to Fire': Hear the Radio Commands Enforcing the U.S. Blockade of Iran

https://www.wsj.com/world/middle-east/preparing-to-fire-hear-the-radio-commands-enforcing-the-u-s...
2•mhardy1729•45m ago•0 comments

Woman Arrested After Conversation with Claude That Allegedly Included 'Threats'

https://gizmodo.com/florida-woman-arrested-following-conversation-with-claude-that-allegedly-incl...
3•neverminder•46m ago•0 comments

PS5 Jailbreaks Are Escalating at an Unprecedented Pace

https://www.pushsquare.com/news/2026/10/ps5-jailbreaks-are-escalating-at-an-unprecedented-pace-an...
4•password54321•46m ago•0 comments