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.

Ask HN: What's good for VR these days, free and paid

2•razorbeamz•3m ago•0 comments

How Gambling Turned Your Feed into Slop

https://www.youtube.com/watch?v=Lw6gpYJzujE
3•flakespancakes•10m ago•0 comments

How does anybody test phone applications that do location tracking?

https://twitter.com/LyleMakes/status/2063784301594853657
1•lylejantzi3rd•11m ago•1 comments

Atlas: Metadata-first proof chains for critical digital actions

https://github.com/rodriguezaa22ar-boop/atlas-trust-infrastructure/discussions/85
2•astra_omnia•14m ago•0 comments

I asked a few hundred builders how they decide it's time to launch

https://nicklaunches.com/blog/week-5-recap-june-07-2026/
2•nicklaunches•15m ago•0 comments

Against Taste

https://minutes.substack.com/p/against-taste
3•el_benhameen•20m ago•0 comments

Parallel Intelligence and Cognitive Warfare

https://jackson-t.com/parallel-intelligence-and-cognitive-warfare/
2•jthuraisamy•22m ago•0 comments

EMILIAProtocol-an open standard for human sign-off on irreversible agent actions

https://www.emiliaprotocol.ai/spec
2•EmiliaStar•23m ago•0 comments

Does the Web Use DNSSEC and Email Authentication? Scanning TopM Domains

https://www.pwndefend.com/2026/06/06/email-and-domain-security/
1•882542F3884314B•35m ago•0 comments

JavaNext Language Features

https://www.youtube.com/watch?v=fFocVFEe2TI
2•birdculture•37m ago•0 comments

Opus 4.8 Part 2: Model Welfare

https://thezvi.wordpress.com/2026/06/01/opus-4-8-part-2-model-welfare/
1•gmays•38m ago•0 comments

Show HN: Dense NYT style crossword puzzle generation with Rust and Claude

https://github.com/ekorbia/xword-pipeline
2•ekorbia•39m ago•0 comments

Self-Healing Materials: Mechanisms, Properties, and Applications

https://www.mdpi.com/2227-9717/14/9/1436
3•PaulHoule•41m ago•0 comments

Ask HN: What Happened to Hide?

2•what•43m ago•2 comments

Congress wants to tie the United States to Israel with this new legislation

https://www.theguardian.com/commentisfree/2026/jun/05/congress-us-israel-legislation
6•kldavis4•43m ago•0 comments

lab leak straight out of 2080 - time travel in html 5

https://rogmash.neocities.org/torusfield
1•rogmash•44m ago•1 comments

Show HN: Synstax – Smart Supplement Scheduling for iPhone

https://synstax.uppervoid.app/
1•reloading2008•45m ago•0 comments

The sneaky way companies get new chemicals into our food

https://www.npr.org/2026/05/29/nx-s1-5836552/fda-gras-food-chemicals-additives-rfk
4•nkzednan•46m ago•1 comments

BetterSSC is a Discord-style client for Substack Chat

https://github.com/inder/betterssc
1•inderrr•47m ago•1 comments

The Smallest Brain You Can Build: A Perceptron in Python

https://ranpara.net/posts/perceptron-explained-from-scratch/
20•DevarshRanpara•48m ago•2 comments

Eighteen

https://meyerweb.com/eric/thoughts/2026/06/07/eighteen/
2•darekkay•51m ago•0 comments

A Matter Wi-Fi Light Bulb in Rust on the Raspberry Pi Pico 2 W

https://github.com/melastmohican/rust-rpico2-embassy-examples
7•melastmohican•59m ago•0 comments

Guardrails around powerful AI models may be too late

https://www.politico.com/news/2026/06/07/frontier-ai-cybersecurity-china-race-00952786
2•jonbaer•1h ago•0 comments

Brain Appropriation

https://brainappropriation.org/
2•jonbaer•1h ago•0 comments

The AI Coding Bill Is a Headcount Problem in Disguise

https://abhishek-shankar.com/posts/ai-coding-bill-headcount-problem
2•catstyler•1h ago•0 comments

The Tao of Fish Swimming ▸ KITP Chalk Talk by Jimmy Liao [video]

https://www.youtube.com/watch?v=gZyMhlYmmVQ
1•marysminefnuf•1h ago•0 comments

AI Code Stitcher

https://github.com/ue-patcher/code_stitcher/releases
1•code_stitcher•1h ago•0 comments

How the "Perfectionism Pandemic" Is Crushing Young People

https://nautil.us/how-the-perfectionism-pandemic-is-crushing-young-people-1281569
3•ferryth•1h ago•0 comments

I built an AI agent that monitors job boards daily and emails you scored matches

https://www.matchmind.site
1•sinophine•1h ago•0 comments

Mysterious Next-Gen Aircraft Allegedly Spotted Near Area 51

https://theaviationist.com/2026/06/04/mysterious-next-gen-aircraft-allegedly-spotted-near-area-51/
5•billybuckwheat•1h ago•0 comments