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.

Live video compositing servers behave a lot like multiplayer game servers

https://fishjam.swmansion.com/blog/live-video-compositing-devops
1•kuligkar•1m ago•0 comments

$9T Collapse Machine

https://www.truthdig.com/articles/nine-trillion-dollar-collapse-machine/
2•raju•4m ago•0 comments

Cloudflare CTO enforcing usage limits

https://old.reddit.com/r/BetterOffline/comments/1tryfft/cloudflare_cto_enforcing_usage_limits/
2•mmarian•4m ago•0 comments

Critical Windows Netlogon RCE flaw now exploited in attacks

https://www.bleepingcomputer.com/news/microsoft/critical-windows-netlogon-remote-code-execution-f...
1•Brajeshwar•4m ago•0 comments

I don't believe in big decisions

https://alwaysdraft.com/i-dont-believe-in-big-decisions/
1•Reebz•4m ago•0 comments

Coding Capybaras – Ship Your SaaS Fast- Free Boilerplate for Founder Using AI

https://codingcapybaras.com
1•MarketplaceV•5m ago•0 comments

Open-Source Software Is Starting to Help Robots Think

https://spectrum.ieee.org/open-source-robot-ai-platforms
1•atlasunshrugged•6m ago•0 comments

Tell HN: Exploit mimicking Cloudflare's verify human page

1•SenHeng•7m ago•0 comments

Shademap: Global Sun Simulation

https://shademap.app
1•luispa•7m ago•0 comments

Florida Sues OpenAI

https://www.nbcnews.com/tech/tech-news/florida-sues-openai-sam-altman-saying-put-profit-safety-rc...
2•leopoldj•8m ago•0 comments

Russia Finance Officials Tell Putin War Spending Is Unaffordable

https://www.bloomberg.com/news/articles/2026-06-01/russia-finance-officials-tell-putin-war-spendi...
1•DivingForGold•8m ago•0 comments

I built a license plate recognition API with a live demo

https://www.platenexus.com/demo/?lang=pt
1•androg•8m ago•0 comments

Ask HN: Who is hiring? (June 2026)

9•whoishiring•9m ago•15 comments

Ask HN: Who wants to be hired? (June 2026)

6•whoishiring•9m ago•14 comments

Show HN: Json2vec – build/train/deploy models with nested data structures

https://github.com/json2vec/json2vec
1•granthamctaylor•10m ago•0 comments

Claude as a Robot Teacher

https://irvin.quest/distilling-zero-shot-control/
1•evakhoury•10m ago•0 comments

AI IDE Plugin: Did you get it?

https://github.com/bugthesystem/dygit
1•ziyasal•11m ago•1 comments

Notfiles: Or how I learned to stop worrying and love Nix

https://jry.io/writing/stop-worrying-love-nix/
2•evakhoury•11m ago•0 comments

Ask HN: Ideas for non-profit school locked out of Google Workspace?

2•EvanAnderson•12m ago•0 comments

Snappy – quick-reply templates for WhatsApp Web (manual, all-local)

https://chromewebstore.google.com/detail/snappy-—-quick-reply-temp/dfinlofkbmhbeipdlnbpfaefbgge...
1•greenwan•13m ago•0 comments

At least you won't be alone

https://debarshibasak.github.io/readables/blogs/not-alone.html
1•debarshri•13m ago•0 comments

DockTalk: Two AIs Gossiping Across the Namespace Wall

https://lasthumanity.com/posts/docktalk-two-ais-gossiping-across-the-namespace-wall/
1•viega•13m ago•0 comments

SaySynth: A Brief History of Speaking Machines

https://brian.abelson.live/log/2025/12/20/saysynth-composition-codes.html
1•evakhoury•13m ago•0 comments

Iran stops negotiations with U.S., vows to 'completely' block Strait of Hormuz

https://www.cnbc.com/2026/06/01/iran-us-negotiations-strait-of-hormuz.html
4•dgellow•15m ago•1 comments

Show HN: MigraDiff – migra fork with AI migration generation for Postgres

https://github.com/leochong/migradiff
1•lateos-ai•15m ago•0 comments

Social Programming Language Constructs

https://jimmyhmiller.com/social-language-constructs
1•theanonymousone•16m ago•0 comments

Show HN: Paid or Played? – a simple recoupment calculator for music artists

https://paid-or-played.vercel.app/
1•lorenzosch•16m ago•0 comments

The S in Interoperability

https://frederikbraun.de/the-s-in-interoperability.html
1•birdculture•19m ago•0 comments

Climate Explainer: El Nino/La Nina and tropical storms around the world

https://www.aljazeera.com/news/2026/6/1/how-could-el-nino-reshape-tropical-storms-around-the-worl...
2•dxs•23m ago•0 comments

OpenAI Sued by Florida's Attorney General over AI Harms

https://www.wsj.com/tech/ai/openai-sued-by-floridas-attorney-general-over-ai-harms-8a5113a8
4•thm•25m ago•2 comments