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 Kafkaian Agent Swarm That Locked Out My Cofounder

https://simeoncampos.substack.com/p/on-the-kafkaian-agent-swarm-that
1•yurivish•4m ago•0 comments

The 'Sullan Republic'

https://acoup.blog/2026/11/20/collections-on-the-sullan-republic/
1•JumpCrisscross•8m ago•0 comments

The Dangers of AI 'Handoverism'

https://www.ft.com/content/45194ea4-4fa7-4c38-a5b2-137eb7402d57
1•petethomas•8m ago•0 comments

Starlark Language for Embedding

https://starlark-lang.org/
1•jcbhmr•13m ago•0 comments

The Most Important Charts in AI Are Wrong

https://www.rameznaam.com/p/the-most-important-charts-in-ai-are
1•D-Machine•13m ago•1 comments

Gdelt TV News Visual Explorer

https://visualexplorer.gdeltproject.org/tvv
1•macinjosh•13m ago•0 comments

Images of Canada's most wanted are AI-generated

https://www.cbc.ca/news/canada/bolo-program-canada-fugitives-police-ai-9.7428331
1•geox•14m ago•0 comments

NATS Server 2.15: How we rebuilt scaling and moving streams safely

https://www.synadia.com/blog/how-we-move-streams-safely-nats-2-15-desired-state-reconciliation
1•taconn227•15m ago•0 comments

Materials chemist and nanoscientist George Whitesides dies at 87

https://cen.acs.org/people/obituaries/george-whitesides-materials-chemist-nanoscientist/104/web/2...
1•osnium123•15m ago•1 comments

Melania: The Series – a follow-up to the megaflop movie

https://www.ft.com/content/64d533cd-05b8-4d15-9fd2-ca4502d0f87e
1•petethomas•15m ago•0 comments

Clojure will affect the way you think about programming (2017)

https://eli.thegreenplace.net/2017/clojure-the-perfect-language-to-expand-your-brain/
1•sammatilda•18m ago•0 comments

The FBI was hacked again

https://www.cnn.com/2026/11/20/politics/fbi-hacked-again-target-crime-database
3•negura•19m ago•0 comments

Omacom Foundation to Sponsor Aurora Silicon

https://omarchy.org/news/2026/11/omacom-foundation-to-sponsor-aurora-silicon/
1•porjo•19m ago•0 comments

Putin was the real winner at the trilateral summit

https://www.ft.com/content/8f24b313-1b9a-401d-88e6-089aedc72519
2•petethomas•22m ago•0 comments

Clawdcursor Beats computer-use at every benchmark

https://clawdcursor.com
1•AmDab•23m ago•0 comments

Discord Rewrites Desktop and Mobile Clients in Rust

https://www.infoq.com/news/2026/11/discord-rust-rewrite-gpui-zed/
1•fork-bomber•32m ago•0 comments

Phoebe Bridgers banned phones at gigs; fans use art to remember them

https://www.bbc.co.uk/news/articles/cq7821d0pv49o
1•dofm•33m ago•1 comments

Verifying formal models of Raft implementations

https://antithesis.com/blog/2026/verifying-formal-models/
1•thunderbong•33m ago•0 comments

Anthropic mathematician claims to prove Riemann hypothesis

https://www.scientificamerican.com/article/anthropic-mathematician-claims-to-prove-riemann-hypoth...
1•kwar13•35m ago•0 comments

OpenAI: Generating scripts to copy outgoing email to an unauthorized address

https://openai.com/safety-alignment/misalignment-reports/generating-scripts-to-copy-outgoing-emai...
1•mjlawson•39m ago•1 comments

Experts warn: Everyone in AI is susceptible to a honey-trap scheme

https://techcrunch.com/2026/11/20/experts-warn-nearly-everyone-in-ai-is-susceptible-to-a-honey-tr...
1•inthebay•39m ago•0 comments

American State Capitalism Helped Produce the Nvidia Scandal

https://www.wsj.com/economy/american-state-capitalism-helped-produce-the-nvidia-scandal-56ce6dee
2•JumpCrisscross•40m ago•1 comments

Show HN: Lightweight FUSE-based encrypted, compressed filesystem for Linux

https://github.com/tgaloppo/obfusecate
1•tgaloppo•41m ago•0 comments

Midpoint Generative Models

https://arxiv.org/abs/2605.29920
3•E-Reverance•42m ago•1 comments

Paper Sound Simulator

https://av.github.io/paper/
1•everlier•43m ago•0 comments

Planned Lead Azide Detonation Fact Sheet – November 23, 2026

https://hhs.iowa.gov/media/19822/download?inline
2•eth0up•45m ago•0 comments

Army is about to blow up a cache of dangerous lead azide in Iowa

https://www.scientificamerican.com/article/the-u-s-army-is-about-to-blow-up-a-cache-of-dangerous-...
4•eth0up•48m ago•3 comments

What is the generalized Riemann hypothesis? The claim behind two rival proofs

https://www.nacionale.com/en/articles/what-is-generalized-riemann-hypothesis-grh-explained-alpoge...
1•doener•58m ago•0 comments

Show HN: Paper Trail – Local work records

https://chromewebstore.google.com/detail/paper-trail-—-local-work/glpahjppiibjanjkknphegmlmindi...
1•cflsdf•1h ago•0 comments

Show HN: Food Sound · White Noise ShiYin

https://nonloop.github.io/crunchy/
1•cflsdf•1h ago•0 comments