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.

Why OpenAI Decided to Buy 'TBPN,' Tech's Hottest News Show

https://www.wsj.com/tech/openai-technology-business-programming-network-b681ef6b
1•mudil•23s ago•0 comments

Referi – A trusted network for job referrals

https://www.referi.net
1•onlinemelvin•4m ago•0 comments

Show HN: LM Gate – Auth and access-control gateway for self-hosted LLM back ends

https://github.com/hkdb/lmgate
1•hkdb•6m ago•0 comments

Show HN: Claudebar, the missing interactive menu bar for Claude Code

https://github.com/LabLeaks/claudebar
1•didgeoridoo•7m ago•0 comments

Open-source runtime security toolkit for autonomous AI agents covering OWASP Top

https://opensource.microsoft.com/blog/2026/04/02/introducing-the-agent-governance-toolkit-open-so...
1•mosiddi•24m ago•0 comments

AutoGameStudio – Autoresearch for Game Development

https://autogamestudio.ai/games
2•Optl•28m ago•0 comments

NanoClaw's architecture is a masterclass in doing less

https://jonno.nz/posts/nanoclaw-architecture-masterclass-in-doing-less/
2•jonnonz•29m ago•0 comments

Convex for Enterprise

https://news.convex.dev/enterprise-launch/
1•handfuloflight•30m ago•0 comments

git-leash - time focused controls for Git

https://github.com/SiteRelEnby/git-leash
2•shakna•31m ago•0 comments

FP: Agent Native Issue Tracking

https://fp.dev/
1•handfuloflight•34m ago•0 comments

UpMocker: Browser-based mockups for chats and posts

https://upmocker.com/
1•CaptainJack_X•35m ago•0 comments

Show HN: Wordie – Spaced repetition vocab app built around sentences not quizzes

https://www.gowordie.com
1•tailaiw•37m ago•0 comments

Hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
2•birdculture•39m ago•0 comments

Stack Overflow (Beta)

https://beta.stackoverflow.com/
4•djoldman•46m ago•0 comments

GEN-1: Scaling Embodied Foundation Models to Mastery

https://generalistai.com/blog/apr-02-2026-GEN-1
6•gryfft•52m ago•1 comments

Title: MCPNest – The missing App Store for MCP servers (983 servers indexed)

https://www.mcpnest.io/
1•malasartes•53m ago•0 comments

Show HN: A Minimal Basic Inspired by Brainfuck

https://coe.psu.ac.th/ad/minBASIC/
1•ADavison2560•57m ago•0 comments

SpaceX has held talks with Saudi fund for $5B investment in IPO

https://www.reuters.com/business/finance/spacex-has-held-talks-with-saudi-fund-possible-5-billion...
4•geox•58m ago•1 comments

Climate change may produce "fast-food" phytoplankton

https://news.mit.edu/2026/climate-change-may-produce-fast-food-phytoplankton-0331
4•gmays•1h ago•0 comments

I Built an SMS Gateway with a $20 Android Phone – Jonno.nz

https://jonno.nz/posts/built-an-sms-gateway-with-a-20-dollar-android-phone/
1•jonno-nz•1h ago•2 comments

How we caught the Axios supply chain attack

https://www.elastic.co/security-labs/how-we-caught-the-axios-supply-chain-attack
4•smsm42•1h ago•1 comments

Post Mortem: axios NPM supply chain compromise

https://github.com/axios/axios/issues/10636
5•Kyro38•1h ago•0 comments

MCP, we barely knew thee

https://suthakamal.substack.com/p/mcp-we-barely-knew-thee
2•suthakamal•1h ago•1 comments

Show HN: Trytet – Deterministic WASM substrate for stateful AI agents

https://trytet.com
2•bneb-dev•1h ago•0 comments

Claude published XD 18 desktop pets companions

https://github.com/StartripAI/buddyClaw
2•AlfredHua1•1h ago•1 comments

NIH restrictions on foreign research partnerships impacted 1 in 4 scientists

https://www.statnews.com/2026/03/27/nih-funding-national-researcher-survey-foreign-subaward-ban-i...
2•maxall4•1h ago•0 comments

OMSCS Research – Research Authored by OMSCS Students

https://omscs.gatech.edu/omscs-research
1•kerim-ca•1h ago•0 comments

AI benchmarks are broken. Here's what we need instead

https://www.technologyreview.com/2026/03/31/1134833/ai-benchmarks-are-broken-heres-what-we-need-i...
3•reddome•1h ago•1 comments

Debate without hate – taout a portmanteau for "Talk It Out"

https://www.taout.tv/
1•fcpguru•1h ago•0 comments

AI Harness on Google Trends

https://trends.google.com/trends/explore?date=today%205-y&q=Ai%20harness&hl=en-GB
1•__natty__•1h ago•0 comments