frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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•11mo 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.

Utopia and Historical Actions

https://vmchale.com/static/serve/utopia-historical-action.html
1•vmchale•1m ago•0 comments

Checking in on 'Marathon' a Month After Launch

https://www.forbes.com/sites/paultassi/2026/04/09/checking-in-on-marathon-a-month-after-launch/
1•TMWNN•1m ago•0 comments

My AI tutor kept forgetting me between sessions, so I fixed that

https://github.com/sliamh11/Deus
1•sliamh11•1m ago•0 comments

Travel writing's biggest myth (and why everyone is lying)

https://denisecullen.com.au/travel-writings-biggest-myth-and-why-everyone-is-lying/
1•speckx•2m ago•0 comments

Cloudflare gatekeeps small browsers by requiring WebGL draft for their CAPTCHA

https://forum.palemoon.org/viewtopic.php?t=32045&start=740
1•mimasama•2m ago•0 comments

Library Might Do Less

https://martiansoftware.com/articles/the-best-library-might-do-less
1•Tomte•5m ago•0 comments

Meta's new model is Muse Spark, and meta.ai chat has some interesting tools

https://simonwillison.net/2026/Apr/8/muse-spark/
1•gmays•5m ago•0 comments

2SLGBTQQIA+ Sub-Working Group MMIWG2SLGBTQQIA+ National Action Plan Final Report

https://scholars.wlu.ca/indg_faculty/1/
1•mhb•11m ago•0 comments

How I changed my engineering teams' workflow after a year of resisting AI tools

https://shiftmag.dev/as-an-engineering-manager-i-couldnt-ignore-ai-if-my-teams-are-to-survive-9061/
1•choochilla4•13m ago•0 comments

Atanasoff-Berry Computer

https://www.computerhistory.org/revolution/birth-of-the-computer/4/99
1•widenrun•14m ago•0 comments

ClawNetwork – A blockchain built for OpenClaw and all AI agents

https://chain.clawlabz.xyz/en
1•ludis•14m ago•0 comments

Ursa – a new Iceberg-first storage engine for Kafka

https://topicpartition.io/blog/ursa-a-new-lakehouse-first-storage-engine-for-kafka
3•enether•18m ago•0 comments

Applying "Programming Without Pointers" to an mbox indexer using Zig

https://simonhartcher.com/posts/2026-04-08-applying-programming-without-pointers-to-an-mbox-index...
1•mpweiher•18m ago•0 comments

Google: MCP Toolbox

https://github.com/googleapis/mcp-toolbox
2•danielmorozoff•18m ago•0 comments

South Africa's VALR Launches AI Service for Humans and AI Agents

https://mybroadband.co.za/news/industrynews/639519-valr-launches-ai-service-for-humans-and-ai-age...
1•DistantCl3ric•18m ago•0 comments

How Censorship Seized America

https://unherd.com/2026/04/how-censorship-seized-america/
1•barry-cotter•19m ago•0 comments

Claude Scholar

https://github.com/Galaxy-Dawn/claude-scholar
1•danielmorozoff•22m ago•0 comments

The acyclic e-graph: Cranelift's mid-end optimizer

https://cfallin.org/blog/2026/04/09/aegraph/
1•tekknolagi•22m ago•0 comments

Analysis of Virtual.1 by Bagolymadar

https://farena.in/reverse%20engineering/code%20virtualization/virtual-1-vm-solution/
1•speckx•25m ago•0 comments

Show HN: CodeJourney – Verifiable due diligence for code and IP

https://github.com/adaptive-scale/codejourney
1•debarshri•25m ago•0 comments

Scientists question CIA "Ghost Murmur" long-range heartbeat detection

https://www.scientificamerican.com/article/what-is-the-quantum-ghost-murmur-purportedly-used-in-i...
1•daniel_iversen•30m ago•0 comments

Llama LLM Network Feture

https://github.com/Jeffyjefchat/oracle-protocol
1•jeffy864567•30m ago•0 comments

Google rolls out Gmail end-to-end encryption on mobile devices

https://www.bleepingcomputer.com/news/google/google-rolls-out-gmail-end-to-end-encryption-on-mobi...
1•elsewhen•31m ago•1 comments

My Picture of the Present in AI

https://www.lesswrong.com/posts/WjaGAA4xCAXeFpyWm/my-picture-of-the-present-in-ai
1•speckx•33m ago•0 comments

Get Smart with Stupid Models

https://www.drewlyton.com/story/get-smart-with-stupid-models/
2•drew_lytle•33m ago•1 comments

Show HN: LLM-wiki LLM-compiled knowledge bases with multi-agent research v0.0.20

https://llm-wiki.net/
2•nvk•34m ago•0 comments

An open letter to 21 people I know who died

https://laylahughes.substack.com/p/an-open-letter-to-21-people-i-know
2•surprisetalk•36m ago•1 comments

"Love, Mum" – What AIs can't see about abuse

https://nataliercargill.substack.com/p/love-mum-what-ais-cant-see-about
2•surprisetalk•36m ago•0 comments

Covfefe (2017)

https://en.wikipedia.org/wiki/Covfefe
4•surprisetalk•36m ago•0 comments

The Myth of the Autism Epidemic

https://newsletter.humanprogress.org/p/the-myth-of-the-autism-epidemic
2•surprisetalk•36m ago•1 comments