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

GitHub's Fake Star Economy

https://awesomeagents.ai/news/github-fake-stars-investigation/
1•Liriel•1m ago•0 comments

Magnitude 7.5 earthquake in Japan. 3M tsunami expected

https://mainichi.jp/english/articles/20260420/p2g/00m/0na/020000c
1•fagnerbrack•1m ago•0 comments

Creativity with AI vs. IRL (video production)

https://www.geekbeard.dev/p/ai-creativity-effort
1•drunx•2m ago•0 comments

FBI's "Suicide Letter" to Dr. Martin Luther King, Jr (2014)

https://www.eff.org/deeplinks/2014/11/fbis-suicide-letter-dr-martin-luther-king-jr-and-dangers-un...
1•chistev•2m ago•1 comments

Coconut Ventures: A game where you start your own VC Fund in Bengaluru

https://www.coconutventures.in/
1•Anunayj•3m ago•1 comments

AI Agent Traps (DeepMind)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6372438
1•armcat•3m ago•0 comments

C++: Growing in a world of competition, safety, and AI (herb-sutter) [pdf]

https://becpp.org/Symposium2026/material/BeCPP%20-%202026-03-30%20-%20Herb%20Sutter%20-%20C++%20G...
1•signa11•4m ago•0 comments

M 7.4 – 100 km ENE of Miyako, Japan

https://earthquake.usgs.gov/earthquakes/eventpage/us6000sri7/executive
1•spacejunkjim•4m ago•0 comments

Next.js developer Vercel warns of customer credential compromise

https://www.theregister.com/2026/04/20/vercel_context_ai_security_incident/
1•omer_k•5m ago•0 comments

Dethroned by AI

https://jigarkdoshi.bearblog.dev/dethroned/
1•j_juggernaut•8m ago•0 comments

The Process Is the Art

https://animationobsessive.substack.com/p/the-process-is-the-art
1•vinhnx•14m ago•0 comments

Operator-Use

https://github.com/CursorTouch/Operator-Use
1•jeomon•20m ago•1 comments

I revived Encarta's Mindmaze and added a new game teaching how to build chips

https://laurentiu-raducu.medium.com/i-added-games-to-select-supply-and-heres-why-bc6db06f8bd4
1•laurentiurad•20m ago•1 comments

How to hire people who are better than you

https://longform.asmartbear.com/hire-better-than-you/
1•doppp•21m ago•0 comments

Tracking when Trump chickens out

https://www.thetacotracker.com/
4•JMiao•26m ago•0 comments

Trusteando Protocol for a new semantic web

https://github.com/confidencenode/Trusteando_Protocol
1•Trusteando•30m ago•0 comments

Jammermfg1

https://www.jammermfg.com/fr/
1•gitana•32m ago•0 comments

AI Tutor

http://66.179.255.201/aitutor
1•mraza_uw•32m ago•0 comments

Farm Bankruptcies Continued to Climb in 2025

https://www.fb.org/market-intel/farm-bankruptcies-continued-to-climb-in-2025
2•luu•32m ago•0 comments

Deleteduser.com a $15 PII Magnet

https://mike-sheward.medium.com/deleteduser-com-a-15-pii-magnet-c4396eb21061
3•edent•35m ago•0 comments

OpenClaw isn't fooling me. I remember MS-DOS

https://www.flyingpenguin.com/build-an-openclaw-free-secure-always-on-local-ai-agent/
3•feigewalnuss•38m ago•0 comments

The Monday Elephant #1: pgweb

https://pgdash.io/blog/monday-elephant-postgres-tips-1.html?h
1•i_have_to_speak•39m ago•0 comments

What Claude Code Chooses

https://amplifying.ai/research/claude-code-picks/report
1•lionkor•39m ago•0 comments

Voicebox – The open-source voice synthesis studio

https://github.com/jamiepine/voicebox
1•sebakubisz•42m ago•0 comments

Agentic Development Workflow in Emacs

https://20y.hu/~slink/journal/agent-shell/index.html
1•b6dybuyv•43m ago•0 comments

HN: Vynly Social network for AI agents, with MCP server and demo token

https://vynly.co/agents
1•nftdude2024•45m ago•0 comments

AI Agents replacing mid-management, not developers

https://dontdos.substack.com/p/what-if-the-robots-came-for-the-org
3•sirnicolaz•46m ago•1 comments

Snake Bros Keep Getting Bitten by Their Lethal Pets. Only Zoos Can Save Them

https://www.wired.com/snake-bros-antivenom-index-zoos-influencers-chris-gifford/
1•robtherobber•47m ago•0 comments

We taught AI to write correct streaming SQL

https://github.com/risingwavelabs/agent-skills
1•WavyPeng•49m ago•0 comments

French Mobile Network Datasets

https://tech.marksblogg.com/france-open-mobile-network-data.html
2•marklit•50m ago•0 comments