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.

What if every Nix build were bit-reproducible?

https://fzakaria.com/2026/11/09/what-if-every-nix-build-were-bit-reproducible
1•iamnothere•39s ago•0 comments

Stop Walking – A 10-level, one-button 3D rage game in the browser

https://stopwalking.online
1•admingiftcure•42s ago•0 comments

Welcome to Ed and Sam's great adventure

https://www.hintz.org/trip/
1•mooreds•1m ago•0 comments

Locating the Source of a Mysterious Beep

https://simonwillison.net/2026/Nov/9/mysterious-beeps/
1•bigwheels•1m ago•0 comments

Why Don't Artists Join Together in Co-Op Platforms?

https://www.honest-broker.com/p/why-dont-artists-join-together-in
1•paulpauper•3m ago•0 comments

Perhaps Connecting Fridges to the Internet Was a Bad Idea

https://www.theatlantic.com/technology/2026/11/fridge-hacks-europe-supermarkets/689328/
1•paulpauper•4m ago•0 comments

What Constant Surveillance Is Doing to Children

https://www.theatlantic.com/magazine/2026/12/location-tracking-apps-parental-surveillance/689031/
2•paulpauper•5m ago•0 comments

How I Give Feedback

https://diatone.net/feedback
1•s1ddhant•5m ago•0 comments

Horible Public Key Tricks

https://maurycyz.com/projects/badcert/
1•Curiositry•5m ago•0 comments

Show HN: Rat Race (After Dark, 1994), ported from 68k assembly to TypeScript

https://rat-race.heyitsjam.es/
2•shijie•7m ago•0 comments

Show HN: Nenya, a 0.5B-active base trained on 60B tokens, rivals Qwen3.5-2B

https://huggingface.co/ArsalanZ/Nenya-2.5B-A0.5B-Base
1•AZDR•11m ago•0 comments

The Art of Code

https://news.ycombinator.com/newest
1•cosjava22•17m ago•0 comments

Parents Sue Google over A.I. Safety Risks on School Chromebooks

https://www.nytimes.com/2026/11/05/technology/ai-safety-school-chromebooks-google-lawsuit.html
2•tantalor•17m ago•0 comments

Anthropic must face lawsuit over Claude subscription marketing

https://www.reuters.com/legal/government/anthropic-must-face-lawsuit-over-claude-subscription-mar...
2•mfiguiere•20m ago•0 comments

Product analytics events, nearly too cheap to meter

https://github.com/hitSlop/slurp
1•Jonovono•23m ago•1 comments

Hinton Lectures 2026 Day 1 Livestream

https://www.youtube.com/watch?v=-Ef0ocEoBCs
1•interestica•23m ago•0 comments

Four Player Wolfenstein 3D built for charity

https://yeold.press/extra-life-2026-wolf3d-reloaded-a-free-4-player-wolfenstein-built-for-charity/
1•mysterydip•23m ago•0 comments

PeachQ: An open-source implementation of the q programming language

https://peachq.org/
1•nyankosensei•24m ago•0 comments

Does the 5% rule still work for renting vs. buying?

https://thebuyorrentcalculator.com/blog/5-percent-rule-rent-vs-buy
1•danielyaa5•24m ago•0 comments

Cold Outreach

https://tommccarthy.net/cold-outreach.html
1•jger15•25m ago•0 comments

CodeRabbit scales agentic software development and ships 20x more

https://openai.com/index/coderabbit-codex-daybreak/
1•smb06•26m ago•1 comments

The New York Times Doesn't Understand AI's Role in Suppressing Wages

https://gizmodo.com/the-new-york-times-doesnt-understand-ais-role-in-suppressing-wages-2000836392
1•NordStreamYacht•28m ago•0 comments

Tracking the Harm of DOGE Cuts

https://www.clasp.org/doge-tracker/
71•Alien1Being•31m ago•5 comments

A teen used her school Chromebook and Google AI Mode to plan her suicide

https://mashable.com/tech/google-gemini-chromebook-lawsuit-teen-planned-suicide
3•Topfi•31m ago•0 comments

LHCb finds evidence for the decay B0 to mu+ mu-, with improved B0s measurement

https://arxiv.org/abs/2611.00230
2•titusblair•31m ago•0 comments

KDE fixes 15 Year Old bug over inaccurate info when copying files to USB Drives

https://www.phoronix.com/news/KDE-Fixes-15-Year-Old-Bugs
2•doodlesdev•32m ago•0 comments

Evaporative cooling cuts solar panel temperature by about 30 C in tests

https://spectrum.ieee.org/solar-panel-cooling
6•titusblair•32m ago•2 comments

C15T: The open standard for cookie banners

https://c15t.com
2•nateb2022•33m ago•0 comments

JoesProxy – The free network workbench for your AI agent

https://www.joesproxy.com/
2•SerialForBreakf•33m ago•0 comments

French blood banks hacked in latest cyber-attack on Europe

https://www.theguardian.com/technology/2026/nov/04/france-national-blood-service-hack-cyber-attac...
6•doodlesdev•38m ago•1 comments