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.

Vibe code your next presentation

https://www.variant.art/
1•harpooned•3m ago•1 comments

The Bureau Outlives the Engine

https://uaxd.fr/dispatches/the-bureau-outlives-the-engine.html
1•enoch_cg•11m ago•0 comments

A Claude Code and Codex Skill for Deliberate Skill Development

https://github.com/DrCatHicks/learning-opportunities
2•cdrnsf•20m ago•0 comments

NYC*Bug May 2026: The Design of Unix Shell, with Stephen R. Bourne

https://www.youtube.com/watch?v=Anr2UAs7ifY
1•bluesounddirect•20m ago•1 comments

Andrew's Layoff Checklist

https://docs.google.com/document/d/1FaDxhnCXsneXbel5XVRAyX0Ce1RyC1F__wGboBBPlBM/edit?tab=t.0
1•mooreds•26m ago•0 comments

NASA's James Webb Space Telescope Photostream

https://www.flickr.com/photos/nasawebbtelescope/
1•mooreds•27m ago•1 comments

Reddit Is (Mostly) Shuttering R/All, but There's Still a Way to Access It

https://lifehacker.com/tech/reddit-is-mostly-shutting-down-r-all?test_uuid=zXnWOLjQQwkYjMVwrvo5w&...
1•big_toast•30m ago•0 comments

Charity Majors on AI, Observability, and the Future of Software [audio]

https://scalingdevtools.com/podcast/episodes/charity
1•mooreds•32m ago•0 comments

Ask HN: Are SaaS businesses going to zero?

1•nomilk•32m ago•6 comments

Eliza: Natural Language Processing from 1967

https://en.wikipedia.org/wiki/ELIZA
1•frasermarlow•32m ago•1 comments

On-Device Real-Time Speech-to-Speech Translation [video]

https://www.youtube.com/watch?v=D9id2Dgv_OM
1•kenarsa•35m ago•0 comments

My life was changed by four sentences in four books

https://sive.rs/4s4b
3•James72689•36m ago•0 comments

Show HN: Sync creative assets to any CMS

https://syncific.com
2•lightsyncpro•38m ago•0 comments

Show HN: Short links and dynamic QR codes you can white-label as your own SaaS

https://linked.codes/
1•attendos•40m ago•0 comments

Measuring the Self-Reported Impact of Early-2026 AI on Tech Worker Productivity

https://metr.org/blog/2026-05-11-ai-usage-survey/
1•willmarch•40m ago•1 comments

Show HN: Containarium – self-hosted sandbox for AI agents, MCP-native

https://github.com/footprintai/Containarium
1•hsin003•47m ago•0 comments

Microsoft BitLocker – YellowKey zero-day exploit

https://www.tomshardware.com/tech-industry/cyber-security/microsoft-bitlocker-protected-drives-ca...
12•cookiengineer•48m ago•2 comments

Terax – Lightweight (7MB) AI Terminal Emulator (ADE) in Rust, Tauri, and React

https://terax.app
2•nikolay•55m ago•1 comments

CVE-2026-45793: Anatomy of a 14-Hour PHP Supply-Chain Near-Miss

https://github.com/graycoreio/github-actions-magento2/discussions/261
1•damienwebdev•55m ago•1 comments

MacBook Neo Review: The Laptop for the Rest of Us

https://fireborn.mataroa.blog/blog/macbook-neo-review-the-laptop-for-the-rest-of-us/
5•vinhnx•56m ago•1 comments

Gaining control of every projector and camera on campus

https://www.edna.land/blogs/posts/scanning/
2•ednaordinary•56m ago•1 comments

Butter Box – Sharing offline has never been easier

https://likebutter.app/
2•MRPockets•58m ago•0 comments

Extortion Using Smart Glasses Is a Thing Now

https://gizmodo.com/extortion-using-smart-glasses-is-a-thing-now-2000755562
2•dataflow•1h ago•0 comments

Show HN: MerryDiv – Track dividends across all your brokerage accounts

https://www.merrydiv.com/
2•zouko•1h ago•0 comments

Tell HN: Starting June 15, claude -p usage will change

2•andersonmvd•1h ago•2 comments

LinkedIn planning to lay off 5% of staff

https://www.reuters.com/business/world-at-work/linkedin-is-planning-lay-off-5-staff-latest-tech-s...
10•doppp•1h ago•1 comments

The Chip War Nobody Saw Coming: Samsung vs. SK Hynix

1•xurgadis•1h ago•1 comments

SwiftUI Is a Disaster

https://ben1777.substack.com/p/swiftui-is-a-disaster
1•bentocorp•1h ago•0 comments

Harvey's Legal Agent Benchmark

https://www.harvey.ai/blog/introducing-harveys-legal-agent-benchmark
1•gmays•1h ago•0 comments

The Ten Commands of the Nine Divines

https://en.uesp.net/wiki/Lore:Ten_Commands:_Nine_Divines
1•alhazrod•1h ago•0 comments