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.

Amazon.com: Dad, Debriefed: Honest Notes from a First-Time Dad's Year One

https://www.amazon.com/dp/B0HGLJD3QV
1•sirius93•4m ago•0 comments

Refinement E-Graphs

https://www.philipzucker.com/refinement_egraph/
1•philzook•4m ago•0 comments

Homestead: A framework around Claude Code

https://mullet.town/homestead
1•adenta•12m ago•0 comments

Learning without retention (agentic memory sucks)

https://zenodo.org/records/22706328
1•shoman3003•12m ago•0 comments

Qotom Q30952UE Review the New Black Box for 10G Networking

https://www.servethehome.com/qotom-q30952ue-review-the-new-black-box-for-intel-10g-networking/
1•teleforce•14m ago•0 comments

BanProof – AI that scans TikTok Shop videos for violation points before you post

https://banproof.io/
1•Pratham3690•15m ago•0 comments

Domain Coloring of Complex Functions

https://www.algorithm-archive.org/contents/domain_coloring/domain_coloring.html
2•suopspaces•16m ago•0 comments

That Thing with Pterodactyl and Blueprint

https://www.answeroverflow.com/m/1556451527097581690
8•xkeyscore•23m ago•1 comments

My New Course at UT Austin: AI Alignment Theory

https://scottaaronson.blog/?p=10125
3•magoghm•24m ago•0 comments

Show HN: Moching – AI desktop agent with 219 built-in tools (Rust)

https://github.com/moching-ai-dev/moching
1•moching_ai_dev•27m ago•1 comments

BioTool – a directory of life science research tools

https://biotool.oxford.workers.dev/
1•ElizabethDeng•31m ago•0 comments

Powerless F1 drivers frustrated by Bahrain F1 software glitch

https://www.motorsport.com/f1/news/horrible-totally-unacceptable-powerless-f1-drivers-frustrated-...
31•llm_nerd•34m ago•8 comments

A tribute to one of the best games on the Atari 2600

https://plicerin.github.io/riverraid-rom-port/
2•plicerin•34m ago•1 comments

Show HN: Candle – a helpful tool for running local dev services

https://andyfischer.dev/blog/introducing-candle/
1•apf6•37m ago•0 comments

Sixteen Loaves: from banana bread to rye sourdough

https://breadiseasy.com/course
1•breadchris•45m ago•0 comments

Show HN: Random Topic Generator with built-in talking points

https://random-topic.com
2•yegecode•45m ago•0 comments

Chaldeans And Jews: Building A Common Community (2011)

https://metromodemedia.com/chaldeansandjews0204/
1•marysminefnuf•46m ago•0 comments

Mystery surrounding the formation of asteroid Bennu solved

https://ethz.ch/en/news-and-events/eth-news/news/2026/09/mystery-surrounding-the-formation-of-ast...
1•geox•48m ago•0 comments

Show HN: HyperCMD, write CLI applications using plain HTML

https://github.com/fusor-rs/hypercmd
3•andreespirela•55m ago•0 comments

I Quit OpenAI Because Its Culture Is Broken

https://www.theatlantic.com/technology/2026/10/openai-safety-team-resignation/688881/
1•somerandomness•57m ago•2 comments

L402 edge cache for AI agents paying over Lightning

https://github.com/CharlesStrogish/bitcoin-stratigraphy-mcp
1•CharlesRStrogis•59m ago•0 comments

Konami Code

https://konami.fandom.com/wiki/Konami_Code
1•andsoitis•1h ago•0 comments

Who is cleaning up all the garbage LLMs generate?

3•kbrannigan•1h ago•5 comments

Superpowers Race to Put Nuclear Reactors on the Moon

https://www.nytimes.com/2026/10/04/world/asia/nuclear-reactors-moon.html
1•thelastgallon•1h ago•0 comments

Primitives for Sane Conversation About AI

https://humanparadox.org/primitives-for-sane-conversation-about-ai/
1•colingauvin•1h ago•0 comments

Show HN: Orrery, a Three.js solar system visualization powered by real NAIF data

https://orrery.ryboso.me/
2•rybosome•1h ago•0 comments

A 40ms Go garbage collector pause caused by swap

https://frn.sh/go-gc/
6•shellpipe•1h ago•0 comments

NOAA Public Space Weather Notice Code: WARK04 Serial Number: 5424

https://www.astrophyzix.com/2026/10/04-live-space-alert.html
2•SpaceNewsNow•1h ago•0 comments

Huawei Kirin 9050 Pro uses impressive 3D V-Cache-like stacked design for the SoC

https://www.notebookcheck.net/Teardown-shows-Huawei-Kirin-9050-Pro-uses-a-3D-V-Cache-like-stacked...
1•rguiscard•1h ago•0 comments

Court Tosses Sentence After A.I. Video of Victim 'Forgiving' His Killer

https://www.nytimes.com/2026/10/04/us/manslaughter-conviction-overturned-ai-video-statement.html
2•sbulaev•1h ago•1 comments