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

The context window is not your database

https://hornet.dev/blog/the-context-window-is-not-your-database
1•handfuloflight•2m ago•0 comments

LexisNexis confirms data breach as hackers leak stolen files

https://www.bleepingcomputer.com/news/security/lexisnexis-confirms-data-breach-as-hackers-leak-st...
1•ghostoftiber•3m ago•0 comments

Show HN: SysNav – An Intelligent Cockpit for DevOps (Local-First)

https://www.sysnav.ai/
1•sys_ravi•3m ago•0 comments

Show HN: Mind-mem – Zero-infra agent memory with 19 MCP tools (BM25+vector+RRF)

https://github.com/star-ga/mind-mem
1•STARGA•3m ago•1 comments

What Military Drones Can Teach Self-Driving Cars

https://spectrum.ieee.org/military-drones-self-driving-cars
1•oldnetguy•3m ago•0 comments

Book Review: Why Are the Prices So Damn High? (2019)

https://srconstantin.wordpress.com/2019/06/28/book-review-why-are-the-prices-so-damn-high/
1•surprisetalk•3m ago•0 comments

From Fargo to Zebra

https://cendyne.dev/posts/2026-02-27-from-fargo-to-zebra.html
1•surprisetalk•3m ago•0 comments

A New Map of Human Experience [video]

https://www.youtube.com/watch?v=r0QY2_Ej32Q
1•surprisetalk•3m ago•0 comments

Mac Themes Garden

https://macthemes.garden/
1•surprisetalk•3m ago•0 comments

Mesa's KosmicKrisp Vulkan-on-Metal Achieves MoltenVK Feature Parity

https://www.phoronix.com/news/KosmicKrisp-Parity
1•PaulHoule•4m ago•0 comments

How Electrical Engineers Fight a War

https://spectrum.ieee.org/repair-ukraine-power-grid
1•oldnetguy•5m ago•0 comments

From $30 to $3: Building My Own AI Chat Platform

https://www.matthew-hre.com/writing/building-bobrchat
2•matthew_hre•5m ago•0 comments

Gemini 3.1 Flash-Lite Preview

https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-lite-preview
1•vincelt•6m ago•0 comments

Barry's Borderpoints

https://barrysborderpoints.com/
1•bookofjoe•6m ago•0 comments

Watershed Moment for AI–Human Collaboration in Math Proof Verification

https://spectrum.ieee.org/ai-proof-verification
1•oldnetguy•6m ago•0 comments

Show HN: I built an AI Agent skill translation and refactoring tool

1•nicholas_pw•6m ago•1 comments

How Many Countries Has the US Bombed Since 2001, and How Much Has It Cost?

https://www.aljazeera.com/news/2026/3/3/how-many-countries-has-the-us-bombed-since-2001-and-how-m...
2•karakoram•6m ago•0 comments

Agent Pro – Automate your desktop from your phone (no setup)

1•ypadamat•6m ago•0 comments

The Longing (1999)

https://www.cluetrain.com/book/longing.html
1•herbertl•7m ago•0 comments

Fed Pricing Reveals Market Expectations About the AI Adoption Pace

https://www.apolloacademy.com/fed-pricing-reveals-market-expectations-about-the-ai-adoption-pace/
1•akyuu•7m ago•0 comments

Show HN: IronCurtain: A secure* runtime for AI agent loops

https://github.com/provos/ironcurtain
1•nielsprovos•8m ago•1 comments

Coding with agents feels like a chess simul

https://tobeva.com/articles/chess-simul/
1•pbw•8m ago•0 comments

Every Electric will pay you to use a battery

https://www.greenjuice.wtf/every-electric/
1•DamonHD•9m ago•0 comments

Next-Token Predictor Is an AI's Job, Not Its Species

https://www.astralcodexten.com/p/next-token-predictor-is-an-ais-job
1•fulafel•9m ago•0 comments

Show HN: Stop Overpaying for Digital Services, Find Cheap App Subscription Price

https://www.findcheapsubs.com
1•tatefinn•10m ago•0 comments

Labor Secretary's Top Aides Forced Out

https://www.nytimes.com/2026/03/03/us/politics/labor-secretarys-top-aides-forced-out.html
2•duxup•11m ago•0 comments

Schema Diagrams: Bi-Di Visualization for the Schema Languages That Need It Most

https://www.chiply.dev/post-schema-diagrams
1•chiply•11m ago•0 comments

Compassdle

https://compassdle.blendaddict.com/
1•blendaddict•11m ago•0 comments

Cold Comforts

https://asenseofwander.substack.com/p/cold-comforts
1•herbertl•12m ago•0 comments

API for ring-lwe/module-lwe post-quantum

https://docs.open-encrypt.com
1•jacksongwalters•13m ago•1 comments