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.

Information Compression Challenges

https://gertlabs.com/challenge
1•gertlabs•50s ago•0 comments

Could astronomers be closing in on a hidden planet beyond Neptune?

https://ras.ac.uk/news-and-press/research-highlights/could-astronomers-be-closing-hidden-planet-b...
1•geox•7m ago•0 comments

Doug Lea's Malloc

https://gee.cs.oswego.edu/dl/html/malloc.html
1•grep_it•13m ago•0 comments

In which a traveling salesman digs π out of LLM temperature math

https://www.hexbites.dev/stories/2026-11-25-pi-from-simulated-annealing.html
1•kromych•18m ago•0 comments

Solar Wanderer – A 1:1 real-time solar system explorer in the browser

https://github.com/hyqzz/Solar-Wanderer
2•JulieZhao00•19m ago•0 comments

A Physical Password Manager that doesn't keep your data

https://hackaday.io/project/207443-lomenett-usb-password-manager
1•sidkukert•20m ago•0 comments

Usaciv – the United States as a strategy game

https://karpathy.ai/usaciv/
2•gmays•30m ago•0 comments

Why would a country ask to stay least developed?

https://finshots.in/archive/why-would-a-country-ask-to-stay-least-developed/
3•vismit2000•34m ago•0 comments

Qualcomm's Oryon 3 Reaches the Top

https://chipsandcheese.com/p/qualcomms-oryon-3-reaches-the-top
4•wmf•37m ago•0 comments

HNSW Hit Memory and Filter Wall: Elasticsearch, OpenSearch Faiss, Qdrant, Milvus [video]

https://www.youtube.com/watch?v=fnZiKAPpn-A
1•massengine•38m ago•0 comments

Get notified when a new vulnerability is exploited

https://pushout.app/@cve
3•vasanthv•44m ago•0 comments

OpenAI cuts GPT-6.2 usage: Astra hits limits 40% faster, Sol 25% faster

https://twitter.com/thsottiaux/status/2125784147889393806
11•Herrera•44m ago•0 comments

Darts SAM – A free darts autoscorer that uses your webcams

https://dartssam.co.uk/
1•indigodaddy•46m ago•0 comments

Ask HN: What IDE do you use and how many agents touch your tickets before merge?

1•DesaiAshu•46m ago•0 comments

Show HN: Olumino, a Markdown notes and spaced repetition app

https://olumino.app
3•Wiyseful•48m ago•2 comments

Britain needs to cut its mental-health benefits bill

https://www.economist.com/leaders/2026/11/25/britain-needs-to-cut-its-mental-health-benefits-bill
2•andsoitis•49m ago•1 comments

Show HN: LEIE Check – Search the OIG health care exclusion list by name or NPI

https://leiecheck.com
1•j1mmyhackett•59m ago•0 comments

Complex Systems Frameworks Collection (Complex Isn't Complicated)

https://www.complexsystemsframeworks.ca/
1•rramadass•59m ago•0 comments

Billions in Data Center Deals Grind to Halt After Chip Curbs

https://www.bloomberg.com/news/articles/2026-11-25/billions-in-data-center-deals-grind-to-halt-af...
3•petethomas•1h ago•0 comments

Quantum physics can prove where you are

https://www.nature.com/articles/d41586-026-03378-4
1•AnnikaL•1h ago•0 comments

Gut-Wrenching Volatility Grips Wall Street as AI Doubts Creep In

https://www.bloomberg.com/news/articles/2026-11-25/stomach-churning-swings-rock-wall-street-as-ai...
4•petethomas•1h ago•0 comments

Ask HN: Security for the Small Developer

4•dvduval•1h ago•0 comments

Tell HN: Finality is like the speed of light to LLMs from the labs

3•figassis•1h ago•0 comments

The World: Zoom from observable universe to the standard model

https://v3ai.github.io/the-world/
2•v3ai•1h ago•0 comments

Minipg: PostgreSQL as a Single Executable

https://progrium.github.io/minipg/
8•rguiscard•1h ago•1 comments

Music: A Desktop Replacment for Spotify

https://v3ai.github.io/music/
4•v3ai•1h ago•5 comments

Cognition as least action: the Physarum Lagrangian

https://royalsocietypublishing.org/rsif/article/23/244/20251265/484274/Cognition-as-least-action-...
1•the-mitr•1h ago•0 comments

Google MCP servers, CLI, standardized usage tiers, and admin policies

https://workspaceupdates.googleblog.com/2026/11/mcp-servers-cli-standardized-usage-tiers-now-avai...
1•cebert•1h ago•0 comments

A Closer Look at Claude's Mac "Apps"

https://www.macstories.net/stories/a-closer-look-at-claudes-mac-apps/
5•CharlesW•1h ago•0 comments

The Naturalist's Library

https://www.c82.net/naturalists-library/
3•rafael859•1h ago•0 comments