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.

How to Think about Parallel Programming: Not (Guy Steele Loop 2010) [video]

https://www.youtube.com/watch?v=dPK6t7echuA
1•tosh•49s ago•0 comments

Spanner Omni, a downloadable version of Google Spanner

https://cloud.google.com/blog/products/databases/introducing-spanner-omni
2•tanelpoder•3m ago•0 comments

Maryland to become first state to ban 'dynamic pricing' in grocery stores

https://www.yahoo.com/news/articles/maryland-become-first-state-ban-150854726.html
1•jonbaer•4m ago•0 comments

Pentagon pulls the plug on one of the military's most troubled space programs

https://arstechnica.com/space/2026/04/pentagon-pulls-the-plug-on-one-of-the-militarys-most-troubl...
2•neversaydie•6m ago•0 comments

AI and Teaching – The Brave New World

https://steveblank.com/2026/04/22/ai-and-teaching-the-brave-new-world/
2•zdw•6m ago•0 comments

AI Is Like SEO

https://www.bjnoel.com/posts/ai-is-like-seo/
2•speckx•7m ago•0 comments

Tampons as a Source of Exposure to Metal(loid)s

https://www.sciencedirect.com/science/article/pii/S0160412024004355
3•bpierre•8m ago•0 comments

Happy belated birthday: Twenty-five years of The Chronicles of George

https://bigdinosaur.org/happy-belated-birthday-twenty-five-years-of-the-chronicles-of-george/
2•lee_ars•9m ago•1 comments

Show HN: Interactive Guide to Cooperative Auctions

https://tinylvt.com/auction-guide
2•yumbaya•10m ago•0 comments

Shade: WebGPU Graphics Engine Demo

https://shade.company-named.com/examples/flying-world-01/
2•travnick•11m ago•1 comments

Critical Nginx UI auth bypass flaw now actively exploited in the wild

https://www.bleepingcomputer.com/news/security/critical-nginx-ui-auth-bypass-flaw-now-actively-ex...
1•thegdsks•12m ago•0 comments

Open Source Replacement for Bambu Studio's Network Plugin

https://github.com/ClusterM/open-bambu-networking
2•lame_lexem•12m ago•0 comments

Framework Laptop 13 Pro

https://frame.work/de/de/blog/introducing-framework-laptop-13-pro
2•flyaway123•12m ago•0 comments

Flickr: The First and Last Great Photo Platform

https://petapixel.com/2026/04/22/flickr-the-first-and-last-great-photo-platform/
4•Nrbelex•13m ago•0 comments

Audio converter that runs FFmpeg in WebAssembly

https://audioutils.com
2•daniher•13m ago•1 comments

CSAIL makes corpus of Olympiad problems publicly available

https://phys.org/news/2026-04-world-largest-olympiad-math-problems.html
3•bgilroy26•15m ago•0 comments

SpaceX says it will either buy Cursor for $60B or work with them for $10B

https://www.cnbc.com/2026/04/21/spacex-says-it-can-buy-cursor-later-this-year-for-60-billion-or-p...
2•amichae2•18m ago•0 comments

Sunsetting Roo Code (Extension, Cloud, and Router)

https://roocode.com/blog/sunsetting-roo-code-extension-cloud-and-router
2•fabi0•19m ago•0 comments

AI Tool Calls Should Fail at Compile Time, Not in Production

https://tanstack.com/blog/type-safe-provider-tools-tanstack-ai
3•bpierre•20m ago•0 comments

Epigenetic fingerprints tie early-onset colorectal cancer to pesticides

https://www.nature.com/articles/s41591-026-04342-5
3•schnitzelstoat•21m ago•1 comments

Software Eats Its Own

https://om.co/2026/04/22/software-eats-its-own/
3•speckx•22m ago•0 comments

Show HN: DateDrop – a macOS menu-bar app for inserting formatted dates

https://bendansby.com/datedrop/
2•webwielder2•22m ago•0 comments

Two Belgian Cryptographers Changed the Way the World Keeps Secrets

https://mediaden.ca/blog/aes-256-gcm
2•ryanisnan•23m ago•1 comments

Use given/when/then Specs avoid Spaghetti Code

https://www.startdataengineering.com/post/using-llms-for-data-engineering/#step-1-define-requirem...
2•articsputnik•23m ago•0 comments

Pace of NIH Funding Slows Further in Trump's Second Year

https://www.nytimes.com/2026/04/22/science/trump-nih-funding-research.html
4•mikhael•23m ago•0 comments

Andon Cafe – A cafe in Stockholm run by AI

https://andon.cafe/
2•armcat•24m ago•0 comments

Claude Code is not making your product better

https://ethanding.substack.com/p/claude-code-is-not-making-your-product
4•bblcla•24m ago•0 comments

Show HN: MacYaps – Battery dying? WiFi gone? Your Mac talks back

https://macyaps.com/
2•joeyhachem•24m ago•0 comments

Lazarus: How North Korea uses AI to industrialize attacks on developers

https://expel.com:443/blog/inside-lazarus-how-north-korea-uses-ai-to-industrialize-attacks-on-dev...
3•MBCook•26m ago•0 comments

std::accumulate: Exploring an Algorithmic Empire (2016)

https://www.youtube.com/watch?v=B6twozNPUoA
2•tosh•28m ago•0 comments