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.

Meta Settles School Suit over Social Media, Averting Trial

https://www.bloomberg.com/news/articles/2026-05-21/meta-settles-school-suit-over-social-media-ave...
1•1vuio0pswjnm7•2m ago•0 comments

A simple and free Markdown editor

https://marina-md.pages.dev/
1•alllen•2m ago•0 comments

CloudNativePG and Crunchy PGO: an honest, opinionated comparison

https://www.gabrielebartolini.it/articles/2026/05/cloudnativepg-and-crunchy-pgo-an-honest-opinion...
1•bo0tzz•4m ago•0 comments

I poisoned a Hugging Face dataset and it stayed up for 6 months

https://vechron.com/2026/05/i-poisoned-a-hugging-face-dataset-and-it-stayed-up-for-6-months/
1•GeorgeWoff25•6m ago•0 comments

AlphaProof Nexus solves 9 Erdős problems and proves 44 sequence conjectures

https://cryptobriefing.com/deepmind-alphaproof-nexus-erdos-problems/
2•hackernj•7m ago•1 comments

AI companies use malware proxies to mount DDoS attacks on web sites

https://packetstream.io/scraping-at-scale-without-breaking-the-bank-a-guide-for-ai-startups/
1•fanf2•12m ago•0 comments

Ask HN: Do you have a colophon for your personal website?

3•susam•12m ago•2 comments

Tell HN: Google slightly changed its wordmark logo

2•exploraz•14m ago•0 comments

Stephen Colbert represented the worst of establishment liberalism

https://unherd.com/newsroom/stephen-colbert-represented-the-worst-of-establishment-liberalism/
2•sameers•14m ago•2 comments

The Primordial Credit Argument for Unconditional Basic Income (UBI)

https://scottsantens.substack.com/p/the-primordial-credit-argument-for
1•2noame•17m ago•0 comments

Kolhaam-Network: an unmoderated encrypted chat network in the BBS tradition

https://github.com/ronen-blumberg/kolhaam-network
1•stigma77•17m ago•0 comments

(An Opinionated) Site Colophon (2023)

https://brett.coulstock.id.au/site-colophon.html
1•Tomte•19m ago•0 comments

Luddite Lab Resource Hub

https://labor.dair-institute.org/
1•jkestner•24m ago•0 comments

I built an MCP server so you can ask Claude about your cloud/software bill

https://getnable.com/
1•chaandannn•25m ago•0 comments

Apple says Epic lawsuit shouldn't reshape App Store rules for all developers

https://techcrunch.com/2026/05/22/apple-says-epic-lawsuit-shouldnt-reshape-app-store-rules-for-al...
4•rebekkamikkoa•26m ago•1 comments

Google Acquires Zagat (2011)

https://googleblog.blogspot.com/2011/09/google-just-got-zagat-rated.html
1•azinman2•26m ago•0 comments

Steam Deck Software in 2026:Checking in with the Developers Behind the Ecosystem

https://gardinerbryant.com/steam-deck-software-in-2026/
2•ZeroCool2u•26m ago•0 comments

z386: An Open-Source 80386 Built Around Original Microcode

https://nand2mario.github.io/posts/2026/z386/
3•wicket•28m ago•0 comments

It took 2 years for GNOME Commander to migrate to Rust from C++

https://www.phoronix.com/news/GNOME-Commander-2.0
2•egorfine•30m ago•0 comments

Writing HTML by hand is easier than debugging your static site generator (2024)

https://logicgrimoire.wordpress.com/2024/07/01/writing-html-by-hand-is-easier-than-debugging-your...
2•Tomte•32m ago•0 comments

JK Rowling mansplained: A new podcast dives into her transformation

https://unherd.com/2026/05/jk-rowling-mansplained/
2•beetlegeese•35m ago•0 comments

Oura says it gets government demands for user data. Will it share how many?

https://this.weekinsecurity.com/oura-says-it-gets-government-demands-for-user-data-will-it-share-...
11•donohoe•44m ago•0 comments

Airbnb's Chesky Says US 'Misunderstanding' Use of Chinese Open-Source AI Models

https://www.bloomberg.com/news/articles/2026-05-20/airbnb-s-chesky-says-us-misunderstanding-use-o...
2•JSR_FDED•47m ago•2 comments

LLM's code is just untrusted text, until you validate it

https://hack8s.com/244/llms-code-is-just-untrusted-text-until-you-validate-it
1•justorius•47m ago•0 comments

Show HN: Fed.run – online collaborative Rust IDE and Markdown editor

https://fed.run
1•oinoom•48m ago•0 comments

Preventing AI agents from executing destructive terminal commands

https://github.com/7Majesty-M/terminal-guardian-mcp
1•majesty-m•48m ago•0 comments

Your Old Devices Depend on Dying Sensors. The Silicon Labs Incident Proves It

https://www.cambridge.org/engage/coe/article-details/6a054b304770e67d92e8c7a2
1•openrockets•48m ago•2 comments

We were building infra for OpenClaw, and today I just tried Hermes and holy shit

2•Stanlyya•49m ago•0 comments

Show HN: SimStream – code iOS apps from your phone by streaming the simulator

https://github.com/EliotAndres/SimStream
1•ea016•49m ago•0 comments

The Beauty of Tautologies

https://scottsumner.substack.com/p/the-beauty-of-tautologies
1•_laird•50m ago•0 comments