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.

GPT Image 2 left me amazed but exhausted – so I built a little tool

https://imagesv2.ai
1•taoji•3m ago•0 comments

The terrifying rise of schoolboys making AI girlfriends

https://www.telegraph.co.uk/news/2026/05/25/schoolboys-ai-girlfriends/
1•Markoff•4m ago•0 comments

Self-Driving bus in Sweden crashes with tram on first day of passenger service

https://www.firstpost.com/auto/self-driving-bus-in-sweden-crashes-with-tram-on-first-day-of-passe...
1•Markoff•6m ago•0 comments

Notes on Pope Leo XIV's Encyclical on AI

https://simonwillison.net/2026/May/25/encyclical-on-ai/
1•pretext•6m ago•0 comments

The Little Go Book

https://github.com/karlseguin/the-little-go-book
1•saikatsg•7m ago•0 comments

Enhance or Eliminate? How AI Will Likely Change These Jobs

https://www.library.hbs.edu/working-knowledge/enhance-or-eliminate-how-ai-will-likely-change-thes...
1•_____k•10m ago•0 comments

NanoClaw creator turns down $20M buyout offer, raises $12M seed instead

https://techcrunch.com/2026/05/20/nanoclaw-creator-turns-down-20m-buyout-offer-raises-12m-seed-in...
1•doppp•11m ago•0 comments

The User Is Visibly Frustrated

https://pscanf.com/s/354/
2•croes•13m ago•0 comments

Real wages start to shrink in developed countries

https://www.ft.com/content/e126f744-3db9-4305-8871-31f83ebc4ed7
1•mikhael•14m ago•0 comments

The working definition of an Agent Endpoint

https://ianpilon.github.io/agent-endpoint/
1•ianpilon•15m ago•0 comments

New Google sheet favicon – but why?

1•jinen83•16m ago•1 comments

Ask HN: When and why did you start believing in God?

2•dvrp•17m ago•6 comments

Ask HN: Pregunta para los devs hispanohablantes

2•alonsovm44•22m ago•0 comments

AgentBrew – Portable toolbelt for your AI agents

https://github.com/patchen0518/AgentBrew
1•patchen0518•25m ago•0 comments

Ollama v0.30.0-rc23: "directly support llama.cpp" & "compatibility with GGUF"

https://github.com/ollama/ollama/releases/tag/v0.30.0-rc23
2•theanonymousone•25m ago•0 comments

My minimal, memory-safe Go rsync steers clear of vulnerabilities

https://michael.stapelberg.ch/posts/2026-05-24-minimal-memory-safe-go-rsync-vulns/
1•gsky•28m ago•0 comments

Interest Rate May Explain Consumer Sentiment Anomaly

https://www.nber.org/papers/w32163
3•efavdb•28m ago•0 comments

Show HN: Auto GPU Kernel – Autonomous GPU-kernel discovery and optimizer

https://github.com/Dogacel/auto-gpu-kernel
1•dogacel•29m ago•0 comments

Polymorphic Associations in Postgres

https://danolivo.substack.com/p/on-polymorphic-associations-in-postgres
2•gsky•29m ago•0 comments

Elusive order of async GPU kernels: scheduling, abstractions, DSL implications

https://ianbarber.blog/2026/05/25/the-elusive-order-of-things/
1•matt_d•33m ago•0 comments

NewAgentsHub

https://www.newagentshub.dev/
1•IlijaD123•34m ago•0 comments

Continual Speaker Identity Unlearning with Minimal Interference

https://arxiv.org/abs/2605.25962
2•berlianta•41m ago•0 comments

Motorola phones have started hijacking the Amazon app to insert affiliate codes

https://9to5google.com/2026/05/25/motorola-amazon-app-hijacking-behavior/
16•Cider9986•56m ago•5 comments

Show HN: Self-hosted collaborative SQL editor for teams

https://github.com/p-raj/collab-sqlc/
1•joddystreet•58m ago•0 comments

Show HN: Lily Design System: Components for React, Vue, Svelte, HTML, More

https://lilydesignsystem.github.io/
1•jph•1h ago•0 comments

Show HN: AgentToolBench-Code – security benchmark for AI coding agents

https://gist.github.com/allenwu-blip/fa2bd0218b93a1d7aef765817e3c6608
1•allenwu06•1h ago•0 comments

Earthion: A New Mega Drive-Style Shoot-Em-Up

https://earthiongame.com/
4•MrBuddyCasino•1h ago•0 comments

Linux Compromises, Broken Embargoes, and the Shrinking Patch Window

https://www.askbaize.com/blog/linux-compromises-broken-embargoes-and-the-shrinking-patch-window
1•laurex•1h ago•0 comments

The CISO's Guide to IDE Security in 2026

https://yeethsecurity.com/blog/2026-05-21-CISO-Guide-IDE-Security
2•somerandom1337•1h ago•0 comments

Argus – multi‑agent AI coding assistant that never gets stuc

https://github.com/argustek/Argus
2•argustek•1h ago•0 comments