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.

Council of Europe hacked in ShinyHunters' PeopleSoft heist

https://www.theregister.com/cyber-crime/2026/06/15/council-of-europe-hacked-in-shinyhunters-peopl...
1•lschueller•28s ago•0 comments

Sweden passes 'good behaviour' law to kick out misbehaving immigrants

https://www.reuters.com/world/sweden-passes-good-behaviour-law-kick-out-misbehaving-immigrants-20...
1•JumpCrisscross•41s ago•0 comments

Show HN: Behavioral gauge for Claude Code sessions

1•pradeep1177•2m ago•0 comments

A Normative Intervention to Reclaim 'Free Speech'

https://knightcolumbia.org/blog/a-normative-intervention-to-reclaim-free-speech
1•jruohonen•2m ago•0 comments

LLMs Will Replace 8-Track Duplication Engineers

https://bbenchoff.github.io/pages/8Tracks.html
1•wanderingjew•5m ago•0 comments

I built a human-approval layer for AI agents and Zapier workflows

https://orka.ia.br/
1•matteusmadu•7m ago•0 comments

TransAstra aims to move 100-ton asteroid to stable orbit for processing (3/26)

https://spacenews.com/transastra-aims-to-move-100-ton-asteroid-to-stable-orbit-for-processing/
2•rmason•7m ago•0 comments

Compiling Strassen-Like Matrix Multiplication Algorithms to Fast CUDA Kernels

https://dl.acm.org/doi/10.1145/3808267
1•matt_d•7m ago•0 comments

EU AI: the fables we told ourselves (written by famous French AI researcher)

https://pleias.ai/blog/fable-eu
2•alecco•7m ago•1 comments

Today's Frontier AI companies will never exceed the AI capability frontier again

https://andrewtrask.substack.com/p/breaking-todays-frontier-ai-companies
2•williamtrask•9m ago•0 comments

Brad Feld – Does the Rule of 40 Work for Hardware?

https://feld.com/archives/2026/06/does-the-rule-of-40-work-for-hardware/
1•rmason•9m ago•0 comments

The Case for Sunshine

https://www.econtalk.org/the-case-for-sunshine-with-rowan-jacobsen/
1•k2enemy•9m ago•0 comments

Linux Kernel vulnerability research toolkit

https://github.com/freedev-org/kernelvr
1•silva97•9m ago•0 comments

Zehn, a fuzzy finder for every prompt I've sent an AI agent

https://www.al3rez.com/building-zehn
1•speckx•11m ago•0 comments

Bundling of Microsoft Windows

https://en.wikipedia.org/wiki/Bundling_of_Microsoft_Windows
1•rolph•13m ago•0 comments

Protestware Xsnow

https://lists.debian.org/debian-devel/2026/06/msg00159.html
1•vbezhenar•13m ago•0 comments

Distributed Compaction in SlateDb

https://ryandielhenn.github.io/blog/distributed-compaction/
1•riccomini•16m ago•0 comments

Jerry Gretzinger's map of a place, 40 years of "analogue generative art" [video]

https://www.youtube.com/watch?v=Is8N7B9b0GQ
1•embedding-shape•17m ago•0 comments

Windows 1.0 and the WinAPI, 40 years later

https://www.osnews.com/story/145300/windows-1-0-and-the-winapi-40-years-later/
1•naves•17m ago•0 comments

KPMG Withdraws AI Report After Hallucination Scandal

https://www.techbuzz.ai/articles/kpmg-withdraws-ai-report-after-hallucination-scandal
1•Vaslo•18m ago•0 comments

The JIT of PHP 8

https://centamori.com/index.php?slug=the-jit-of-php-8&amp;lang=en
1•speckx•18m ago•0 comments

The researchers who built AI-generated DNA just raised $50M to reinvent biology

https://fortune.com/2026/06/15/exclusive-ai-dna-radical-numerics-eric-nguyen-biology-biodefense-d...
1•boldlybold•21m ago•0 comments

Utah uses AI to find 25,000 more storm drains in fight against mosquitoes

https://ksltv.com/local-news/mosquito-utah-ai-storm/917501/
1•atarian•23m ago•0 comments

Show HN: Claude Token Analyzer: a token "screen-time" report

1•danmeier•26m ago•0 comments

The Alaska Server

https://serialport.org/blog/the-alaska-server/
5•speckx•28m ago•0 comments

The AI Price War Is Here, Piling Pressure on OpenAI and Anthropic

https://www.wsj.com/tech/ai/the-ai-price-war-is-here-piling-pressure-on-openai-and-anthropic-86e1...
2•AnodicElegy•29m ago•0 comments

Agentjacking: Fake error reports hijack Claude Code and Cursor into running code

https://thenextweb.com/news/agentjacking-ai-coding-agents-sentry
2•nryoo•30m ago•1 comments

Around 200 Stanford students walk out as Google CEO takes stage

https://www.sfgate.com/tech/article/sundar-pichai-stanford-commencement-22304888.php
15•pera•31m ago•1 comments

Placing

https://agovtman.substack.com/p/placing
1•jjar•31m ago•0 comments

Multi-stop flight plan router and visualizer

https://hopwhere.com/
1•AlexDevPitot•31m ago•1 comments