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.

Help Us Save MeshCore

https://blog.meshcore.io/2026/07/04/help-us-save-meshcore
1•geerlingguy•4m ago•0 comments

No-AI Label

https://en.wikipedia.org/wiki/No-AI_label
3•amelius•10m ago•0 comments

Social Geo App on AT Proto

https://pinnd.place/login
1•colomolo•11m ago•1 comments

JadePuffer ransomware used AI agent to automate entire attack

https://www.bleepingcomputer.com/news/security/jadepuffer-ransomware-used-ai-agent-to-automate-en...
2•Brajeshwar•13m ago•0 comments

Intelligent-Data /S

https://github.com/nicholascordova01/INTELLIGENT-DATA
1•alex_hirner•14m ago•0 comments

BSDun – Linux kernel module to load FreeBSD ELF binaries

https://gitlab.com/megastallman/bsdun
2•Tiberium•14m ago•0 comments

Beyond Horizon Analysis: Axiom Space – The First Orbital Real Estate Platform

https://beyondhorizonforesight.substack.com/p/beyond-horizon-analysis-axiom-space
1•beyondhorizonfs•14m ago•0 comments

Show HN: Daily Refreshed drop-in replacement for LiteLLM's model price map

https://cloudprice.net/models/api
2•gaploid•17m ago•0 comments

Show HN: Build offline-first web apps in pure Go and HTML

https://swag.mills.io
1•prologic•19m ago•0 comments

VapourDeck

https://spritesmods.com/?art=vapourdeck&f=rss
1•rcarmo•19m ago•0 comments

But what is quantum computing? (3blue1brown 2025)

https://www.youtube.com/watch?v=RQWpF2Gb-gU
3•andromaton•19m ago•1 comments

Generative AI like Midjourney creates images full of stereotypes

https://restofworld.org/2023/ai-image-stereotypes/
2•vinnyglennon•22m ago•1 comments

Show HN: Minicraft - Running Minecraft Classic from a Single Twitter Post

https://github.com/Kuberwastaken/minicraft
1•kuberwastaken•23m ago•0 comments

No Amazon? No problem:remote island built its own online shopping service

https://restofworld.org/2022/online-shopping-in-the-middle-of-the-ocean/
1•vinnyglennon•24m ago•0 comments

Running the '80s DECUS Star Trek game on my new MUMPS 76 interpreter

https://github.com/rochus-keller/MUMPS/blob/main/Readme.md
2•Rochus•27m ago•1 comments

A philosophical and neurocognitive manifesto on AI and ontological trauma

https://github.com/RiccardoGenco/genesis-2.0/blob/master/README.md
1•obs3ssion•28m ago•0 comments

Home made GPU escalated quickly [video]

https://www.youtube.com/watch?v=qMR3IXF2sWw
1•erichocean•29m ago•0 comments

Astryx Design System

https://astryx.atmeta.com/
1•ildon•32m ago•1 comments

QEMU-portable bundled QEMU for Node.js, no install required

https://github.com/Giulio2002/qemu-portable-ts
1•funnygiulio•36m ago•0 comments

Process Market Fit

https://kingsleyk.substack.com/p/process-market-fit
1•vinnyglennon•36m ago•0 comments

The Engineer in the Half-Space

https://yusufaytas.com/the-engineer-in-the-half-space
21•yusufaytas•40m ago•1 comments

ComplianceAgent: Open-source EU AI Act compliance scanner

https://github.com/latreon/compliance-agent
1•latreon•41m ago•0 comments

Space TV

https://apps.apple.com/au/app/space-tv/id6772833511
2•sighmon•42m ago•1 comments

Binstack: Making a maximal multi-dimensional decision (2022)

https://longform.asmartbear.com/maximized-decision/
1•tosh•42m ago•0 comments

The fundamentals of AI transformation (that most orgs are getting wrong)

https://www.northshore.studio/blog/the-fundamentals-of-ai-transformation-that-most-organisations-...
1•adrianhoward•43m ago•0 comments

Opus Magnum Tournament [video]

https://www.youtube.com/watch?v=MmGhJhJpNiM
1•ivanjermakov•53m ago•0 comments

Prediction Markets Offer Bets on Wildfires

https://www.motherjones.com/politics/2026/07/prediction-markets-polymarket-wildfire-bets-ethics-a...
4•cdrnsf•53m ago•3 comments

The Wormhole Hall of Shame

https://rznicolet.com/2026/07/05/wormhole-hall-of-shame/
3•rznicolet•54m ago•3 comments

Show HN: A Mac switchboard for Claude Cowork skills

https://skillswitch.cc/
1•pardzzz•55m ago•0 comments

White House deletes web pages about energy conservation as heatwave slams US

https://www.theverge.com/policy/961449/white-house-mamdani-heatwave-deletion
6•amarcheschi•57m ago•0 comments