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.

After Automation: Cofounders Will Be the Unfair Advantage

https://akspad.substack.com/p/after-automation-cofounders-will
1•akshayp29•1m ago•0 comments

A Ripped-Out Poem, or How I Voted in Russia's Parliamentary "Election"

https://psychotechnology.substack.com/p/a-ripped-out-poem-or-how-i-voted
2•eatitraw•4m ago•0 comments

PalmOS Lemmings

https://palmos-lemmings.dk.workers.dev/
2•measurablefunc•5m ago•0 comments

VYBE – Save clipboard YouTube links as MP4 or MP3 with global shortcuts

https://github.com/mickfive05/VYBE
2•michaellupo•6m ago•0 comments

Obsession with AI May Be Starving the Research Fields It Needs to Survive

https://www.unite.ai/obsession-with-ai-may-be-starving-the-research-fields-it-needs-to-survive/
2•50kIters•6m ago•0 comments

Boeing 737 MAX wins FAA certification, clearing way for delivery of 1555 planes

https://www.foxbusiness.com/markets/boeings-largest737-max-jet-wins-faa-certification-clearing-wa...
2•mikhael•8m ago•0 comments

LiteLLM 1.107.0 wheels on PyPI are compromised

https://twitter.com/LiteLLM/status/2112945728565993864
4•peterjliu•9m ago•0 comments

eMudhra Certificates Are Compromised

https://blog.cloudflare.com/emudhra-certificate-compromise/
3•nicksergeant•11m ago•1 comments

Embedding EYG in Erlang

https://eyg.run/guides/embedding-eyg-in-erlang-programs
1•crowdhailer•11m ago•0 comments

New Kid on the Block

https://praex.ai/
1•praexai•11m ago•0 comments

For All K9s Lovers

https://github.com/rt-kill/k9rs
1•rt-kill•12m ago•1 comments

Show HN: Professionally maintained Tree-sitter compatible WASM grammars

https://powderworks.dev/
1•knuckleheads•13m ago•0 comments

Show HN: The Steam Frame's wireless adapter isn't what you think

https://github.com/Sharktheone/steamframe-dongle
1•sharktheone•17m ago•0 comments

Toyota Releases Video of Wheelchair-Alternative Mobility Concepts in Action

3•Mobius01•19m ago•1 comments

What browser task do you still do by copy-paste every week?

https://awflow.io/
1•dannickstark•20m ago•1 comments

SpaceX and Tesla Explore Merger

https://www.nytimes.com/2026/10/21/business/elon-musk-spacex-tesla-merger.html
3•forthwall•21m ago•0 comments

Show HN: Repository of the Day - Flisk – run a full local service stack ASAP

https://github.com/flisk-sh/flisk
1•alexdykyi•23m ago•2 comments

Automattic begins layoffs following board upheaval and executive departures

https://techcrunch.com/2026/10/21/automattic-begins-layoffs-following-board-upheaval-and-executiv...
3•ValentineC•26m ago•0 comments

AWS rates PHP RCE as Important so Amazon Linux 2023 patch may take 20 days

https://github.com/amazonlinux/amazon-linux-2023/issues/1148
9•hayd•27m ago•1 comments

Design with an Elephant. Review with a Goldfish

https://egm.dev/
1•mfrw•27m ago•0 comments

UK government accepts 27 new "antisemitism" recommendations

https://twitter.com/PolitlcsUK/status/2112923461664260180
1•newspaper1•29m ago•0 comments

Show HN: I made anagrams slightly challenging

https://www.quizingo.app/anagrams
1•coder97•30m ago•0 comments

CleanFrame: A quieter home screen for Samsung The Frame

https://github.com/nthnclrk/CleanFrame
1•ingve•31m ago•0 comments

Android testers wanted: help us unlock Vardum on Google Play

https://tryvardum.app/
1•veil-im•32m ago•1 comments

Bugra Akdemir on the XERJ Corpus Hub

https://hub.xerj.org/contributors/BugraAkdemir
1•bugraakdemir37•34m ago•0 comments

She Was the DEA's Premier Crypto Detective

https://www.wired.com/story/the-deas-premier-crypto-detective-clues-led-straight-to-her-own-family/
1•Anon84•35m ago•0 comments

Model winter sunlight and shadows on any Oregon property using Lidar

https://www.oregonelevationtools.com
1•dango2506•39m ago•1 comments

Is Wikipedia the 'Last Best Place on the Internet'?

https://www.nytimes.com/2026/10/21/books/review/the-last-best-place-on-the-internet-richard-cooke...
2•cainxinth•39m ago•1 comments

Auracast – Your Own Radio Station Wherever You Are

https://www.bluetooth.com/auracast/
1•bookofjoe•39m ago•0 comments

Show HN: A shared 3D Zoo in the browser where everyone sees the same animals

https://zooki.world
3•kagen•41m ago•1 comments