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

Building with Claude Managed Agents – Sharp Edges

https://dipkumar.dev/posts/agents/claude-managed-agents-gotchas/
1•askhn1234_12•29s ago•0 comments

SOPS: Secrets OPerationS

https://getsops.io/
1•ankitg12•34s ago•0 comments

Notable Researchers Join $4B Effort to Build Self-Improving A.I

https://www.nytimes.com/2026/05/13/technology/recursive-superintelligence-funding-ai.html
1•andsoitis•1m ago•0 comments

Microsoft investigates Israeli military's use of Azure cloud storage

https://www.theguardian.com/technology/2025/aug/09/microsoft-israeli-military-azure-cloud-investi...
1•Gedxx•2m ago•0 comments

Simplifying our homepage helped increase trial signups by 84%

https://plausible.io/blog/homepage-edits-conversion-lift
1•gbourne•2m ago•0 comments

Mechanism Design for Quality-Preserving LLM Advertising

https://arxiv.org/abs/2605.10964
1•Brajeshwar•3m ago•0 comments

Nginx Rift: RCE via heap buffer overflow in rewrite module (CVE-2026-42945)

https://depthfirst.com/nginx-rift
1•andreamichi•3m ago•0 comments

Show HN: Learn algebra together, no AI slop, no ads or freemium, no registration

https://algebra.tutlm.com/
2•nik_norman•3m ago•0 comments

Show HN: Number Gacha, a gacha game distilled to its essence

https://isabisabel.com/gacha/
1•babel16•3m ago•0 comments

Any app on recent Android versions can leak certain traffic

https://mullvad.net/en/blog/any-app-on-recent-android-versions-can-leak-certain-traffic
1•Refreeze5224•5m ago•0 comments

Burn – K8s cost waste by namespace and pod. Just kubectl, no deploy

https://github.com/tanrikuluozlem/burn
2•cad•5m ago•0 comments

New poll shows what San Francisco residents really think about Waymo cars

https://www.sfchronicle.com/sf/article/waymo-car-san-francisco-22253180.php
1•mikhael•7m ago•0 comments

Blink – AI Assistant

https://blink-oi.vercel.app
1•Pascal1997•7m ago•0 comments

Mercury

https://mercurylang.org/
1•tosh•7m ago•0 comments

We may be entering a second axial age

https://www.noemamag.com/we-may-be-entering-a-second-axial-age/
1•hirpslop•7m ago•0 comments

Mount SFTP/WebDAV in Finder Using File Provider API

https://www.forethought-studio.com/steadymount/
1•forethought-s•9m ago•0 comments

Perfect Timing, Big Payouts: Insider Trading Red Flags Emerge on Polymarket

https://www.nytimes.com/2026/05/13/technology/polymarket-insider-trading.html
1•sbulaev•10m ago•0 comments

Microsoft’s new multi-model agentic security system tops industry benchmark

https://www.microsoft.com/en-us/security/blog/2026/05/12/defense-at-ai-speed-microsofts-new-multi...
1•doomroot13•10m ago•0 comments

US lawmakers demand answers from Instructure after Canvas data breaches

https://techcrunch.com/2026/05/13/us-lawmakers-demand-answers-from-instructure-after-canvas-data-...
2•speckx•12m ago•0 comments

Show HN: Endpoint Context Protocol – Browsers get HTML, AI agents get Markdown

https://endpointcontext.io
2•devconcierge•13m ago•0 comments

Anthropic, OpenAI tokens plunge as firms say pre-IPO share transfers are invalid

https://www.coindesk.com/markets/2026/05/13/anthropic-openai-tokens-plunge-nearly-40-as-ai-firms-...
1•SilverElfin•15m ago•0 comments

Search our documentation by meaning, not keywords

https://www.raspberrypi.com/news/search-our-documentation-by-meaning-not-keywords/
1•Brajeshwar•16m ago•0 comments

Nostalgebraist's Hydrogen Jukeboxes

https://www.astralcodexten.com/p/nostalgebraists-hydrogen-jukeboxes
1•Ariarule•16m ago•0 comments

Ask HN: Anyone replaced enterprise email marketing with something self-built?

1•A_Duck•16m ago•0 comments

Kickstarter Is Forced to Ban Adult Content by Payment Processors

https://kotaku.com/kickstarter-is-the-latest-platform-seemingly-forced-to-ban-adult-content-by-pa...
23•stalfosknight•17m ago•5 comments

Hantavirus Update–25-Year-Old on Plane with Infected Passenger Has Symptoms

https://www.newsweek.com/hantavirus-dutch-doctors-isolate-rfk-jr-says-situation-under-control-119...
2•SilverElfin•17m ago•0 comments

Show HN: Polar Balance – a bipolar mood tracker I built for my wife

https://grayconsultingmanagement.com/PolarBalance/
2•natali_gray•18m ago•0 comments

Dietrich Bonhoeffer

https://en.wikipedia.org/wiki/Dietrich_Bonhoeffer
3•petethomas•18m ago•0 comments

Build Long-running AI agents that pause, resume, and never lose context with ADK

https://developers.googleblog.com/build-long-running-ai-agents-that-pause-resume-and-never-lose-c...
1•smooke•18m ago•0 comments

The Systems That Outlive Their Creators

https://hackernoon.com/the-systems-that-outlive-their-creators
2•smooke•20m ago•0 comments