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

Don't orchestrate your agents, give them the tools to do it themselves

https://aweb.ai/orchestration
2•juanre•5m ago•1 comments

Russia strikes Kyiv with drones and hypersonic missile, in photos

https://apnews.com/photo-gallery/russia-strikes-kyiv-with-drones-hypersonic-missile-photos-cbb89c...
1•consumer451•6m ago•0 comments

How An MLB Stadium Feeds 40k Fans Every Game (From Hot Dogs to Lobster) [video]

https://www.youtube.com/watch?v=FckpeXHYLTk
1•gmays•7m ago•0 comments

Scholarly Futures: AI and the practical scientist

https://scholarlyfutures.substack.com/p/ai-and-the-practical-scientist
2•JohnHammersley•8m ago•0 comments

Meta urges Labour to burden Apple with age checks

https://www.telegraph.co.uk/business/2026/05/25/meta-urges-labour-to-burden-apple-with-age-checks/
1•logickkk1•8m ago•0 comments

Consequentialism

https://en.wikipedia.org/wiki/Consequentialism
1•consumer451•9m ago•0 comments

Murph - local agent for async handoffs in Slack and Discord

https://github.com/dannylee1020/murph
1•dannylee1020•9m ago•0 comments

Ferrari Luce: Engineering

https://www.ferrari.com/en-EN/auto/ferrari-luce-engineering
1•big_toast•12m ago•0 comments

The Infamous 20 Year Old MySQL Bug #11472 Has Been Fixed

https://bugs.mysql.com/bug.php?id=11472
1•karakoram•12m ago•0 comments

Why I'm Building Truly Typed

https://trulytyped.com/post/DWNSPR
1•dwa3592•13m ago•0 comments

Login bypass vulnerability in Polish Social Insurance, Court, and Health systems

https://zaufanatrzeciastrona.pl/post/ominiecie-uwierzytelniania-w-zus-ie-i-systemach-e-zdrowia-cz...
1•msm_•15m ago•1 comments

Collapse of Personal Computing

https://www.youtube.com/watch?v=zyQwAhppWj8
2•pjmlp•16m ago•0 comments

I built a productivity app that punishes you if you fail

https://www.youtube.com/watch?v=EmVxtOyu28Y
1•bmahir22•19m ago•0 comments

Show HN: The Grid in 4.5 Hours

https://www.stepchange.show/grid
1•ben8128•26m ago•3 comments

Riscrithm – An intuitive RISC-V assembler and optimizer coded in Go

https://github.com/ghetea-patrick/riscrithm
3•patrick-ghetea•26m ago•1 comments

Ferrari Luce – Designed with Jony Ive

https://www.ferrari.com/en-EN/auto/ferrari-luce
19•jumploops•27m ago•38 comments

Show HN: GerbDiff – Visual diff tool for PCB Gerbers

https://www.gerbdiff.com/
1•benwoodruff•27m ago•0 comments

The electric Ferrari is here and it's fugly [video]

https://www.youtube.com/watch?v=Gf2TI6tfWA0
2•damnitbuilds•29m ago•3 comments

Against the METR Graph

https://www.transformernews.ai/p/against-the-metr-graph-coding-capabilities-software-jobs-task-ai
1•OrderlyTiamat•30m ago•0 comments

Feedback on new real‑time "Price" column in my S&P 500 Search Tool

https://sp500-search.streamlit.app/
1•gilthor•32m ago•0 comments

Show HN: Built a tool to create brand-consistent images using AI

https://inktag.io
3•gsharma1•32m ago•0 comments

First ever Software-themed Playing Cards made from code

https://www.instagram.com/accounts/login/?next=https%3A%2F%2Fwww.instagram.com%2Fthe_devcards%3Fi...
1•okiki-clickdrop•34m ago•0 comments

Starbucks Drops AI as Meta and Intuit Cut 11,000 Jobs

https://www.forbes.com/sites/sandycarter/2026/05/22/starbucks-drops-ai-as-meta-and-intuit-cut-110...
4•e2e4•35m ago•0 comments

The AI Bubble

https://nooneshappy.com/article/the-ai-bubble/
1•cdrnsf•35m ago•0 comments

Show HN: macOS Screensaver to play random Jellyfin content

https://github.com/ndom91/macos-random-jellyfin-screensaver
1•ndom91•38m ago•0 comments

Delivery robots are spreading across LA

https://www.theguardian.com/us-news/2026/may/25/los-angeles-delivery-robots
2•worik•43m ago•0 comments

Slimcc: C23 compiler with C2y/GNU extensions for x86-64 Linux/BSD, written in C9

https://github.com/fuhsnn/slimcc/tree/main
3•fanf2•45m ago•0 comments

A few interesting modern pixel fonts

https://unsung.aresluna.org/a-few-interesting-modern-pixel-fonts/
2•zdw•46m ago•1 comments

Salesforce's Recent History of Overhyped Promo Videos

https://www.bloomberg.com/news/articles/2026-05-22/salesforce-touts-ai-promise-over-reality-in-sa...
1•mehrshad•47m ago•0 comments

Show HN: Bae – AI companion built around persistent memory architecture

https://bae.ppl.studio
1•zeshutmax•48m ago•0 comments