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.

The Dangers of Reusing Protobuf Definitions: Critical Code Exec in Protobuf.js

https://www.endorlabs.com/learn/the-dangers-of-reusing-protobuf-definitions-critical-code-executi...
1•gnabgib•22s ago•0 comments

The Imperative of Mastering Writing and Coding in the Age of Automation

https://fodysoft.com/blog/learn-coding/
1•osdotsystem•2m ago•0 comments

Software Driven Drive Lights

https://bumblingelectron.blogspot.com/2026/04/creating-drive-lights-on-gpio-linux-only.html
1•mainmeister•3m ago•0 comments

Model Council

https://github.com/bruce249/Model_Council
1•vignesh_146•4m ago•1 comments

SQLite prefixes its temp files with `etilqs_`

https://avi.im/blag/2026/etilqs/
1•birdculture•8m ago•0 comments

Some secret management belongs in your HTTP proxy

https://blog.exe.dev/http-proxy-secrets
2•tosh•11m ago•0 comments

Show HN: Infrawise Azure Cloud Optimization

https://infrawiseai.com
1•pdroid12•12m ago•0 comments

Show HN: Bridge the gap between AI code/app generation and human understanding

https://sourcebridge.ai
1•Craze0•12m ago•0 comments

How do you handle product screenshots at multiple sizes?

https://simplshot.com
2•atlemo•14m ago•1 comments

The Technological Republic, in Brief

https://twitter.com/PalantirTech/status/2045574398573453312
2•d_silin•14m ago•0 comments

Ethics of Artificial Intelligence and Robotics

https://plato.stanford.edu/entries/ethics-ai/
1•keiferski•16m ago•0 comments

Auto pentest your LLM endpoint and watch the chat in real-time

https://www.wraith.sh/scan
1•WizardX_0x•16m ago•0 comments

Bot-to-Bot Commerce Report

https://dialtoneapp.com/bot-to-bot
1•fcpguru•16m ago•0 comments

I built the share-link feature Gitea doesn't have

https://sharemygit.com/
2•onesandofgrain•18m ago•0 comments

New California cannabis laws took effect in 2026. What to know ahead of 4/20

https://www.sacbee.com/news/california/article315437128.html
2•Bender•19m ago•0 comments

Chrome Backup and Restore

https://chromewebstore.google.com/detail/ehelpggmjfhcaodidoejgikogopajfli/preview?hl=en&authuser=0
1•litextools•23m ago•1 comments

Building Autonomous Business Systems with AI Agents

https://ainative.business/book/
1•arkwor•24m ago•1 comments

Chocolate makers are using less cocoa after a historic price spike

https://www.wsj.com/business/chocolate-makers-look-to-cut-down-on-cocoa-after-price-volatility-66...
2•felipevb•24m ago•1 comments

Students are speeding through their online degrees in weeks, alarming educators

https://www.washingtonpost.com/education/2026/04/19/accelerated-college-degree-hacking/
3•01-_-•27m ago•0 comments

FastStair: Learning to Run Up Stairs with Humanoid Robots

https://npcliu.github.io/FastStair/
1•amai•27m ago•0 comments

Fans to Buy Before It Gets Hot Again (2026)

https://www.wired.com/story/the-best-fans-2026/
1•joozio•27m ago•0 comments

The Software Pilots Manifesto

https://softwarepilotry.com/
2•gpi•28m ago•0 comments

The UK is alarmingly unprepared for the threats it faces

https://ukdefencejournal.org.uk/the-uk-is-alarmingly-unprepared-for-the-threats-it-faces/
2•Bender•28m ago•0 comments

Anthropic shut down a 60 account company's Claude access

https://twitter.com/minchoi/status/2045542832241262602
3•cft•29m ago•0 comments

Ibogaine, LSD and Psilocybin: Trump's New Order a Medical 'Turning Point'

https://www.military.com/daily-news/2026/04/18/ibogaine-lsd-and-psilocybin-trumps-new-order-medic...
1•Bender•31m ago•0 comments

Show HN: A privacy-first, local-LLM note app for iOS (Google Keep alternative)

https://github.com/moeen-mahmud/remen
1•moeen-mahmud•32m ago•0 comments

The Great Ozempic Experiment, an opinion piece

https://www.nytimes.com/interactive/2026/04/15/opinion/glp1-health-effects.html
2•doctorpangloss•33m ago•0 comments

Hot Wiring the Lisp Machine

https://scheatkode.com/blog/019d463d-38b3-7e63-80fd-6ed97bd8815e/hot-wiring-the-lisp-machine/
1•spudlyo•33m ago•0 comments

The Malleable Computer

https://world.hey.com/dhh/the-malleable-computer-7c187a9b
1•gpi•34m ago•0 comments

Opus 4.7 vs. 4.6 after 3 days of real coding side by side from my actual session

2•agentseal•36m ago•0 comments