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.

I'm sorry, but you still have to think

https://itsallaboutthebit.com/i-am-sorry-but-you-still-have-to-think/
1•drogus•32s ago•0 comments

Internal files add to evidence of an ExxonMobil climate deception campaign

https://insideclimatenews.org/news/07102026/exxonmobil-climate-deception-new-evidence/
1•gumby•1m ago•0 comments

Valen's Memory Safety: A New Kind of Borrow Checking

https://verdagon.dev/blog/valen-group-borrowing#note0
1•signa11•3m ago•0 comments

Do Agent Benchmarks Do What They Say?

https://arxiv.org/abs/2609.37315
1•khalidkhair•3m ago•0 comments

Tune-Up – a Grok bot that reviews and fixes your other Grok bots

https://agenttuneup.ai/
1•pjpoulose•4m ago•0 comments

AI Agents create their own backstories for a Love is Blind simulation

https://unyxfly.substack.com/p/12-ai-love-is-blind
2•minou3•5m ago•0 comments

AT&T's CRISP Hobbits (1986, 2023)

https://thechipletter.substack.com/p/at-and-ts-crisp-hobbits
1•pjmlp•6m ago•0 comments

Why Texas Is Making Data Centers Wait

https://a16z.com/why-texas-is-making-data-centers-wait/
2•gmays•8m ago•0 comments

Show HN: Refused: the page does not say what TriageDesk does

https://thecompound.tech
1•kyisaiah47•8m ago•0 comments

Show HN: Yia-yia game single prompt with Opus 5.5

https://yiayia.online
1•lun4r•10m ago•0 comments

The Café Economy [pdf]

https://www.in.gr/wp-content/uploads/2025/10/inGreeSE-212-1.pdf
1•theanonymousone•10m ago•0 comments

Bootstrap – A Manifesto for the Free Human

https://superreality.si/
1•sigalor•12m ago•0 comments

To Switch, or Not to Switch the AI Model

https://age-of-product.com/switching-ai-models/
1•swolpers•12m ago•0 comments

Use the Tello's GameSir T1d Controller as a Linux Gamepad

https://blog.jacq.cc/guides/gamesir-t1d-linux-gamepad/
1•xx__yy•14m ago•0 comments

Practical application for the u32br RISC-V microprocessor (BlueMacaw) [video]

https://www.youtube.com/watch?v=Hvn6xEScHp4
1•xinayder•18m ago•1 comments

Russia on the Brink, 1913

https://worldhistory.substack.com/p/russia-1913
1•gdillard•18m ago•0 comments

Nobloat/Poll

https://nobloat.org/articles/2026-10-11-nobloat-poll.html
2•cinemast•21m ago•0 comments

PGO or not PGO this is the dilemma. Step 1

https://www.percona.com/blog/pgo-or-not-pgo-this-is-the-dilemma-step-1/
2•hndhyc0bdt•21m ago•0 comments

Show HN: InfiniWord – infinite multiplayer word search

https://infiniword.com
1•Static2280•23m ago•0 comments

More reasons not to be an electrician (UK)

1•notasparkthrowa•24m ago•0 comments

The Placenta Is More Powerful–and More Mysterious–Than You Think

https://nautil.us/the-placenta-is-more-powerful-and-more-mysterious-than-you-think-1285683
4•Brajeshwar•29m ago•0 comments

'You have a meeting': the calendar phishing scam growing exponentially

https://www.theguardian.com/money/2026/oct/11/calendar-phishing-scam-meeting-renewal-google-micro...
1•Brajeshwar•29m ago•0 comments

Eggshell is an open-source token-saving tool built in Lean4

https://github.com/momonpya/eggshell
1•o8vm•30m ago•0 comments

Ditherpunk – The article I wish I had about monochrome image dithering (2021)

https://surma.dev/things/ditherpunk/
2•EndXA•30m ago•1 comments

Git for Robots In The Future

https://github.com/Nabzx/mnemosyne
1•Na6z•31m ago•1 comments

AI companies are starting to do phones

https://twitter.com/firesidealpha/status/2108930562794864912
1•elorant•34m ago•1 comments

A Tutorial on the Curry-Howard Correspondence [pdf]

https://web.archive.org/web/20190405114037/http://purelytheoretical.com/papers/ATCHC.pdf
1•rramadass•36m ago•0 comments

DesktopBrain – Clean up your messy Mac without uploading files to the cloud

https://desktopbrain.saposs.com/
1•jimmy_lee•36m ago•0 comments

Show HN: Contribute to Collection of JavaScript Demos

https://brysonbw.github.io/js-demos/
1•Brysonbw•36m ago•0 comments

Show HN: Quaesito: a self-hosted app for quiz nights with friends

https://github.com/ggirelli/quaesito
1•ggirelli•37m ago•0 comments