frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Tattoo the Earth, one pixel at a time

https://earth.tattoo/
2•whatsupdog•1m ago•0 comments

Did Iran hack water systems in seven US states?

https://www.bbc.com/news/articles/c934dq95zpgo
1•dabinat•4m ago•0 comments

As a Windows user, it's a surreal way to install a program

https://unsung.aresluna.org/as-a-windows-user-its-a-very-surreal-way-to-install-a-program/
1•allenc•5m ago•0 comments

The 11 Types of Washington, DC, Metro Station Architecture (2018)

https://ggwash.org/view/68565/metro-has-11-types-of-station-architecture.-learn-them-all-with-thi...
2•quuxplusone•16m ago•0 comments

Show HN: Benzi – An AI coding assistant grounded in a live code map

https://benzi.fly.dev/
1•showhz•21m ago•0 comments

Spherical Codes Application in Fiber Optics (2024)

https://arxiv.org/abs/2404.04776
1•silver92bullet•24m ago•0 comments

The AI Boom Is Transforming the American Economy Beyond Recognition

https://www.wsj.com/economy/the-ai-boom-is-transforming-the-american-economy-beyond-recognition-c...
3•mapping365•29m ago•1 comments

At least we're warming the planet for a good reason

https://old.reddit.com/r/codex/comments/1vev2fl/vibecoded_ios_app_reached_35k_loc_and_i_no_longer/
2•johnnyApplePRNG•39m ago•1 comments

Real-time LuaTeX: Recompiling large documents in 1ms [video]

https://www.youtube.com/watch?v=C1gpjPm-Rns
1•eigenblake•42m ago•0 comments

Lego deploys Hubble Space Telescope as detailed desktop model

https://www.collectspace.com/news/news-080226a-lego-icons-hubble-space-telescope-details.html
1•Tomte•44m ago•1 comments

Startup Marketing 101

https://skeptrune.substack.com/p/startup-marketing-101
1•iacguy•46m ago•0 comments

ATS Resume Scorer and Cover Letter Generator – Matchflo

https://apps.apple.com/us/app/matchflo-ai-resume-tailor/id6786483718?mt=12
1•jsrothwell•47m ago•1 comments

Advanced Harmonic Analysis in Roundness Metrology

https://www.taylor-hobson.com/resource-center/blog/2020/september/advanced-harmonic-analysis-in-r...
1•num42•51m ago•0 comments

ScalarDB: Universal HTAP Engine

https://github.com/scalar-labs/scalardb
2•feeblefakie•52m ago•0 comments

Personal taste fell out of fashion

https://www.theguardian.com/media/2026/jun/14/have-i-been-influenced-personal-taste-out-of-fashio...
2•herbertl•54m ago•1 comments

AI Agent Ecosystem Trends 2026 H1: Analysis of 15K+ Agents Submission

https://www.deepnlp.org/blog/ai-agent-marketplace-intelligence-report-2026-h1-trends-insights-eco...
1•aiagenta2z•56m ago•1 comments

Virtual Mac on Jailbroken M1/M2 iPad

https://github.com/nfzerox/VirtualMacOniPad
1•tech234a•59m ago•0 comments

Why Estonians invite strangers into their back gardens each summer

https://www.bbc.com/travel/article/20260731-why-estonians-invite-strangers-into-their-backyards-e...
2•koolhead17•1h ago•0 comments

I Helped Run Lululemon. Companies Need to Stop Kidding Themselves About A.I

https://www.nytimes.com/2026/08/03/opinion/ai-hype-tech-layoffs.html
1•joebuckwilliams•1h ago•5 comments

I asked Claude Opus to recreate The Matrix opening scene in Lego

https://marksmayo.github.io/lego-matrix/
3•beatthatflight•1h ago•4 comments

Tinytouch: Fingerprint Based Authentication for Apple

https://github.com/zimengxiong/tinytouch
1•Quizzical4230•1h ago•0 comments

Show HN: Manhwa AI – Create webtoons with consistent AI characters

https://www.manhwaai.net
1•era4d•1h ago•2 comments

Superbad.com if it came from the mind of an AI

https://stuff.do/
1•rogerdickey•1h ago•1 comments

JsxCore – A TSX/JSX View Engine for Asp.net Core

https://github.com/davidwhitney/JsxCore
1•vyrotek•1h ago•0 comments

Token use for exact prompt across models

https://twitter.com/jpschroeder/status/2081751862768717956
2•kappi•1h ago•1 comments

Telegram says app restored on Apple's App Store

https://www.reuters.com/business/retail-consumer/telegram-says-app-restored-apples-app-store-2026...
10•mfiguiere•1h ago•0 comments

A modern Saga/TCC orchestration engine for microservices

https://github.com/scalar-labs/scalardb-saga
2•feeblefakie•1h ago•0 comments

Show HN: Velokey – One Task API for Kling, Veo, Seedance, and Sora

https://velokey.ai
1•PaiDxng•1h ago•0 comments

Socket.dev warns about Rust Tokio library obfuscation

https://socket.dev/cargo/package/tokio
2•cwaffles•1h ago•0 comments

Eval-driven development: Lessons from evaluating GenAI at scale

https://medium.com/airbnb-engineering/eval-driven-development-lessons-from-evaluating-genai-at-sc...
3•simonpure•1h ago•0 comments