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.

Making a Type Checker/LSP for Nix

https://johns.codes/blog/making-a-type-checker-lsp-for-nix
1•birdculture•3m ago•0 comments

The Oxygen Apocalpyse: how bacteria used a spin diode to wipe out ancient life

https://keiran-rowell.github.io/oxygen/2026-04-02-the-oxygen-apocalypse/
1•KR_compchem•3m ago•0 comments

Shibuya's New 'G-Cha and Ba-Cha' Cafe Is Run by Senior Citizens

https://spoon-tamago.com/shibuya-senior-citizen-cafe/
1•herbertl•4m ago•1 comments

Void: Netflix open-sources a model for physics-aware video object removal

https://firethering.com/void-ai-video-object-removal-physics/
1•steveharing1•4m ago•0 comments

Show HN: Dev Personality Test

https://personality.4m1r.dev/
1•4m1rk•6m ago•0 comments

Seat Pricing Is Dead

http://seatpricing.rip/
1•arnon•7m ago•0 comments

Mad Television Tycoon

https://store.steampowered.com/app/3565020/Mad_Television_Tycoon/
1•doener•11m ago•0 comments

Mecha: A flat-file content management system for minimalists

https://github.com/mecha-cms/mecha
1•indigodaddy•11m ago•0 comments

Show HN: Harness CLI – Open-source agent loop for long-running app development

https://github.com/hyspacex/harness-cli
1•huanyux•12m ago•0 comments

Offering 1 free hour on marketing and distribution for early builders

1•zonementale•18m ago•0 comments

Show HN: Weakmap – weak map for Go without use of finalizers

https://codeberg.org/yarmak/weakmap
1•Snawoot•19m ago•0 comments

Cindy Cohn: Privacy's Defender – Fighting Digital Surveillance for over 30 Years [video]

https://www.youtube.com/watch?v=APYidsm5FOs
1•verdverm•20m ago•0 comments

Dropping capitalist-individualism for democratic-socialist spiritualism

https://thenotoriousdmg.substack.com/p/non-alignment-and-its-consequences
3•himanshu7net•21m ago•0 comments

NASA Astronomy Picture of the Day

https://apod.nasa.gov/apod/astropix.html
1•lschueller•21m ago•1 comments

Google Now Lets You Change Your Gmail Address

https://www.wired.com/story/how-to-change-your-gmail-address/
3•mgh2•22m ago•1 comments

Camels, sailboats and poultry trucks: One man's no-fly journey around the world

https://www.cnn.com/2026/04/01/travel/egyptian-traveler-omar-nok-round-the-world-without-flying
2•NaOH•27m ago•0 comments

OpenClaw CVE and Security Advisory Tracker

https://github.com/jgamblin/OpenClawCVEs/
4•_____k•29m ago•0 comments

SEC Rubio Revokes Green Cards of Foreign Nationals W Ties to Iranian Terror

https://www.state.gov/releases/office-of-the-spokesperson/2026/04/secretary-rubio-revokes-green-c...
1•737min•29m ago•0 comments

All the Worst People Seem to Want to Be 'High Agency'

https://www.nytimes.com/2026/04/01/opinion/high-agency-silicon-valley.html
6•mrkaye97•29m ago•1 comments

Should you upload blood test results to AI?

https://www.wsj.com/tech/ai/health-data-perplexity-claude-ai-d792a2df
1•bookofjoe•30m ago•1 comments

OpenRouter Raises $120M at a $1.3B Valuation

https://www.inc.com/ben-sherry/openrouter-helps-companies-pick-the-best-ai-for-the-job-and-could-...
4•ryanatallah•31m ago•1 comments

Local LLM for OpenCode Gemma 4 26B A4B. No GPU required

https://grigio.org/the-best-local-llm-for-opencode-gemma-4-26b-a4b-no-gpu-required/
2•grigio•33m ago•0 comments

Hobby CNC machining and resin casting (2015)

https://lcamtuf.coredump.cx/gcnc/
1•achierius•34m ago•0 comments

Is MCP Dead? What We Learned on MCP, CLI, and Skills

https://milvus.io/blog/is-mcp-dead-cli-and-skills-for-ai-agents.md
4•Fendy•37m ago•3 comments

How Iran Should End the War

https://www.foreignaffairs.com/middle-east/how-iran-should-end-war-javad-zarif
2•YeGoblynQueenne•39m ago•1 comments

Show HN: Makrell, one family for code, data, markup

https://makrell.dev
1•fberg•44m ago•0 comments

I Built an AI Agent Team for Software Development and Tested on 5 Real Projects

https://alexeyondata.substack.com/p/i-built-an-ai-agent-team-for-software
1•mooreds•44m ago•0 comments

ShieldStack TS – LLM security middleware for TypeScript

https://github.com/shujaSN/ShieldStack-TS
2•shujasn•44m ago•0 comments

Bsky Proposal: User Intents for Data Reuse (2025)

https://github.com/bluesky-social/proposals/blob/main/0008-user-intents/README.md
2•mooreds•45m ago•1 comments

Don't use IaC To deploy your application code

https://newsletter.masterpoint.io/p/don-t-use-iac-to-deploy-your-application-code
3•mooreds•45m ago•1 comments