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

New Chromium-based web browser for SEO

https://serplens.com
1•brodieclark•7m ago•1 comments

What have been the greatest intellectual achievements?

https://www.thinkingcomplete.com/2017/09/what-have-been-greatest-intellectual.html
2•o4c•9m ago•0 comments

Show HN: Contrails – App to watch coding agents chats and save them to your repo

https://github.com/ThreePalmTrees/Contrails
1•Contrails•9m ago•0 comments

Gnome OS revealed what Linux is becoming

https://www.makeuseof.com/i-tried-gnome-os-and-it-showed-me-where-linux-is-actually-heading/
2•ForHackernews•12m ago•0 comments

I built an LLM Wiki and RAG solution: here's a demo for a security KB

https://99helpers.com/wiki/security-kb
1•nickk81•14m ago•1 comments

Mutually Automated Destruction: The Escalating Global A.I. Arms Race

https://www.nytimes.com/2026/04/12/technology/china-russia-us-ai-weapons.html
1•Leomuck•19m ago•1 comments

Strong Model First or Weak Model First? A Cost Study for Multi-Step LLM Agents

https://llm-spec.pages.dev/
1•vsekar•21m ago•0 comments

Why "Travel Inspiration" is the biggest UX gap in TravelTech

https://www.lupath.ai/
1•LUpath•24m ago•0 comments

Brocards for Vulnerability Triage

https://blog.yossarian.net/2026/04/11/Brocards-for-vulnerability-triage
1•ramimac•25m ago•0 comments

JVM Options Explorer

https://chriswhocodes.com/vm-options-explorer.html
2•0x54MUR41•25m ago•0 comments

Fix monitor that goes black, off or blinks due to static electricity in chair

https://aalonso.dev/blog/2023/how-to-fix-monitor-that-goes-black-off-due-to-static-electricity-in...
1•cyclopeanutopia•28m ago•1 comments

Running AI Agents in a Sandbox

https://oligot.be/posts/ai-sandbox/
1•oligot•30m ago•0 comments

Left-Wing Social Darwinism

https://www.rechristianize.com/blog/social-darwinism/left-wing-social-darwinism.html
1•Egret•37m ago•0 comments

Show HN: 3D Tik Tak Toe (Hard)

https://arthur-ficial.github.io/tictactoe-3d/
1•franze•37m ago•1 comments

MiniMax M2.7 Is Now Open Source

https://firethering.com/minimax-m2-7-agentic-model/
5•steveharing1•47m ago•2 comments

Artemis III Proposed Landing Sites

https://artemis-iii.technex.us
1•hparadiz•49m ago•0 comments

Linux kernel doesn't care about your disk health

https://simpleobservability.com/blog/linux-kernel-doesnt-care-disk-health
2•khazit•51m ago•0 comments

Making memory safe language but easy to use

https://github.com/Vix-Programing-language/Vix-programing-language
2•MrBatata•52m ago•1 comments

Doom, Played over Curl

https://github.com/xsawyerx/curl-doom
3•creaktive•53m ago•0 comments

Show HN: Toy Python Lisp interpreters based on the 1960 McCarthy paper

https://github.com/jhud/lisp
3•disconnection•53m ago•0 comments

Why Scotland Succeeded

https://www.ageofinvention.xyz/p/age-of-invention-why-scotland-succeeded
2•Khaine•1h ago•0 comments

Bourbaki: A Unified Foundation for Mathematics [video]

https://www.youtube.com/watch?v=EQ3w-YcP4q4
2•hnlyman•1h ago•0 comments

I built a tool to answer "why does this user have access to X?" in AD

https://github.com/alparn/whohas
1•Alpn13•1h ago•1 comments

Rapidly Scaffold Agents, MCP Servers, APIs, Websites on AWS

https://awslabs.github.io/nx-plugin-for-aws/
2•cogwirrel•1h ago•0 comments

Show HN: I made an app to help me learn Middle Eastern drumming

https://labs.tiffzhang.com/drums/
1•shadowfiles•1h ago•1 comments

Happy Horse AI

https://www.happy-horse-ai.ai
2•erji2233•1h ago•1 comments

The Gang: A Cooperative Texas Hold'em Bank Heist Card Game

https://boardgamegeek.com/boardgame/411567/the-gang
1•Lwrless•1h ago•0 comments

Intel Xpress Resurrection: Reviving a Forgotten EISA Beast

https://x86.fr/intel-xpress-resurrection-reviving-a-forgotten-eisa-beast/
2•ankitg12•1h ago•0 comments

Intent Security Through the Lens of Claude Code Auto Mode

https://www.lasso.security/blog/claude-code-auto-mode-vs-intent-security
1•irememberu•1h ago•0 comments

Lawyer behind AI psychosis cases warns of mass casualty risks

https://techcrunch.com/2026/03/15/lawyer-behind-ai-psychosis-cases-warns-of-mass-casualty-risks/
5•mentalgear•1h ago•2 comments