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.

From 6 Hours to 1 Minute: Checkpointing Kubernetes-Style Controllers

https://developer.confluent.io/blog/controller-checkpointing/
2•hgh•1m ago•0 comments

AI Models Know What Women, Peace and Security Is. They Just Don't Bring It Up

https://blog.cip.org/p/ai-models-know-what-women-peace-and
2•frantj•1m ago•0 comments

Are children really more creative than adults?

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0346553
2•56dev_•2m ago•0 comments

Health Stack

https://github.com/maccman/awesome-health-stack
2•brandonb•4m ago•0 comments

Do We Still Have to Denormalize? Have Your Schema and Search It Too

https://www.paradedb.com/blog/joins
2•philippemnoel•5m ago•0 comments

How I optimized my library for coding agents

https://paolino.me/optimizing-rubyllm-for-coding-agents/
2•earcar•5m ago•0 comments

Helsing unveils Clarity, an EU sovereign platform for military intelligence

https://helsing.ai/newsroom/helsing-unveils-clarity-a-sovereign-software-platform-for-military-in...
2•giuliomagnifico•5m ago•0 comments

Brussels puts a price on Big Tech digital trickery

https://www.reuters.com/commentary/breakingviews/brussels-puts-price-big-tech-digital-trickery-20...
2•onemoresoop•6m ago•0 comments

Tailscale Without Tailscale, by Tailscale – TailscaleUp 2026 [video]

https://www.youtube.com/watch?v=QkmjKr2QXM8
2•wronglebowski•7m ago•0 comments

Hands-on fabrication of 2D material field-effect transistors for the classroom

https://iopscience.iop.org/article/10.1088/1361-6404/aeb51a
2•EvgeniyZh•7m ago•0 comments

Ask HN: How do you market your consumer product

2•mv4•11m ago•1 comments

Factory's New Cyber Defense Network Featuring Palo Alto Networks, Casco, & More

https://factory.com/news/cyber-defense-network
2•brene•11m ago•0 comments

Roe vs. Wade

https://en.wikipedia.org/wiki/Roe_v._Wade
2•chistev•12m ago•1 comments

JArray

https://github.com/AJ-1-code/JArray
2•fishybusinessde•14m ago•0 comments

Ask HN: What is your current AI stack looking like?

2•salleisha•14m ago•1 comments

Debt and Rust

https://federicopereiro.com/debt-rust/
2•swah•14m ago•0 comments

Paths in Pieces

https://stoppels.ch/2026/11/12/paths-in-pieces.html
3•acossta•14m ago•0 comments

Rural ISP Xplore Obtains Creditor Protection

https://www.newswire.ca/news-releases/xplore-obtains-creditor-protection-under-the-companies-cred...
2•wmchen•14m ago•0 comments

0.83.0 – Custom Firmware for the JetKVM Mini Is Ready – ESP-KVM

https://espkvm.io/blog/0-83-0-custom-firmware-for-the-jetkvm-mini-is-ready/
2•dexif•14m ago•0 comments

How to use snowflake adaptive compute

https://medium.com/@yanivleven/snowflake-adaptive-compute-changes-how-you-size-and-how-you-bill-6...
2•yanivleven•15m ago•0 comments

Show HN: Rain Mail Multi Domain Temporary Email

https://rainmail.xyz/
2•BadBoyBubby•17m ago•0 comments

Hyper64 – Fast AVX-512 Base64 engine in Rust (10-25 GiB/s)

https://github.com/glastor-core/hyper64
3•glastor-core•18m ago•0 comments

Near AI Gateway: Easily Use Private AI from Claude, Codex and Open Code

https://gateway.near.ai
3•zmanian•19m ago•0 comments

US companies are seeking fewer foreign developers, and more "AI engineers"

https://village.dev/blog/us-companies-are-seeking-fewer-foreign-software-developers-and-far-more-...
3•kevin_hu•20m ago•0 comments

Show HN: Mela Tycoon

https://mela-tycoon.darshanpania.me/
3•darshanpania•23m ago•0 comments

Request for Collaboration on a Message Mirror Security Architecture

https://ajs-consult-llc.github.io/mirror-encryption-rfc/
2•A-Aron•23m ago•1 comments

American Cancer Society calls for prostate cancer screening in guideline change

https://www.reuters.com/business/healthcare-pharmaceuticals/american-cancer-society-calls-routine...
2•nradov•23m ago•0 comments

AWS Built an Emulator for Everything. It Thinks Nobody Is Famous

https://blog.technodrone.cloud/2026/11/aws-emulator-nobody-is-famous.html
3•maishsk•24m ago•1 comments

KeyFlow – A minimalist hotkey speed trainer inspired by Monkeytype

https://hk.lazyapps.cc/
3•batnick•26m ago•1 comments

OpenIGI: WebGPU independent reimplementation of Project IGI

https://github.com/openigi/openigi
2•napsternxg•26m ago•0 comments