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.

Made an eBPF syscall tracer with a live TUI

https://github.com/pandaadir05/snoop
1•pigeon1231•44s ago•1 comments

Old, Discontinued Fiats Are Outselling New Fiats

https://www.jalopnik.com/2144450/old-discontinued-fiat-500x-outselling-new-500e/
1•mooreds•1m ago•0 comments

I solved NP‑complete problems by turning them into planets

https://github.com/TheAnalyticalAbsurdist/vedic-planetary-transformers
1•AbsurdityBureau•5m ago•0 comments

Gliding on Snow: One Man's Dream

https://bd-numerique.museebombardier.com/en/
1•sxzygz•7m ago•0 comments

Give Them Two Choices

https://chadnauseam.com/coding/tips/give-them-two-choices
1•ChadNauseam•10m ago•0 comments

The AI Productivity Paradox: Why the AI Multiplier Is Less Than 2x

https://www.forrestthewoods.com/blog/the-ai-productivity-paradox/
1•forrestthewoods•11m ago•0 comments

Javier Milei's bribery scandal may have derailed Argentina's crypto investment

https://www.theguardian.com/world/2026/apr/12/crypto-javier-milei-bribery-argentina
1•kasperni•13m ago•0 comments

Language, Curiosity and Life – By Masato Hagiwara

https://masatohagiwara.net/lcl.html
1•jotaefea•21m ago•0 comments

New metal with triple copper's heat conduction challenges fundamental physics

https://www.scientificamerican.com/article/new-metal-with-triple-coppers-heat-conduction-challeng...
2•thunderbong•35m ago•0 comments

Harvesting easter eggs: An exploratory study of enjoying transnarrative media

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0341588
1•PaulHoule•39m ago•0 comments

ORAC-NT MedChem Copilot that blocks synthetically infeasible molecules

https://github.com/Kretski/ORAC-NT
1•DREDREG•42m ago•0 comments

Show HN: Local LLM on a Pi 4 controlling hardware via tool calling

https://github.com/stfurkan/pi-llm
2•stfurkan•42m ago•2 comments

How to Split Mounjaro Pens

https://henryaj.substack.com/p/you-can-just-take-less-mounjaro
1•henryaj•45m ago•0 comments

Memoir to Secure Computing Technology Corp

https://cryptosmith.com/r/sctc/
1•relaunched•50m ago•1 comments

Postgres Advisory Locks: Deadlocks, Key Packing, and Fetch-Lock-Refetch

https://dteather.com/blogs/postgres-advisory-locks/
2•davidteather•51m ago•0 comments

Google Externalised the Cost of Renaming Gmail

https://nativerse-ventures.com/gmail-rename-cascade
7•Srinathprasanna•1h ago•1 comments

Show HNZ A native C/GTK Linux tray internet monitor to log ISP dropouts

https://github.com/lsferreira42/internet-indicator
1•lsferreira42•1h ago•0 comments

Show HN: A social feed with no strangers

https://www.grateful.so/
2•rpatni•1h ago•0 comments

A protective case for your glasses

https://thangs.com/designer/Gazzaladra/3d-model/Glasses%20case-1511373
2•dsego•1h ago•0 comments

Taking on CUDA with ROCm: 'One Step After Another'

https://www.eetimes.com/taking-on-cuda-with-rocm-one-step-after-another/
15•mindcrime•1h ago•9 comments

Vegetative Patients May Be More Aware Than We Knew

https://www.nytimes.com/2026/04/09/magazine/vegetative-states-conscious-aware.html
6•bookofjoe•1h ago•1 comments

Should capitalism be a choice?

https://cyrusradfar.com/thoughts/should-capitalism-be-a-choice
6•cyrusradfar•1h ago•1 comments

Major history podcasts are being faked

https://old.reddit.com/r/podcasting/comments/1sjgscs/major_history_podcasts_are_being_faked/
1•softwaredoug•1h ago•0 comments

Sam Altman's home targeted in second attack

https://sfstandard.com/2026/04/12/sam-altman-s-home-targeted-second-attack/
49•babelfish•1h ago•55 comments

Welcome to Agents Week

https://blog.cloudflare.com/welcome-to-agents-week/
1•cebert•1h ago•0 comments

They accidentally started a green screen revolution [video]

https://www.youtube.com/watch?v=Y3Dfw969itU
3•qingcharles•1h ago•0 comments

Show HN: Vapephone

https://wefumevapes.com/
1•wvlia5•1h ago•0 comments

KindleModding

https://kindlemodding.org/
3•fallinditch•1h ago•0 comments

Tech valuations are back to pre-AI boom levels

https://www.apollo.com/wealth/the-daily-spark/tech-valuations-back-to-pre-ai-boom-levels
70•akyuu•1h ago•9 comments

Linux Out-of-Bounds Access Fixed for Unprivileged Users with Crafted Certs

https://www.phoronix.com/news/Linux-OOB-Special-Certificate
2•moehm•1h ago•0 comments