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.

A True Life Hack: What Physical 'Life Force' Turns Biology's Wheels?

https://www.quantamagazine.org/what-physical-life-force-turns-biologys-wheels-20260420/
1•Prof_Sigmund•2m ago•0 comments

Show HN: One board with tasks for all your projects

https://kanban.wtf
1•przemekdz•3m ago•0 comments

Show HN: Learn languages by tilting, shaking, and smiling at your phone

https://sensonym.com
2•mparas•3m ago•1 comments

Fossil Fuels

https://ourworldindata.org/fossil-fuels
1•leonidasrup•4m ago•0 comments

Granite-4.0-Tiny-Preview

https://huggingface.co/ibm-granite/granite-4.0-tiny-preview
1•handfuloflight•5m ago•0 comments

Your hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
1•tobr•6m ago•0 comments

Show HN: Agensi – Curated marketplace for AI agent skills (SKILL.md)

https://www.agensi.io
1•Samuellrose•7m ago•0 comments

Locki v2 – Zero-knowledge text encryption inside any web app

https://lockisecurity.com/en
2•dtlnv•8m ago•0 comments

I built an AI SRE in 60mins, you should too

https://www.gouthamve.dev/i-built-an-ai-sre-in-60mins-you-should-too/
1•gouthamve•9m ago•0 comments

Two Months in Google OAuth Verification Hell

https://zencapital.substack.com/p/two-months-in-google-oauth-verification
2•zenincognito•10m ago•0 comments

Paris Blockchain Week 2026: Four Things the Main Stage Didn't Tell You

https://irishtechnews.ie/paris-blockchain-week-2026-four-key-takeaways/
1•ybelkin•12m ago•0 comments

Phototypesetting with the Berthold Diatype [video]

https://www.youtube.com/watch?v=76qwCF6ThLs
1•altilunium•14m ago•0 comments

Financial Data Integration: A Practical Guide

https://blog-2026-04-27-hidden-costs.layline-web-2026.pages.dev/resources/blog/2026-04-20-financi...
1•tandrew•18m ago•0 comments

'Robots don't bleed': Ukraine sends machines into battle in place of humans

https://www.cnn.com/2026/04/20/europe/robots-ukraine-battlefield-drones-intl-cmd
2•breve•19m ago•0 comments

Linotype Demonstration [video]

https://www.youtube.com/watch?v=MI2sYvUb4_0
1•altilunium•22m ago•0 comments

Personal data leak: French document agency ANTS hit by cyberattack

https://www.connexionfrance.com/news/personal-data-leak-french-document-agency-hit-by-cyberattack...
1•RockstarSprain•28m ago•0 comments

Monitoring CPU and Memory on Your VPS with AppSignal

https://blog.appsignal.com/2026/04/21/monitoring-cpu-and-memory-on-your-vps-with-appsignal.html
1•malinavojvodic•32m ago•0 comments

Show HN: Chrome extension for always on Work Assistant (ActorDo)

https://actordo.com/chrome-extension/
1•websku•33m ago•0 comments

Show HN: Anvil-uplink-CLI – agent-safe terminal CLI for Anvil.works apps

https://github.com/matshoppenbrouwers/anvil-uplink-cli
1•hoponthestack•37m ago•0 comments

Show HN: My AI Native Obsidian Setup

https://alexanderweichart.de/4_Projects/obsidian-setup-2026/My-AI-native-Obsidian-Setup
3•surrTurr•38m ago•0 comments

Republican Rep. Obsessed with Hating Muslims Unveils Mamdani Act

https://newrepublic.com/post/209272/republican-rep-chip-roy-mamdani-act-muslims-socialists-immigr...
1•handfuloflight•42m ago•0 comments

OpenMythos: A looped transformer take on how Claude Mythos might work

https://firethering.com/openmythos-open-source-claude-mythos-reconstruction/
2•steveharing1•43m ago•1 comments

China's energy fortress was built to withstand just this type of oil shock

https://www.cnn.com/2026/04/20/china/china-energy-security-global-oil-crisis-iran-intl-hnk
7•breve•51m ago•1 comments

Key Front End Architectural Patterns for Complex Applications

https://sometechblog.com/posts/frontend-architecture-decisions/
1•l5870uoo9y•51m ago•0 comments

PhantomChat – Post-quantum messenger with Monero-style stealth addresses

https://github.com/cengo441337-a11y/phantomchat
2•n0l3x•53m ago•0 comments

Modeling Sparse and Bursty Vulnerability Sightings

https://arxiv.org/abs/2604.16038
1•cedricbonhomme•57m ago•0 comments

The History of SuperTuxKart

https://supertuxkart.net/History_of_SuperTuxKart
1•mdtrooper•58m ago•0 comments

Digital Omnibus reality check: 83.5% of access requests not properly answered

https://noyb.eu/en/digital-omnibus-reality-check-835-access-requests-not-properly-answered
2•latexr•59m ago•0 comments

Show HN: Static Flipbooks of Complex Media

https://flipbook.browserbox.io/
1•keepamovin•1h ago•0 comments

Claude for Equity Research

https://www.asiancenturystocks.com/how-to-use-claude-for-equity-resear/
1•fritz123•1h ago•0 comments