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

LLM Inference Throughput Rises 4.5x with Parallel Verification

https://presciente.com/edition/74
1•sebastianperezr•3m ago•0 comments

Global AI Diffusion in Q1 2026 – Microsoft

https://www.microsoft.com/en-us/corporate-responsibility/dmc/topics/ai-economy-institute/reports/...
1•giuliomagnifico•5m ago•0 comments

Comparing a 1980s memory map to the Raspi Pico

https://medium.com/@noborutakahashi/a-40-year-old-memory-map-comparable-to-todays-raspberry-pi-pi...
1•Schlagbohrer•5m ago•0 comments

How much electricity does AI consume?

https://hannahritchie.substack.com/p/ai-electricity-2025
2•mef•6m ago•0 comments

Mapping every European defence tech SME

https://www.defencejobs.org
1•omikk•8m ago•0 comments

Will the stigma around boys who dance ever shift?

https://www.theguardian.com/stage/2026/may/10/balletboyz-billy-elliot-ashley-banjo-diversity-male...
2•YeGoblynQueenne•10m ago•0 comments

Show HN: An index of indie web/blog indexes

https://theindex.fyi
1•rocketpastsix•13m ago•0 comments

Sum-Check as an Algebraic Tensor Reduction: Part II

https://blog.zksecurity.xyz/posts/tensor-reductions-2/
3•marcobesier•15m ago•0 comments

Flu a and B Viral Shedding in Adults Who Get Live Attenuated Flu Vax

https://academic.oup.com/cid/advance-article/doi/10.1093/cid/ciag294/8672548
1•susiecambria•15m ago•0 comments

Wonky Software Supply Chains

https://simonramstedt.com/blog/2026-04-09-wonky-software-supply-chains/
1•rmst•16m ago•0 comments

Global reorganization of genome architecture at the transition to gametogenesis

https://www.nature.com/articles/s41594-026-01747-1
1•bookofjoe•17m ago•0 comments

Executable notebook for testing earthquake-event concentration (Colab)

https://colab.research.google.com/drive/1tDXBOOZAhngHJDXj_ZPmW2kcF7_Ysg0-
1•hiroakiaizawa•17m ago•1 comments

Anthropic and OpenAI are launching joint ventures for enterprise AI services

https://techcrunch.com/2026/05/04/anthropic-and-openai-are-both-launching-joint-ventures-for-ente...
1•gmays•18m ago•0 comments

Claude Code edits YouTube videos

https://blog.bunnyhoneyclub.com/posts/claude-code-video-editing-youtube
1•shadowinbox•19m ago•0 comments

Why Dunkin' Failed in India

https://timesofindia.indiatimes.com/life-style/food-news/why-dunkin-failed-in-india/articleshow/1...
2•HR01•19m ago•0 comments

Brain scans reveal a difference between psychopaths and other people

https://www.sciencedaily.com/releases/2026/05/260510030946.htm
1•Noaidi•22m ago•1 comments

Let's Build a Compiler

https://compilers.iecc.com/crenshaw/
1•tosh•25m ago•0 comments

Only one of Berkshire Hathaway and SoftBank can survive

https://www.economist.com/business/2026/05/06/only-one-of-berkshire-hathaway-and-softbank-can-sur...
4•1vuio0pswjnm7•29m ago•1 comments

Language is primarily a tool for communication rather than thought [pdf]

https://colala.berkeley.edu/papers/fedorenko2024language.pdf
1•pythonic_hell•29m ago•1 comments

LUKSbox – Store sensitive files in the cloud without trusting the host

https://github.com/PentHertz/LUKSbox
1•danborn26•30m ago•0 comments

AI Gilfoyle

1•peterpommes•33m ago•0 comments

DuckDB-Delta Grows Up: Writes, Unity Catalog and Time Travel

https://duckdb.org/2026/05/07/delta-uc-updates
2•szarnyasg•33m ago•0 comments

Suits in 5 Nations Allege Apple Quashed "Watch Room" Competition

https://www.law.com/2026/05/08/suits-in-5-nations-allege-apple-quashed-watch-room-competition/
1•1vuio0pswjnm7•34m ago•0 comments

Accessibility of date formats (and superiority of YYYY-MM-DD)

https://mina86.com/2026/on-a11y-of-date-formats/
1•OuterVale•34m ago•0 comments

Trying a few ideas with rust and Python

https://github.com/KevinKenya/nairobi-connector-open-source/tree/main
1•kevinkenya•35m ago•1 comments

FCC Proposes Requiring Government-Issued ID for Phone Service [pdf]

https://docs.fcc.gov/public/attachments/DOC-421309A1.pdf
1•diogenes_atx•38m ago•1 comments

In search of wasted bits: how much information do LLM weights carry?

https://fergusfinn.com/blog/weight-entropy/
1•gmays•38m ago•0 comments

Sql2md – Zero-dependency SQL to Markdown converter (open source)

https://github.com/hyperbob/sql2md
1•sqlfans_qmejpi•40m ago•0 comments

Become the Place People Follow

https://www.researchterminal.ai
2•ipachanga•41m ago•0 comments

Rprom 7-fold Amiga 500/600/2000 from 6a/4.3 Kickstart Switcher configurable

https://www.retrobuddys.com/en/shop/amiga-hw-mods/amiga-2000-en/rprom-7-fold-amiga-500-600-2000-f...
1•doener•42m ago•0 comments