frontpage.
newsnewestaskshowjobs

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.

Expect-native: Jest's expect with Node's native node:test runner

https://www.npmjs.com/package/expect-native
1•ramblingenzyme•52s ago•0 comments

Ollama's Transparent Pricing

https://ollama.com/blog/transparent-pricing
2•wertyk•3m ago•0 comments

What Happened to Yoga?

https://www.theatlantic.com/culture/2026/08/yoga-america-culture-decline/688461/
1•fortran77•3m ago•0 comments

Malicious Virtualizor update served via BGP hijacking

https://www.virtualizor.com/blog/security-incident-bgp-hijacking/
1•MallocVoidstar•3m ago•0 comments

Show HN: Compute.cheap – the cheapest H100/H200 compute in the world

https://compute.cheap/
1•EmiCorleone•4m ago•0 comments

Show HN: Kagelin – offline-first tasks/habits/focus/calendar, AGPL

https://www.kagelin.app/
1•achyuth072•4m ago•0 comments

Show HN: Clippy Vision – local AI that remembers your screen across apps

https://github.com/protocorn/clippy-vision/issues/53
1•sahil2412•6m ago•0 comments

Nowledge Mem

https://nowledge-labs.ai/blog/nowledge-mem
1•jinqueeny•10m ago•0 comments

Listers: A Glimpse into Extreme Birdwatching

https://en.wikipedia.org/wiki/Listers:_A_Glimpse_Into_Extreme_Birdwatching
1•vismit2000•12m ago•0 comments

Ask HN: Why do people get mad at AI pastes

3•ThinkAboutItt•14m ago•2 comments

Why is Arrays.fill 265 times slower on G1GC?

https://krzysztofslusarski.github.io/2026/08/19/g1barrier.html
1•ejboy•16m ago•0 comments

Don't be the Vitamin B guy

https://hedonicescalator.substack.com/p/dont-be-the-vitamin-b-guy
1•paulpauper•16m ago•0 comments

How Much Is That Gene-Edited Dog in the Window?

https://www.nytimes.com/2026/08/31/science/dog-breeding-gene-editing-crispr.html
1•paulpauper•16m ago•0 comments

Rust Implementation of Tailscale

https://github.com/tailscale/tailscale-rs
4•hazira•16m ago•0 comments

ArXiv has almost 600 submissions today and most are AI slop

https://arxiv.org/list/math/new
3•marysminefnuf•21m ago•1 comments

Show HN: Eatheria – Self-hosted AppSec platform with AI false-positive filtering

https://github.com/MartinCrespoC/Security-Team---Workspace-
3•ikharoz•23m ago•0 comments

Show HN: OpenRouter for Sandboxes – Get sandboxes from any provider in seconds

https://reachpad.dev/router
2•sakuraiben•25m ago•0 comments

I Went on an AI Show. It Made Me Feel Better About Human News

https://www.upstartsmedia.com/p/the-good-bad-ugly-of-24-hour-ai-news
1•thm•26m ago•0 comments

Why Migrants Tend to Make the Countries They Move to Like the Ones They Left

https://twitter.com/williameijer/status/2094531862245069246
5•MrBuddyCasino•35m ago•1 comments

GEIPAN – French government UFO investigations

https://www.cnes-geipan.fr/en/missions-methodes-et-resultats
2•andsoitis•36m ago•0 comments

The single biggest change I made to the Jock compiler between Alpha and RC

https://twitter.com/sigilante/status/2094559940778348682
1•MrBuddyCasino•36m ago•0 comments

Program Learning with Verifiable Rewards: Symbolic Backpropagation

https://arxiv.org/abs/2608.28421
1•sbulaev•38m ago•0 comments

OpenAI story as anti-hero heist story?

https://uphack.io/blog/post/the-hugging-face-incident-is-not-an-ai-story/
1•dickiedyce•38m ago•0 comments

LogRange C++ log-domain accumulators and a scanner for underflowing sums

https://github.com/iouel/logrange
1•cheIs•44m ago•0 comments

Joining AMI to Work on World Models

https://www.lihaoyi.com/post/JoiningAMItoworkonWorldModels.html
1•lihaoyi•47m ago•0 comments

Show HN: Serendipity – rediscover the web one interesting page at a time

https://serendipity.surf/
2•RaCaS123•52m ago•0 comments

Lionel Messi announces retirement from Argentina's national team

https://www.washingtonpost.com/sports/2026/08/31/soccer-great-lionel-messi-announces-retirement-a...
4•MehrdadKhnzd•54m ago•0 comments

The Ur Project - Notes on building a new Linux distribution

https://ur.foo-projects.org/
2•9front•57m ago•0 comments

Show HN: Seatlr – We rebuilt our traveler chat into an AI-powered travel network

https://www.seatlr.com/
2•alihadi965•59m ago•0 comments

Paint.NET Adds Experimental Wine/Linux Support

https://forums.paint.net/topic/134563-%F0%9F%8D%B7-extremely-experimental-winelinux-support-how-t...
5•tech234a•1h ago•0 comments