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.

Work hard – nobody cares how good you used to be

https://www.theguardian.com/fashion/2026/sep/07/work-hard-nobody-cares-how-good-you-used-to-be-pa...
1•teleforce•1m ago•0 comments

Show HN: Free Spotify Canvas Maker

https://www.neuralframes.com/tools/spotify-canvas-maker
1•nicollegah•4m ago•0 comments

Show HN: GPT-5.1 returned 0 bytes, שָׁרְט isn't Hebrew, AGI criterion defined

https://www.reddit.com/r/ArtificialInteligence/comments/1w9kgcl/gpt51_returned_0_bytes_gpt52_surf...
1•rayanpal_•4m ago•0 comments

Show HN: Free Song to Lyrics

https://www.neuralframes.com/tools/song-to-lyrics
1•nicollegah•4m ago•0 comments

NATO Is Losing the Information War. Here Is How to Win

https://foxandlion.pub/analysis/nato-is-losing-the-information-war.-here-is-how-to
4•agrantic•6m ago•0 comments

AI Escape Incident Tracker

https://ai-escape.watch/#registry
1•FinAck-Sec•9m ago•1 comments

Look, Mom, I pressed a button

https://galoisrepresentations.org/2026/09/05/look-mom-i-pressed-a-button/
1•robinhouston•11m ago•0 comments

The Evolution of Coding Agents

https://twitter.com/kushbhuwalka/status/2096856441063870969
1•kushbhuwalka•11m ago•0 comments

LG smart TVs caught logging audio with screen off and snooping on local devices

https://www.notebookcheck.net/LG-smart-TVs-caught-logging-audio-with-screen-off-and-snooping-on-l...
1•chris_overseas•11m ago•0 comments

Show HN: I wrote a guide to rendering video from plain HTML/CSS/GSAP

https://sidheart.gumroad.com/l/lyudd
2•SifatAhmed•11m ago•1 comments

Who Cares If AI Is Conscious–It's Basically Alive

https://www.wired.com/story/who-cares-if-ai-is-conscious-its-basically-alive/
1•joozio•12m ago•0 comments

ORM experience, Redis speed, PostgreSQL durability,functions without boundaries

https://github.com/orbsh/okm
1•orbsh•12m ago•0 comments

Show HN: Plethora, Social platform and SDK around games and interactive content

https://plethora.studio/
1•pratt3000•13m ago•0 comments

Show HN: Open-source agent memory layer, 96% on LongMemEval, local-first

https://github.com/everest-an/Awareness-Market
1•AwarenessAI•15m ago•0 comments

PC Tweaker – Windows settings with per-change restore, built in Rust

https://github.com/AurelioAvila/pc-tweaker-app
1•Aurelioavila•19m ago•0 comments

Necessist, a tool to identify broken tests

https://github.com/trailofbits/necessist
1•mkhq•20m ago•0 comments

Privacy Leakage from Gradients in Split-LLM Training

https://arxiv.org/abs/2609.04382
1•hevalon•20m ago•0 comments

Laffer Curve

https://en.wikipedia.org/wiki/Laffer_curve
1•nomilk•23m ago•0 comments

Canadian Pedestrian Network Database

https://www150.statcan.gc.ca/n1/en/catalogue/34260004
1•marklit•27m ago•0 comments

CRISPR editing of ANGPTL3: one-time precision therapy for dyslipidaemia

https://www.nature.com/articles/s41392-026-02605-8
1•emerongi•29m ago•0 comments

1M Lines of AI-Assisted Code in 2025

https://jonathanclark.com/posts/ai-coding-million-lines-2025.html
1•profstasiak•30m ago•0 comments

Elizabeth Holmes A24 Movie – You Can See Everything – Official Teaser HD [video]

https://www.youtube.com/watch?v=GGJSRFWALTI
1•sounddetective•34m ago•0 comments

Wan 3.0 at 68% of Alibaba Cloud's international list price, Prime at 78%

https://reapi.ai/models/wan-3-0
1•andrew06124•34m ago•0 comments

Pandora's Vox: On Community in Cyberspace (1994)

https://gist.github.com/kolber/2131643
1•Gecko4072•35m ago•0 comments

China Prepares for Space Warfare(apparently)

https://www.reuters.com/world/asia-pacific/us-china-arm-space-warfare-hunter-satellites-orbital-w...
2•KinetiNode•36m ago•0 comments

Show HN: Wb-Flow – Agentic Coding with Planned, Parallel Waves

https://github.com/wissemb11/wb-flow
2•wissemb1•37m ago•0 comments

Show HN: Remove people from photos by brushing over them

https://personremover.org/
2•fourfire•37m ago•0 comments

Astra made Van Gogh in a single pre computed step of 5291 excalidraw shapes

https://twitter.com/hive_echo/status/2096848073033146580
3•echohive42•38m ago•0 comments

Meta blocks accounts protesting Kushner-linked Albanian resort project

https://www.politico.eu/article/meta-blocks-accounts-politicians-journalists-and-activists-protes...
4•vrganj•41m ago•0 comments

Why 'sleepmaxxing' could be making your sleep worse

https://www.bbc.co.uk/news/articles/c99drr70m2eo
4•jeffwass•41m ago•0 comments