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

I'm tired of Hacker News slop

https://blog.absurdpirate.com/im-tired-of-hacker-news-slop/
1•speckx•59s ago•0 comments

2026 Observability Predictions – Part 9

https://www.apmdigest.com/2026-observability-predictions-9
1•gpi•1m ago•0 comments

Flipper Zero and Raspberry Pi Banned from NYC Mayoral Inauguration

https://www.transition2025.com/inauguration
2•MisterTea•1m ago•1 comments

Windows 11 hack: Higher SSD speeds with new Microsoft NVMe driver

https://www.notebookcheck.net/Windows-11-hack-Higher-SSD-speeds-with-new-Microsoft-NVMe-driver.11...
3•akyuu•5m ago•0 comments

Coding Agent Is a Slot Machine

https://blog.kvit.app/posts/variance-claude-vibe/
2•skolos•5m ago•0 comments

Sun's gravitational lens could reveal alien planets' surfaces – Science – AAAS

https://www.science.org/content/article/sun-s-gravitational-lens-could-reveal-alien-planets-surfaces
2•rbanffy•7m ago•0 comments

Setting Up the AWS SDK for Rust

https://rup12.net/posts/learning-rust-configuring-the-aws-sdk/
2•ruptwelve•11m ago•0 comments

List of Programmers

https://en.wikipedia.org/wiki/List_of_programmers
2•andsoitis•15m ago•1 comments

How to Submit a ChatGPT App

https://www.adspirer.com/blog/how-to-submit-chatgpt-app
2•amekala•17m ago•0 comments

AI Feynman: A physics-inspired method for symbolic regression (2020)

https://www.science.org/doi/pdf/10.1126/sciadv.aay2631
2•lisper•17m ago•0 comments

The Comprehensive Cognition Blog

https://mateolafalce.github.io/
3•lafalce•19m ago•0 comments

Blasts from the past: The Soviet ape-man scandal (2008)

https://www.newscientist.com/article/mg19926701-000-blasts-from-the-past-the-soviet-ape-man-scandal/
2•cwwc•23m ago•0 comments

Call of Duty Co-Creator and EA Executive Vince Zampella Killed in Car Accident

https://www.ign.com/articles/call-of-duty-co-creator-respawn-co-founder-and-ea-executive-vince-za...
5•andsoitis•23m ago•1 comments

Qwen-Image-Layered: Layered Decomposition for Inherent Editablity

https://github.com/QwenLM/Qwen-Image-Layered
2•_____k•24m ago•0 comments

It's Always TCP_nodelay

https://brooker.co.za/blog/2024/05/09/nagle.html
3•eieio•24m ago•0 comments

Write code that you can understand when you get paged at 2am (2024)

https://www.pcloadletter.dev/blog/clever-code/
2•birdculture•25m ago•0 comments

The Solar System Loses an Ocean World

https://www.universetoday.com/articles/the-solar-system-loses-an-ocean-world
2•rbanffy•25m ago•0 comments

Anatomy of a Coding Agent: A step-by-step illustration

https://marginlab.ai/blog/anatomy-of-coding-agent/
2•qwesr123•26m ago•0 comments

When Were Things the Best?

https://thezvi.substack.com/p/when-were-things-the-best
2•paulpauper•26m ago•0 comments

Cultural Variety Is Crazy Hard to Fix

https://www.overcomingbias.com/p/cultural-variety-is-crazy-hard-to
2•paulpauper•27m ago•0 comments

2025 – Immich's Year in Review

https://immich.app/blog/2025-year-in-review
4•altran1502•27m ago•0 comments

Is the golden age of Indie software over?

https://successfulsoftware.net/2025/12/22/is-the-golden-age-of-indie-software-over/
3•hermitcrab•28m ago•0 comments

Reolink RLC-410-5MP IP camera reverse engineered technical details

https://github.com/hn/reolink-camera
2•hn___•29m ago•0 comments

Starlink in the crosshairs: How Russia could attack Elon Musk's conquer of space

https://www.adn.com/nation-world/2025/12/22/starlink-in-the-crosshairs-how-russia-could-attack-el...
3•rolph•30m ago•0 comments

Production Materials: Gotham City Streets Set from "Batman Returns" (2014)

http://www.1989batman.com/2014/12/production-materials-warner-brothers.html
3•exvi•31m ago•0 comments

Feds demand compromise on Colorado River while states flounder

https://nevadacurrent.com/2025/12/22/feds-demand-compromise-on-colorado-river-states-flounder-des...
5•mooreds•31m ago•0 comments

Biohybrid Tendons Enhance the Power-to-Weight Ratio and Modularity of Robots

https://advanced.onlinelibrary.wiley.com/doi/10.1002/advs.202512680
3•PaulHoule•32m ago•0 comments

Snowflake Postgres Is Now Available in Public Preview

https://www.snowflake.com/en/engineering-blog/postgres-public-preview/
2•craigkerstiens•32m ago•0 comments

My 2025 in Production in Review

https://newsletter.vickiboykis.com/archive/my-2025-in-production-in-review/
2•mooreds•33m ago•0 comments

Ifrro member Kopinor signs agreement on newspaper content for AI in Norway

https://ifrro.org/page/article-detail/ifrro-member-kopinor-signs-historic-agreement-on-newspaper-...
2•amarble•34m ago•0 comments