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.

Drones built to look like birds evaded detection at Air Force tech exercise

https://taskandpurpose.com/news/drone-mimicking-bird-test/
1•bushwart•52s ago•0 comments

Joggo – a self-hosted GitHub Actions runner for the Windows PC you use

https://github.com/telluric-dev/joggo
1•AmirCat•1m ago•0 comments

CWPdoor: The Invisible Backdoor Living Inside Control Web Panel

https://blog.xlab.qianxin.com/cwpdoor-the-invisible-backdoor-living-inside-control-web-panel/
1•ersinesen•5m ago•0 comments

OpenAI Raises $11B at a $1.25T Valuation

https://247wallst.com/investing/2026/11/07/openai-just-raised-11-billion-at-a-1-25-trillion-valua...
2•armcat•12m ago•0 comments

Who has a copy of your secrets?

https://rool.dev/posts/who-has-a-copy-of-your-secrets/
1•wilstrup•13m ago•0 comments

The Missing Undo Button for Coding Agents [video]

https://www.youtube.com/watch?v=BT1Mo-fD-g0
1•tradertanmay•13m ago•0 comments

Valence: A language of homonymy and structural ambiguity

https://danieltemkin.com/Esolangs/Valence/About
2•bourgey•16m ago•0 comments

I'm not a fan of Deno's security model (2024)

https://goldstein.lol/posts/deno-security/
1•maxloh•18m ago•0 comments

BootForge – Native Rufus and Ventoy USB Creator for Linux and Windows

https://github.com/NiceMank/BootForge
1•farelahdk•19m ago•0 comments

Never Bring Your Phone to the Shower

https://arman.posthaven.com/a-few-life-lessons
1•armanj•19m ago•0 comments

I made an open-web protocol for local LLM storage sharing

https://joshuadd79.github.io/bring-your-own-brain/
1•pathmap•22m ago•0 comments

Sunshine Atlas – the climate of 3,833 destinations, month by month

https://sunshineatlas.com/
2•momentmaker•24m ago•0 comments

What 1.5T tokens cost per month

https://www.peterp.me/articles/what-1-5-trillion-tokens-a-month-actually-costs/
1•thegreatpeter•25m ago•0 comments

Twelve years of building a game engine, and what it means to finish one

https://panoskarabelas.com/blog/posts/finishing_a_game_engine/
1•vinyl7•25m ago•0 comments

SpiderFarmer GGS Controler – New ESP32 Controller Bridge

https://github.com/matthias1232/spider-farmer-homeassistant
1•matthias1232•26m ago•0 comments

What have you learned that's now outdated?

https://theretrocodex.com/
1•momentmaker•26m ago•0 comments

How the Internet ruined San Francisco (1999)

https://www.salon.com/1999/10/28/internet_2/
1•zachwdc•27m ago•0 comments

We review 4x more AI code without reading every line

https://thenewstack.io/scale-ai-code-reviews/
3•Brajeshwar•34m ago•1 comments

Climate change transforms the colors of our world

https://apps.npr.org/color-climate-change-coral-lakes/
2•geox•35m ago•0 comments

RedisME: Redis GUI in the World

https://www.hepengju.com/
1•hepengju•35m ago•0 comments

Meridian – an experimental web browser built on Servo and GPUI

https://op.tngl.io/meridian/
1•birdculture•35m ago•1 comments

Controversy Surrounding Anduril Industries

https://discourse.haskell.org/t/controversy-surrounding-anduril-industries/10253?page=4
3•n_plus_1_acc•36m ago•2 comments

AI stance is not binary

https://carette.xyz/posts/ai-stance-is-not-binary/
3•LucidLynx•36m ago•0 comments

Mercedes Gives Its Cars an AI Upgrade

https://www.wsj.com/cio-journal/mercedes-gives-its-cars-an-ai-upgrade-607daae2
1•bookofjoe•38m ago•1 comments

Musk documentary from Alex Gibney (2026)

https://en.wikipedia.org/wiki/Musk_(film)
3•1vuio0pswjnm7•39m ago•0 comments

Show HN: Nino – Fastest C# serializer, safe on untrusted input, also TS/Go/Rust

https://github.com/JasonXuDeveloper/Nino
1•jnx11•40m ago•0 comments

Show HN: Lipwise

https://getlipwise.com/
1•lnenad•42m ago•0 comments

The worl went video, professional ecosystem didn't

https://apps.apple.com/gb/app/zeedeo/id6450534767
1•Zeedeo_•42m ago•0 comments

Git Good User Guide

https://100allora.it/gg/
2•baol•44m ago•0 comments

Show HN: Cross-device passkey auth on Android 9, synced with Bitwarden

https://rsnel.github.io/passkeychain/
1•riksnel•45m ago•0 comments