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.

NASA Shares Photos Shot on iPhone 17 Pro Max During Artemis II Mission

https://www.macrumors.com/2026/04/05/nasa-artemis-ii-photos-shot-on-iphone-17-pro-max/
1•nalekberov•23s ago•0 comments

New Advances Bring the Era of Quantum Computers Closer

https://www.quantamagazine.org/new-advances-bring-the-era-of-quantum-computers-closer-than-ever-2...
1•ibobev•2m ago•0 comments

1SubML: Plan vs. Reality

https://blog.polybdenum.com/2026/04/05/1subml-plan-vs-reality.html
1•ibobev•3m ago•0 comments

Some Subtleties When Parsing 6502 Assembly Language

https://bumbershootsoft.wordpress.com/2026/04/04/some-subtleties-when-parsing-6502-assembly-langu...
1•ibobev•3m ago•0 comments

New library to convert HTML => pdf and dxf (using getBoxQuads for help)

https://github.com/node-projects/layout2vector
1•jogibear9988•5m ago•0 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
1•hasheddan•5m ago•0 comments

Ollama and OpenClaw

https://docs.ollama.com/integrations/openclaw
1•zlu•6m ago•0 comments

Former Azure Engineer Alleges Manual Fixes, Firefighting Threaten Reliability

https://windowsnews.ai/article/former-azure-engineer-alleges-manual-fixes-firefighting-culture-th...
1•sylvainkalache•8m ago•0 comments

Ask HN: How do systems (or people) detect when a text is written by an LLM

2•elC0mpa•15m ago•0 comments

ServiceMesh at Scale with William Morgan Creator of Linkerd

https://open.spotify.com/episode/6BbrYeuPftkvJYTZuJfZmm
1•neciudan•19m ago•1 comments

Show HN: Mail Toll – Set a price on your inbox, agents pay USDC to reach you

https://mailtoll.app
1•willgdjones•20m ago•0 comments

Macroeconomic Policy and the Optimal Destruction of Vampires [pdf]

https://irihs.ihs.ac.at/id/eprint/162/1/fo162.pdf
2•AFF87•21m ago•0 comments

Improved the social and emotional system – larkos(neural web)

1•Okerew•24m ago•0 comments

Why Ambiverts Make the Best Leaders

https://www.truity.com/blog/why-ambiverts-make-best-leaders
1•rbanffy•26m ago•0 comments

Linux 7.1 Expected to Begin Removing I486 CPU Suppor

https://www.phoronix.com/news/Linux-7.1-Phasing-Out-i486
2•mariuz•27m ago•0 comments

What if AI just makes us work harder?

https://timharford.com/2026/04/what-if-ai-just-makes-us-work-harder/
5•penguin_booze•32m ago•1 comments

Python: Profiling-Explorer

https://adamj.eu/tech/2026/04/03/python-introducing-profiling-explorer/
1•elashri•33m ago•0 comments

Go 1.25 and 1.26 Compiler Magic – How the Stack Is Eating the Heap

https://programmerscareer.com/go-stack-allocation-optimizations/
3•swq115•33m ago•0 comments

Lichess and Take Take Take Sign Cooperation Agreement

https://lichess.org/@/Lichess/blog/lichess-and-take-take-take-sign-cooperation-agreement/DZS0S0Dy
2•dematz•35m ago•0 comments

Why RAG doesn't work for WhatsApp AI agents and what's the alternative

https://wpp.opero.so/blog/why-rag-fails-for-whatsapp-and-what-we-built-instead
2•juancruzguillen•36m ago•1 comments

Satellite mirror plans could disrupt sleep and ecosystems, scientists say

https://www.theguardian.com/science/2026/apr/05/satellite-mirror-plans-could-disrupt-sleep-and-ec...
1•giuliomagnifico•38m ago•0 comments

Tiny Corp's Exabox

https://twitter.com/__tinygrad__/status/2040944508402360592
5•macleginn•39m ago•0 comments

Upwork Inc. violates its own DMARC and SPF policy

2•tmcdos•40m ago•1 comments

Ice-Out: Retiring IceLen until winter late 2026

https://www.bassfinity.com/blog/ice-out-2026-icelens-seasonal-close
1•jequals5•45m ago•0 comments

SQLite on Git, Part II: Unlocking Zlib's Less Known Feature

https://blog.lysk.tech/sqlite-on-git-part-2/
3•mlysk•45m ago•1 comments

Why Taking over Utilities Won't Deliver Cheap Electricity

https://oilprice.com/Energy/Energy-General/Why-Taking-Over-Utilities-Wont-Deliver-Cheap-Electrici...
1•PaulHoule•46m ago•0 comments

Ansel: Color Controls Finally Correct

https://ansel.photos/en/news/color-controls-finally-correct/
1•aurelienpierre•46m ago•0 comments

Practical LLM developer project management: Obsidian Kanban plan MD files in Git

https://savolai.net/notes/edu-tech-blog/llm-text-files-obsidian-kanban-practical-project-manageme...
1•savolai•50m ago•0 comments

Show HN: I built an app for comparing grocery prices across UK supermarkets

https://play.google.com/store/apps/details?id=com.wistfulcreations.GroceryCompare&hl=en_GB
1•poppet1208•51m ago•0 comments

Perplexity's "Incognito Mode" is a "sham," lawsuit says

https://arstechnica.com/tech-policy/2026/04/perplexitys-incognito-mode-is-a-sham-lawsuit-says/
2•JumpCrisscross•53m ago•0 comments