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

The WWW Virtual Library

https://vlib.org/
1•mghackerlady•52s ago•0 comments

Musk: We will make the new X algorithm open source in 7 days

https://twitter.com/elonmusk/status/2010062264976736482
1•throwfaraway135•52s ago•0 comments

CEO laid off 80% of staff 2 years ago. He would do it again

https://finance.yahoo.com/news/ceo-laid-off-nearly-80-185033733.html
1•websku•2m ago•0 comments

Show HN: Sidecar – AI Social Manager (Analyzes past hits to write new posts)

https://sidecar.bz/http:/localhost:45678/
1•ecotto123•2m ago•1 comments

Be Wary of Digital Deskilling

https://calnewport.com/be-wary-of-digital-deskilling/
1•calstad•4m ago•0 comments

Bento got acquired by Linktree and shut down – so we made an alternative

https://avely.me/
3•FlavioAd•4m ago•0 comments

A geopolitical dashboard to track live conflicts and compare news outlets

https://geopoliticsmonitor.com/
1•Zzadda•4m ago•0 comments

The AI Gazes at Its Navel

http://funcall.blogspot.com/2026/01/the-ai-gazes-at-its-naval.html
1•djha-skin•4m ago•0 comments

Paramount Threatens Board Fight over Warner Bros. Discovery

https://www.nytimes.com/2026/01/12/business/media/paramount-warner-bros-discovery-board-fight.html
1•Sparkle-san•5m ago•1 comments

If god said it he'll do it

https://proverbs31.org/read/devotions/full-post/2021/03/02/if-god-said-it-hell-do-it
1•marysminefnuf•5m ago•0 comments

The Worst Devices of CES 2026 [video]

https://www.youtube.com/watch?v=cxZgILm95BU
2•ColinWright•5m ago•0 comments

Increased file size limits and expanded inputs support in Gemini API

https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-new-file-limits/
1•meetpateltech•6m ago•0 comments

No Code Is Dead

https://thenewstack.io/no-code-is-dead/
1•ms7892•6m ago•1 comments

Show HN: Spec Driven Development Plugin for Claude Code

https://github.com/jsegov/shipspec-claude-code-plugin
1•segov•8m ago•0 comments

Earth's frozen regions are sending a clear warning about climate change

https://theconversation.com/earths-frozen-regions-are-sending-a-clear-warning-about-climate-chang...
1•PaulHoule•8m ago•0 comments

Google Gemini Partnership with Apple Will Go Beyond Siri Revamp

https://twitter.com/NewsFromGoogle/status/2010746083170046376
1•7777777phil•9m ago•1 comments

How alone do you feel?

https://chicagosignguy.com/blog/how-alone-do-you-feel.html
2•publicdebates•9m ago•0 comments

Why Reddit Is a Goldmine for Market Research

https://fluxzap.com/reddit-market-research-goldmine/
1•taimurkazmi•9m ago•0 comments

Major Streaming Services Try to Take Pirate Sites Down Globally via Indian Court

https://torrentfreak.com/disney-netflix-crunchyroll-try-to-take-pirate-sites-down-globally-throug...
2•gslin•10m ago•0 comments

Show HN: FlowDeck – Stop switching to Xcode just to hit Build

https://flowdeck.studio/
1•afterxleep•11m ago•0 comments

Show HN: Securing Docker Builds

https://github.com/avkcode/buildkit-nsjail-sandbox-blog
1•KyleVlaros•14m ago•0 comments

Show HN: AI in SolidWorks

https://www.trylad.com
2•WillNickols•17m ago•0 comments

Show HN: Woid – 3x Faster Runtime Polymorphism. C++23

https://github.com/akopich/woid
1•akopich•18m ago•0 comments

Chesspire: "Slay the Spire" but for Chess

https://lykrast.com/chesspire
1•gaws•20m ago•0 comments

What If ASI Leads to Stasis?

https://thinking.luhar.org/2026/01/what-if-asi-leads-to-stasis/
2•rluhar•20m ago•1 comments

Enterprise Integration Patterns: Process Manager

https://james-carr.org/posts/2026-01-05-advent-of-eip-day-10-process-manager/
1•carrja99•20m ago•0 comments

Pwning Claude Code in 8 Different Ways

https://flatt.tech/research/posts/pwning-claude-code-in-8-different-ways/
2•kschaul•20m ago•0 comments

Cursor vs. antigravity after a week of real use

1•okaris•22m ago•0 comments

Show HN: Senlo - self-hosted open-source email management system

https://github.com/IgorFilippov3/senlo
1•igorfilippov3•23m ago•0 comments

The truth behind the 2026 J.P. Morgan Healthcare Conference

https://www.owlposting.com/p/the-truth-behind-the-2026-jp-morgan
2•crescit_eundo•24m ago•0 comments