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.

NATO allies thwart Russian undersea cable sabotage operation

https://www.euronews.com/my-europe/2026/09/10/nato-allies-successfully-thwart-russian-undersea-ca...
1•delichon•1m ago•0 comments

Autonomous Tesla Cybercabs Hit the Streets of New York City

https://gothamist.com/news/autonomous-tesla-cybercabs-hit-the-streets-of-new-york-city
2•geox•3m ago•0 comments

Timeline: The September 11 terrorist attacks

https://millercenter.org/remembering-september-11/september-11-terrorist-attacks
1•GaryBluto•6m ago•0 comments

Terrorism designation has global consequences for open internet

https://www.article19.org/resources/usa-terrorism-designation-has-global-consequences-for-open-in...
1•robtherobber•7m ago•0 comments

GTFS is a community-driven open standard for rider-facing transit information

https://gtfs.org/
1•Bluestein•10m ago•0 comments

Following complaints, Dyson is withdrawing its $500 toothbrush from sale

https://www.numerama.com/tech/2330911-apres-de-nombreux-signalements-dyson-retirerait-deja-de-la-...
2•matthieu_bl•11m ago•0 comments

How to Write an Effective Software Design Document

https://refactoringenglish.com/excerpts/write-an-effective-design-doc/
1•birdculture•12m ago•0 comments

NPM extends recovery-code security holds to all accounts

https://github.blog/changelog/2026-09-09-npm-extends-recovery-code-security-holds-to-all-accounts/
1•soheilpro•13m ago•0 comments

Show HN: What happened to 14,229 launches from Show HN, YC and Product Hunt

https://www.buildorskip.com
1•skr007•14m ago•0 comments

2nd mathematician is accusing OpenAI of being dishonest about training data

https://qz.com/openai-mathematician-training-data-dishonesty-andreas-thom-091026
2•jacquesm•14m ago•0 comments

2001: The Tale of an American Peter Rabbit (2026)

https://medium.com/@solidi/2001-the-tale-of-an-american-peter-rabbit-3e9927c91b2a
1•biscuits1•14m ago•0 comments

A preview of the future Intel Architecture documentation

https://intel.github.io/SDM/announcement/2026/08/20/announce-preview.html
1•AndrewDucker•16m ago•0 comments

The dawn of formalized mathematics [video]

https://www.youtube.com/watch?v=zp6WleEjHUg
1•Thom2503•16m ago•0 comments

Show HN: Browse PC Parts on Amazon.com without distractions

https://findpcpart.com/products?category_key=cpu
1•findpcpart•17m ago•0 comments

AI boom helps drive surprise UK growth in July

https://www.bbc.co.uk/news/articles/cq5xjlvn71lo
1•gste•18m ago•0 comments

(Re)Building an AI-Ready Data Universe at BlaBlaCar

https://medium.com/blablacar/building-an-ai-ready-data-universe-at-blablacar-cb15fbc42020
1•matthieu_bl•22m ago•0 comments

Serving LLMs on Tenstorrent Hardware: Inside the vLLM TT Plugin

https://vllm.ai/blog/2026-09-07-vllm-tt-plugin
1•ankitg12•22m ago•0 comments

Bad benchmarks and evals: Senior SWE-Bench, napkin math, and winter tires

https://danluu.com/exercise-7/
1•luu•26m ago•0 comments

The Death of Shame Is Tearing Us Apart

https://www.newyorker.com/news/fault-lines/the-death-of-shame-is-tearing-us-apart
2•Michelangelo11•27m ago•0 comments

EXXOGEN: First-principles quantum molecular recognition (now on Crunchbase)

https://www.google.com/url?q=https%3A%2F%2Fwww.crunchbase.com%2Forganization%2Fexxogen&sa=D&sntz=...
1•kisnorbert•28m ago•1 comments

Large language models pass three-party Turing test, outscoring actual humans

https://www.pnas.org/doi/10.1073/pnas.2524472123
2•maxloh•33m ago•0 comments

Ask HN: How realistic is a modern-day era NLU

1•ramon156•36m ago•0 comments

Open Letter about the Mathathon

https://docs.google.com/document/d/1IL0b2oG2KvvSnxn_DuXsNxuHaCefDJ9hNY1k9BP3kKQ/view?pli=1&tab=t.0
2•YeGoblynQueenne•37m ago•0 comments

Ghostarchive is a free-to-use archiving website

https://ghostarchive.org/about.html
1•Bluestein•42m ago•0 comments

Build your own custom benchmark

https://artificialanalysis.ai/optima
1•prathje•43m ago•1 comments

De-Anglicizing Programming

https://program.toile-libre.org/DP/index.htm
2•dmabboux•45m ago•5 comments

The centre tracking South Korea's stalkers in real time

https://www.theguardian.com/world/ng-interactive/2026/sep/11/app-tracks-south-korea-stalkers-in-r...
3•nzlend•49m ago•1 comments

Nvidia Nemotron VoiceChat on Apple Silicon: Full-Duplex Speech with Tools

https://blog.ivan.digital/nvidia-nemotron-voicechat-on-apple-silicon-full-duplex-speech-with-tool...
2•aufklarer•50m ago•0 comments

Base84 deserves a place in file names

https://00f.net/2026/09/09/base84/
1•kevvok•51m ago•1 comments

Learning without a brain – how bacteria store memories and remember like ANNs

https://phys.org/news/2026-09-brain-bacteria-memories-artificial-neural.html
1•mdp2021•52m ago•0 comments