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.

AI and That Guy at the Bar

https://dotart.blog/cobbles/ai-and-that-guy-at-the-bar
1•speckx•1m ago•0 comments

Copy.fail: a small Linux kernel bug with an unusually big blast radius

https://jorijn.com/en/blog/copy-fail-cve-2026-31431-linux-kernel-bug-explained/
1•tjek•2m ago•0 comments

Peter Thiel backs $1B ocean data centre startup powered by waves

https://www.ft.com/content/711ce313-16fb-4a12-b6be-fbed547c8a39
2•tjek•4m ago•0 comments

Startup Ignites First Fusion Rocket

https://gizmodo.com/startup-successfully-ignites-worlds-first-fusion-rocket-2000738506
2•airstrike•11m ago•0 comments

Folie à Deux: The most dangerous hallucination is one you're inclined to believe

https://thebookofluke.com/p/folie-a-deux
2•doginasuit•12m ago•0 comments

An AI use policy generator that outputs a deployable managed-settings.json

https://repello.ai/tools/ai-acceptable-use-policy-generator
2•aryamanTitan•15m ago•0 comments

What AstralCodex Gets Wrong about Argument Maps(In the Voice of Scott Alexander)

https://justjamiejoyce.substack.com/p/your-attempt-to-refute-argument-maps
2•JamieTheJoyce•21m ago•1 comments

UpScout – Fast, multi-region uptime monitoring built in Rust

https://upscout.io
2•kipsnai•22m ago•0 comments

Puter 26.05

https://github.com/HeyPuter/puter/releases/tag/26.05
2•ent101•24m ago•0 comments

Show HN: I vibe coded a free site blocker

https://chromewebstore.google.com/detail/sanctuary/caglhejjfpldaooehhlakcdniokjgflh
2•chungusman•25m ago•0 comments

What Happened to Notre Dame's 180k Bees? (2019)

https://dailyobjectivist.com/what-happened-to-notre-dames-180000-bees/
2•thunderbong•28m ago•0 comments

Don't Become an Agent Wrapper

https://www.anantjain.xyz/posts/dont-become-a-wrapper
2•anant90•30m ago•0 comments

Show HN: QA-recorder – One-click QA reports for web apps

https://www.npmjs.com/package/qa-recorder
2•yung3152•30m ago•0 comments

Ask HN: The death of software development as a job?

3•piratesAndSons•32m ago•4 comments

ZooL4nD3r: Translate a passage across 961 learned discourse communities

https://huggingface.co/spaces/RiverRider/zooL4nD3r-demo
2•spacebacon•32m ago•0 comments

Ask HN: What Are You Building?

2•lagniappe•35m ago•1 comments

Now Available: Monthly Subscriptions with a 12-Month Commitment

https://developer.apple.com/news/?id=agq42lxe
4•Austin_Conlon•36m ago•0 comments

Trader.ai – a leaderboard of AI trading bots you can learn from

https://trader.ai
3•TTB_Bulletin•42m ago•0 comments

Microsoft is hiding Windows 11's 'eyes'

https://www.tomsguide.com/ai/microsoft-is-hiding-windows-11s-eyes-heres-how-to-find-copilot-visio...
2•rolph•45m ago•0 comments

Sick of Copilot? You Can Uninstall Microsoft's AI, but It's Tricky

https://www.pcmag.com/news/sick-of-copilot-you-can-finally-uninstall-microsofts-ai-but-its-tricky
2•rolph•49m ago•0 comments

Upscaling classic Sierra adventure games

https://www.youtube.com/watch?v=z9Yp9S23ICo
5•bane•50m ago•2 comments

82nd Airborne Division Using AI to Support 'Project Freedom'

https://www.wral.com/news/local/82nd-airborne-division-ready-support-project-freedom-iran-war-may...
2•Noaidi•55m ago•0 comments

Cryptographic hashing as a transformer attention head

https://github.com/ffr1/unbounded-context-attention
2•SkorpSeven•55m ago•0 comments

Show HN: Design Taste for AI Agents

https://aidesigntaste.com/
5•novateg•1h ago•0 comments

Incus 7.0 LTS has been released

https://discuss.linuxcontainers.org/t/incus-7-0-lts-has-been-released/26641
3•ropyeett•1h ago•1 comments

Two alleged murder plots brought India, US and Canada to a diplomatic crisis

https://www.bloomberg.com/features/2025-india-sikh-separatist-deaths/
7•areoform•1h ago•0 comments

Makúh Residencial – buy land in Yucatán with an online quote tool and financing

https://makuhresidencial.com/
2•Sabu87•1h ago•0 comments

From Nand to Tetris

https://www.nand2tetris.org
2•lopespm•1h ago•0 comments

Perspectival Ball Mixing

https://www.mint-teapot.com/balls/perspective/
4•mint-teapot•1h ago•0 comments

Chinese court rules firms can't lay off workers on AI grounds

https://fortune.com/2026/05/03/chinese-court-layoffs-workers-ai-replacement-labor-market/
2•latexr•1h ago•1 comments