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.

UK Supermarket Loyalty Prices

https://food-discount-scheme-price-analysis.github.io/loyalty_prices/
1•jonatron•32s ago•0 comments

MI6 chief warns of catastrophic risks of AI and Russian use of cognitive warfare

https://www.theguardian.com/technology/2026/dec/05/ai-warfare-mi6-chief-blaise-metreweli-warning
1•thm•5m ago•0 comments

Clx 0.6.0: Lua native compiler passes Lua 5.5.1 test suite

1•_samt_•7m ago•0 comments

Show HN: Rili – Practice speaking English by calling an AI tutor

https://yofluent.com
3•hichamtikonote•7m ago•0 comments

Measuring LLMs Reverse Engineering Capabilities on Obfuscated Binaries

https://arxiv.org/abs/2612.05213
1•porridgeraisin•7m ago•0 comments

Alibaba Cloud unveils HappyWan, a 45-second native audio-video diffusion model

https://kling3.io/happywan-ai-video-generator
1•wanhappy•8m ago•0 comments

Show HN: OpenStream–free unlimited local dictation for Mac

https://zazai.dev/openstream/
1•Zazai840•14m ago•0 comments

Counterintelligence asks why FBI and CIA didn't stop Jensen Huang's entanglement

https://theconversation.com/im-a-counterintelligence-expert-and-im-wondering-why-the-fbi-and-cia-...
2•nephihaha•15m ago•0 comments

DeskRise – raises your standing desk after an hour. Help add your desk

https://github.com/jipjacob/deskrise
1•HydraZeuson•16m ago•0 comments

Ubuntu has spent years patching GNOME, but what it can't fix is the real problem

https://www.xda-developers.com/ubuntu-has-been-patching-gnomes-missing-basics-since-2017-and-gnom...
1•signa11•20m ago•0 comments

Jensen Huang's Senate grilling may be preview for what big tech has coming

https://www.bbc.com/news/articles/cmlywz07290po
3•gwu78•21m ago•0 comments

Show HN: Garmin POV Runner

https://github.com/Lallassu/garmin-runner
2•nergal•22m ago•0 comments

Change Anything on This Page

https://levmiseri.com/changeme/
1•levmiseri•22m ago•0 comments

The New Wireless Thread Network Protocol

https://www.allaboutcircuits.com/technical-articles/thread-network-protocol/
1•giuliomagnifico•26m ago•0 comments

Only 6 of 30 founders who hit a form validation error finished submitting

https://showmeyoursaas.com/articles/prepare-your-saas-directory-listing/
1•AJahid•27m ago•0 comments

Show HN: Picture as a QR Code – Visual QR Code Generator (Image Fills the Code)

https://pictureqrcode.com/
2•laurin42•27m ago•0 comments

Psi+ 1.6.2.8 Installer Has Been Released – Qt Jabber/XMPP Omemo/OTR E2EE

https://sourceforge.net/projects/psiplus/files/Windows/Personal-Builds/KukuRuzo/
2•neustradamus•30m ago•0 comments

Demonstration in Dublin to show public unease over data-centre expansion

https://www.irishtimes.com/opinion/letters/2026/11/06/demonstration-in-dublin-to-show-public-unea...
3•gwu78•31m ago•1 comments

Show HN: Simpane – the iOS Simulator in a Ghostty terminal pane

https://github.com/Garume/simpane
1•garume•32m ago•0 comments

Show HN: Sigmon – Look up any dev-tool company's recent moves, no signup

https://sigmon.dev/
1•sigmondev•36m ago•0 comments

A plan to light up the night with space mirrors is facing fierce pushback

https://www.cnn.com/2026/12/04/science/space-mirror-reflect-orbital-earendil-1
1•giuliomagnifico•37m ago•0 comments

Beyond the Theorem Economy

https://davidbessis.substack.com/p/beyond-the-theorem-economy
3•mockerell•48m ago•1 comments

Nightwalks with a Computer

https://mihaiolteanu.me/nightwalks-with-a-computer
1•molteanu•50m ago•0 comments

Buying a Fire Extinguisher from the Arsonists

https://www.ft.com/content/523d684d-0aca-409b-9ba6-5f8623f189f1
3•quick_brown_fox•51m ago•0 comments

Run Inworld Voice Isolator on Apple Silicon with Core ML

https://soniqo.audio/blog/inworld-voice-isolator-coreml
1•aufklarer•54m ago•0 comments

Gen1.life Agentic Legacy of Hope – AI Autobiographer

https://www.gen1.life
1•mariosebok•55m ago•1 comments

Dasher (Software)

https://en.wikipedia.org/wiki/Dasher_(software)
1•bschne•56m ago•0 comments

I Am DR

https://hackaday.io/FleyMoris
1•DrMoris•1h ago•0 comments

Show HN: Pocket Tools – 63 PDF, image and dev tools that never upload your files

https://pockettools.in/home/
1•infasmuhammed•1h ago•0 comments

Intel Xe3 vs. Apple M2 bfloat16 gap

https://carette.xyz/posts/intel_xe3_vs_apple_m2_bf16_gap/
1•LucidLynx•1h ago•0 comments