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.

Sydney Marathon medal mistakenly depicts Munich stadium

https://www.bbc.com/news/articles/cvg92y1wzn8o
1•epestr•2m ago•0 comments

Destiny Installers Ds-TV installers

https://destinyinstallers.co.za/
1•takundagava•7m ago•1 comments

NYTimes opinion article proposes default as a way to deal with US National debt

https://www.nytimes.com/2026/08/22/opinion/us-debt-40-trillion.html
1•killingtime74•7m ago•0 comments

Show HN: SpotWarp – Zero-loss failover & backup for Spot GPUs

https://github.com/enplabs/spotwarp
1•choi5844•10m ago•0 comments

How Big Tech Captured American Schools

https://www.nytimes.com/2026/08/23/business/schools-big-tech-google-microsoft.html
1•sbulaev•10m ago•0 comments

Iranian hackers shut down UK power plant for 4 days

https://www.telegraph.co.uk/news/2026/08/22/iranian-hackers-shut-down-uk-power-plant/
1•giuliomagnifico•14m ago•0 comments

I gave Qwen 3.8 27B a reverse-engineering job and it finished in 30 minutes

https://www.xda-developers.com/qwen-3-8-27b-reverse-engineering-job-frontier-model/
1•raybb•14m ago•0 comments

I Made the First "Link Compressor"

https://www.youtube.com/watch?v=TOr1Vvji6jA
1•conferza•15m ago•0 comments

25 Years of Mixxx Intergalactic DJ Contest

https://mixxx.org/news/2026-08-23-25_years_of_mixxx_dj_contest/
1•SamWhited•15m ago•0 comments

What if coding agents didn't have to read code?

https://benzi.fly.dev/about
1•showhz•16m ago•1 comments

AI Writing Without the Slop

https://sfactory.dev
1•jasfi•17m ago•1 comments

Show HN: Gibbous – Hide the useless parts of GitHub UI

https://netanel-haber.github.io/gibbous/
1•yikestra•17m ago•0 comments

Ptrclassify – guessing usage and location from reverse-DNS PTR hostnames

https://github.com/adulau/ptrclassify
1•adulau•18m ago•0 comments

Canada now 'at war' with United States over trade, Prime Minister says

https://www.theglobeandmail.com/canada/article-canada-us-trade-deal-tariffs-mark-carney-donald-tr...
2•Fellwaa•19m ago•1 comments

Show HN: ArchSentry – Deterministic architectural enforcement for CI

https://github.com/comerade2134/archsentry
2•light82083•23m ago•0 comments

Mature Optimization: An Introduction

https://carlos.bueno.org/optimization/
2•luispa•25m ago•0 comments

The Strange Foods

https://medium.com/luminasticity/the-strange-foods-0624e47c11f4
1•bryanrasmussen•27m ago•0 comments

Suggestions from Qwoted "Experts" on How to Revitalize IEEE

https://techblog.comsoc.org/2026/08/20/suggestions-from-qwoted-experts-on-how-to-revitalize-ieee/
1•jruohonen•28m ago•0 comments

Ask HN: What made you stop relying on tutorials?

2•codst•36m ago•2 comments

"Considered Harmful" Essays Considered Harmful (2002)

https://meyerweb.com/eric/comment/chech.html
1•matada_•38m ago•0 comments

The Sloppification of Peptides

https://henryaj.substack.com/p/the-sloppification-of-peptides
4•henryaj•44m ago•0 comments

Show HN: Opensourcing Lemmaflow – A trust harness for AI-native apps

1•udit_50•45m ago•0 comments

Show HN: Live 3D satellite tracker and the declassified Pentagon UFO archive

https://skylens.yantraai.app/
3•skylensspace•49m ago•0 comments

Doomscrolling at work wastes time, but the real cost is what happens after

https://stories.tamu.edu/news/2026/08/13/doomscrolling-at-work-wastes-time-but-the-real-cost-is-w...
3•giuliomagnifico•50m ago•0 comments

Redora 0.3.1 – Redis application toolkit for NestJS

https://www.redora-sdk.com/
1•nebyusamuel•50m ago•1 comments

Device lighting from the Omarchy bar, through OpenRGB

https://github.com/ilkaydnc/omarchy-openrgb
1•arbayi•51m ago•0 comments

macOS JIT Memory

https://www.outflank.nl/blog/2026/02/19/macos-jit-memory/
2•porridgeraisin•51m ago•0 comments

Anthropic's best AI model struggles to attract users as cheaper tools thrive

https://www.ft.com/content/5ee49718-c258-4f01-aa32-7e5b76ae5245
1•merksittich•55m ago•0 comments

My Recent Visit to Anthropic

https://marginalrevolution.com/marginalrevolution/2026/08/my-recent-visit-to-anthropic.html
2•smitty1e•58m ago•0 comments

Randall Jarrell: Some Lines from Whitman

https://www.sas.upenn.edu/~perelman/classes/english088/rj_somelinesfromwhitman.html
1•firasd•1h ago•0 comments