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

Switzerland hosts 'CERN of semiconductor research'

https://www.swissinfo.ch/eng/swiss-ai/switzerland-hosts-cern-of-semiconductor-research/91015332
1•teleforce•29s ago•0 comments

Penguin to sue OpenAI over ChatGPT version of German children's book

https://www.theguardian.com/technology/2026/mar/31/penguin-sue-openai-chatgpt-german-childrens-bo...
2•thm•2m ago•0 comments

OpenUMA – bring Apple-style unified memory to x86 AI inference (Rust, Linux)

https://github.com/hamtun24/openuma
1•hamtun24•2m ago•0 comments

Hintrix – Web scraping API that returns content and AI search audit

https://hintrix.com/
1•slreport•3m ago•0 comments

The plumbing behind Claude Code

https://siddhantkhare.com/writing/the-plumbing-behind-claude-code
1•speckx•4m ago•0 comments

University researchers develop way to measure how sleeps cleans the brain

https://www.oulu.fi/en/news/sleep-cleans-brain-university-oulu-researchers-develop-fast-non-invas...
1•thunderbong•6m ago•0 comments

Can 8k Bouncy Springs Hide Secret Messages? (Tutte's Theorem) [video]

https://www.youtube.com/watch?v=3YlC_W5myxg
1•zeristor•7m ago•0 comments

SSH certificates: the better SSH experience

https://jpmens.net/2026/04/03/ssh-certificates-the-better-ssh-experience/
1•jandeboevrie•9m ago•0 comments

AllyHub – AI agent that builds reusable skills from every task it runs

https://allyhub.com
2•chloecv•11m ago•0 comments

Category Theory Illustrated – Types

https://abuseofnotation.github.io/category-theory-illustrated/06_type/
1•boris_m•12m ago•0 comments

I built an AI data extraction engine and E2E encrypted SMS router in Rust

1•adibite•19m ago•0 comments

Tree Calculus

https://treecalcul.us/
1•tosh•20m ago•0 comments

Show HN: European alternatives to Google, Apple, Dropbox and 120 US apps

https://only-eu.eu/en/
2•madman_dev•24m ago•0 comments

NHS staff refusing to use FDP over Palantir ethical concerns

https://www.freevacy.com/news/financial-times/nhs-staff-refusing-to-use-fdp-over-palantir-ethical...
2•chrisjj•25m ago•0 comments

April 2026 TLDR Setup for Ollama and Gemma 4 26B on a Mac mini

https://gist.github.com/greenstevester/fc49b4e60a4fef9effc79066c1033ae5
2•greenstevester•27m ago•0 comments

Design Optics with Python

https://www.optiland.org/
2•pppone•36m ago•0 comments

HarfBuzz Slug Support with WebGL

https://harfbuzz.github.io/hb-gpu-demo/
1•mcraiha•36m ago•0 comments

Show HN: Anonymous Chat Channels

https://kraa.io/kraa/trees
1•levmiseri•38m ago•3 comments

Show HN: Stashpin – Pinterest downloader for videos and boards

https://stashpin.com
1•aitooltrek-com•40m ago•0 comments

NHS staff boycott Palantir's data platform over ethical concerns

https://www.ft.com/content/dbb67083-bd1d-46e9-b196-1438d54c5795
5•macleginn•42m ago•0 comments

Show HN: Apfel – The free AI already on your Mac

https://apfel.franzai.com
3•franze•46m ago•2 comments

Catching macOS Stealers in the Wild

https://objective-see.org/blog/blog_0x88.html
2•speckx•49m ago•0 comments

Flow – Focus Deeper, Longer

https://play.google.com/store/apps/details?id=com.get.flow_app&hl=en_US
1•K_A_P•53m ago•0 comments

Gemma 4 makes local AI agents practical

https://firethering.com/gemma-4-local-ai-agents/
3•steveharing1•54m ago•0 comments

AI's fluency in other languages hides a Western worldview that can mislead users

https://theconversation.com/ais-fluency-in-other-languages-hides-a-western-worldview-that-can-mis...
6•1659447091•59m ago•0 comments

Tried to Buy a Pint, Finding a Trojan: My First Malware Analysis

https://blog.michaelrbparker.com/post/17
1•birdculture•59m ago•0 comments

A database of analog cameras that can be 3D printed

https://printed.analogcamera.space/
2•thomasjb•59m ago•0 comments

Artemis II astronaut finds two Outlook instances running on computers

https://www.tomshardware.com/software/microsoft-office/artemis-ii-astronaut-finds-two-outlook-ins...
1•doener•1h ago•1 comments

Proton Meet Isn't What They Told You It Was

https://www.sambent.com/proton-meet-isnt-what-they-told-you/
66•bundie•1h ago•23 comments

Say No to ZeroVer: Start with 1.0.0

https://blog.nytsoi.net/2026/04/03/say-no-to-zero-ver/
1•thomasjb•1h ago•0 comments