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.

The Python Programmer's Handbook, a quick reference with no superfluous prose

https://www.amazon.com/dp/B0HRRM9M36
1•ginthian•7m ago•0 comments

Show HN: Riffsheet – your coding agent breaks down a short video shot by shot

https://github.com/riffkit/riffsheet
1•owen8372•15m ago•0 comments

The Riemann Hypothesis proof written out as readable papers

2•dtrejopizzo•17m ago•0 comments

What It Takes to Let AI Agents Work While You Walk Away

https://ivankahl.com/blog/what-it-takes-to-let-ai-agents-work-while-you-walk-away/
1•ivankahl•19m ago•0 comments

What Happens When AI Aligns Itself?

https://www.rameznaam.com/p/what-happens-when-ai-aligns-itself
1•jedharris•23m ago•1 comments

Quick Take: AMD's Helios as a Plug-and-Play AI Appliance Standard

https://www.microprocessorreport.com/p/quick-take-amds-helios-appliance
1•gmays•25m ago•0 comments

AMD RT-MLAS Cuts Ray Tracing BVH Memory 92.3%

https://shattered.io/amd-rt-mlas-vulkan-bvh-memory-92-percent-radeon-rx-9070-nov-26/
2•peter_d_sherman•31m ago•1 comments

Intel Razor Lake-AX May Pack 52 CPU Cores and 192 GB of Memory

https://vgtimes.com/tech-and-hardware/176003-intel-razor-lake-ax-may-pack-52-cpu-cores-and-192-gb...
2•peter_d_sherman•39m ago•0 comments

The Wayback Machine has incorporated deep recursive crawls since late 2020

https://github.com/archiveteam/urls-grab
1•ovskmendov1•40m ago•0 comments

To Pace the Frontier, Give It a Security Clearance

https://www.lesswrong.com/posts/N5jieDgwgJdhPXC6g/to-pace-the-frontier-give-it-a-security-clearance
3•rreichman•40m ago•0 comments

A Mathematician's Lament (2002) [pdf]

https://profkeithdevlin.org/wp-content/uploads/2023/09/lockhartslament.pdf
1•xeonmc•50m ago•0 comments

AI micro dramas turn China's entertainment industry on its head

https://www.abc.net.au/news/2026-11-28/ai-microdramas-disrupt-china-entertainment-industry/107421952
4•ahonhn•50m ago•0 comments

Estimating LLM decode speed and the price of a token per second

https://wanabai.com/build-finder/paper.html
2•lrsaturnino•50m ago•0 comments

Researchers make leg support robot that syncs with user's steps

https://www.asahi.com/ajw/articles/17004201
1•rawgabbit•53m ago•0 comments

Which Future?

https://michaelnotebook.com/whichfuture/index.html
1•embedding-shape•55m ago•0 comments

Claude silently added rules to ignore users skintone preferences in our app

https://twitter.com/jakozloski/status/2126281598517576049
26•doctoboggan•56m ago•6 comments

Show HN: Mobile App Builder

https://iwantmy.app
1•aczelgreat•59m ago•0 comments

Knuth: Moratorium on Error Reports

https://www-cs-faculty.stanford.edu/~knuth/moratorium.html
5•ultraficial•1h ago•1 comments

Mac Memory Monitor: menu bar app that pauses idle Claude Code sessions

https://github.com/ryan-helou/MacMemoryMonitor
1•ryan_helou•1h ago•1 comments

Trending Open-Source Software · Opensourcesoftware.ai

https://opensourcesoftware.ai
1•abdelhousni•1h ago•0 comments

Chips Made of Light Are 100× Faster but There's a Catch [video]

https://www.youtube.com/watch?v=lTkRWrhfiRA
1•peter_d_sherman•1h ago•0 comments

Llm.asm – Pure x86-64 Assembly for LLM Inference and Training

https://github.com/alesha-pro/llm.asm
4•codetiger•1h ago•1 comments

Why Criticise the Tech Industry?

https://deadsimpletech.com/blog/why-criticise-tech
1•HotGarbage•1h ago•0 comments

Hackers breach Erlang and Elixir package manager

https://risky.biz/risky-bulletin-hackers-breach-erlang-and-elixir-package-manager/
2•turbocon•1h ago•0 comments

UK orders 100K reserve soldiers to prepare for war [video]

https://www.youtube.com/watch?v=c4_S-mWKeAk
2•Bender•1h ago•0 comments

Show HN: Our Build Studio – Track home builder upgrades and variation quotes

https://ourbuildstudio.com/app/demo
1•Acidack•1h ago•0 comments

If you're doing Monte Carlo try Knuth LGC

1•logicallee•1h ago•0 comments

Effective Altruism Bought the Media

https://www.effort.news/tarbell
3•MrBuddyCasino•1h ago•1 comments

Frontier models need only one text to unmask its human or AI author

https://arxiv.org/abs/2611.26216
5•xqcgrek2•1h ago•1 comments

A Type Stronger Than the Sum of Its Components

https://www.schneems.com/2026/09/24/a-type-stronger-than-the-sum-of-its-components/
1•mmsilvachavez•1h ago•0 comments