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.

JobPilot AI – Job search that runs 100% in the browser

https://jobpilot-ai.pages.dev/
1•Mythic_Dd•54s ago•0 comments

Deep humanistic context for every engineering decision

https://github.com/kenm47/jensenify-mcp
1•mooreds•2m ago•0 comments

Apple's iOS 27 Siri Overhaul and AI Features Previewed in New Images

https://www.bloomberg.com/news/features/2026-05-28/apple-ios-27-photos-screenshots-revamped-siri-...
1•ChartMaster22•3m ago•0 comments

Tom Cruise's Body of Work (With Aled Maclean-Jones) [audio]

https://www.econtalk.org/tom-cruises-body-of-work-with-aled-maclean-jones/
1•mooreds•3m ago•0 comments

Beverly Hills Supper Club fire (1977)

https://en.wikipedia.org/wiki/Beverly_Hills_Supper_Club_fire
1•petethomas•4m ago•0 comments

A Thousand Inertial Samples in One Edge – Perception in Robotics

https://atomsfrontier.substack.com/p/a-thousand-inertial-samples-in-one
1•jpatel3•4m ago•0 comments

Fun Local LLM Comparisons with Gemma, Granite, and Qwen

https://ekorbia.com/blog/2026-05-25-fun-local-llm-comparisons
1•ekorbia•5m ago•0 comments

Safety Gate: the EU rapid alert system for dangerous non-food products

https://ec.europa.eu/safety-gate-alerts/
1•andrecarini•6m ago•0 comments

Show HN: I made a vi-like modal keyboard plugin for Figma

1•virgil_disgr4ce•6m ago•0 comments

Zuckerberg's superyacht lands in Seattle as Meta announces big local layoff

https://www.seattletimes.com/business/zuckerbergs-superyacht-arrives-in-seattle-the-same-day-meta...
2•e2e4•8m ago•1 comments

Manus and Similarweb: AI Agents Meet Marketing Data

https://ir.similarweb.com/news-events/press-releases/detail/139/manus-collaborates-with-similarwe...
1•v-mdev•9m ago•0 comments

Optimize for All Three or Don't Optimize

https://rankops.net/nc/charlotte/
1•tmoncrieff94•9m ago•1 comments

Show HN: Audit your Anki flashcards at flashcardaudit.com

https://flashcardaudit.com
1•banterfoil•10m ago•0 comments

Show HN: AG2B – Run the agent loop in the browser, expose your tools via WebMCP

https://ag2b.ai/docs
1•notmedia•10m ago•0 comments

Eudoxia0/hashcards: A plain text-based spaced repetition system

https://github.com/eudoxia0/hashcards
1•hboon•11m ago•0 comments

Developer/IT Unions

1•t_sawyer•11m ago•0 comments

In Defense of Functional CSS

https://www.minid.net/2019/8/12/in-defense-of-functional-css
1•meerita•12m ago•0 comments

The medieval secrets being revealed by AI

https://www.bbc.com/future/article/20260527-plots-love-letters-and-diplomacy-the-medieval-secrets...
1•tellarin•12m ago•0 comments

Pushing memory bound CUDA kernels past the speed of light with data compression

https://fergusfinn.com/blog/faster-than-speed-of-light/
1•somnial•12m ago•0 comments

Neme journal app (AI integration)

1•djampodev•12m ago•0 comments

Built GoPeek – Open links in live mini windows without opening new tabs

https://microsoftedge.microsoft.com/addons/detail/gopeek/ffaeanmhghmohbponokefmbhfkkomnmk
1•guptalog•14m ago•0 comments

Tome – Self-hosted eBook library with KOReader sync and reading stats

https://github.com/bndct-devops/tome
1•bndct_devops•15m ago•1 comments

We Benchmarked Claude Code, Codex, Semgrep, CodeQL, Trent on 28 CWE-Bench CVEs

https://trent.ai/blog/claude-code-codex-semgrep-codeql-trent-vs-cwe-bench-cve/
1•geopsist•15m ago•0 comments

Why Gentoo?

https://blogs.gentoo.org/mgorny/2026/05/28/why-gentoo/
1•birdculture•16m ago•0 comments

The Costco Theory of the Internet

https://www.joanwestenberg.com/the-costco-theory-of-the-internet/
3•speckx•18m ago•0 comments

They Teach AI Music at Music School Now [video]

https://www.youtube.com/watch?v=EfeGc02nzC4
1•consumer451•19m ago•0 comments

DeltaBox: Scaling Stateful AI Agents with Ms-Level Sandbox Checkpoint/Rollback

https://arxiv.org/abs/2605.22781
1•fofoz•20m ago•0 comments

Embeddings: LLM's Best Kept Secret?

https://matthew-johnston.com/embeddings-llm-best-kept-secret/
1•mattjstn•20m ago•0 comments

China could use "kill-switch" on buses in Dutch cities, says Cabinet member

https://nltimes.nl/2026/05/27/china-use-kill-switch-buses-dutch-cities-says-cabinet-member
1•giuliomagnifico•22m ago•0 comments

Gemini Embedding 2: A Native Multimodal Embedding Model from Gemini

https://arxiv.org/abs/2605.27295
2•simonpure•26m ago•0 comments