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.

Show HN: An SSR Java framework for real-time user interfaces and AI agents

https://github.com/vadimv/server-components
1•v4d1mv•5m ago•0 comments

Ask vs. Guess Culture

https://jeanhsu.substack.com/p/ask-vs-guess-culture
1•computomatic•5m ago•0 comments

Things I Think I Think... Preferring Local OSS LLMs

https://blogs.newardassociates.com/blog/2026/titit-local-ai.html
1•zdw•6m ago•0 comments

Italian bill proposes curbs on social media addiction

https://www.reuters.com/legal/litigation/italian-bill-proposes-curbs-social-media-addiction-2026-...
1•1vuio0pswjnm7•9m ago•0 comments

Searches for Piracy Increased over the Past 5 Years

https://trends.google.com/trends/explore?date=today%205-y&geo=US&q=piracy&hl=en-US
1•Cider9986•9m ago•0 comments

Musk: SpaceX IPO to fund space data centers. MSFT undersea fail sounds warning

https://www.reuters.com/business/aerospace-defense/spacexs-orbital-data-centers-could-face-same-h...
1•1vuio0pswjnm7•10m ago•0 comments

Show HN: JavaScript Obfuscator

https://github.com/nstarke/egodeath
1•bootbloopers•11m ago•0 comments

The Math of Friday 13th

https://www.scientificamerican.com/article/why-friday-the-13th-is-a-mathematical-inevitability/
1•pixiemaster•11m ago•0 comments

Show HN: Tileserver-RS – Tile Server in Rust with MapLibre Native Rendering

https://github.com/vinayakkulkarni/tileserver-rs
2•vinayakkulkarni•16m ago•0 comments

I rebuilt the same project after 15 years – what changed in web dev

https://bamwor.com/en/news/rebuilt-same-project-after-15-years
1•manudaro•17m ago•0 comments

Embracing AI with Claude's C Compiler

https://chipsandcheese.com/p/embracing-ai-with-claudes-c-compiler
1•signa11•18m ago•0 comments

Pair Programming in the Age of Agents

https://mattwynne.net/pair-programming-in-the-age-of-agents
1•mattwynne•20m ago•0 comments

I built a programming language on the top of Node.js

https://github.com/dominexmacedon-dev/starlight-cli-script
1•dominexmacedon•23m ago•1 comments

Vietnamization (1969)

https://en.wikipedia.org/wiki/Vietnamization
1•ValentineC•30m ago•0 comments

Ask HN: Why is almost all of API documentation online?

1•triilman•31m ago•0 comments

RSL: Simple Licensing

https://rslstandard.org/
2•fagnerbrack•32m ago•0 comments

How to take down a US F-35 over Iran? Chinese engineer's tutorial goes viral

https://www.scmp.com/news/china/science/article/3348619/how-take-down-us-f-35-over-iran-chinese-e...
2•KnuthIsGod•34m ago•0 comments

What Agents Need Before They Handle Real Money

https://catenalabs.com/blog/what-agents-need-before-they-handle-real-money/
3•jorgereyna•40m ago•2 comments

It's time for the 'Sell painkillers, not vitamins' metaphor to die

https://www.pathsensitive.com/2023/09/its-time-for-painkillers-vitamins-die.html
2•zrkrlc•40m ago•0 comments

History Behind the SpaceX IPO

https://ioc.exchange/@muskfiles/116333241408716236
4•infinitewars•45m ago•2 comments

Chinese government bonds emerge as lone war haven

https://www.ft.com/content/72215587-4b6c-454c-85ff-6956132705d9
2•toomuchtodo•47m ago•0 comments

I watch most videos at single speed

https://liquidbrain.net/blog/single-speed/
1•kurinikku•48m ago•0 comments

Delve – Fake Compliance as a Service – Part II – Day 2 of 5

https://deepdelver.substack.com/p/delve-fake-compliance-as-a-service-98a
3•Garbage•49m ago•1 comments

Intro to Reality Pentesting

https://cptkj.substack.com/p/intro-to-reality-pentesting
1•curmudgeon22•51m ago•0 comments

iOS 27 Rumored to Feature Keyboard Upgrade

https://www.macrumors.com/2026/04/01/ios-27-upgraded-keyboard-rumor/
1•Tomte•1h ago•0 comments

Agent Self-Care: The Hidden CPU Demand Reshaping Software Engineering

https://codephysics.dev/articles/agent-self-care/
2•antonajp•1h ago•1 comments

The Lost Art of Baseball's Makeup Call

https://thespade.substack.com/p/the-lost-art-of-baseballs-makeup
1•duck•1h ago•0 comments

A Guide to the AI Tribes

https://micheljusten.substack.com/p/a-guide-to-the-ai-tribes
1•timshell•1h ago•0 comments

Salomi, a research repo on extreme low-bit transformer quantization

https://github.com/OrionsLock/SALOMI
6•Edward9055•1h ago•0 comments

Subscription bombing and how to mitigate it

https://bytemash.net/posts/subscription-bombing-your-signup-form-is-a-weapon/
23•homelessdino•1h ago•12 comments