frontpage.
newsnewestaskshowjobs

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.

We ran a live MCP handshake against 995 servers. Only 39 are verified

https://mcpexplorer.com/blog/state-of-mcp-security
1•ruzgarzere•1m ago•0 comments

How We Made mirrord Run Natively on Windows

https://metalbear.com/blog/mirrord-for-windows/
1•aviramha•2m ago•0 comments

The most, and least, liveable cities in 2026

https://www.economist.com/graphic-detail/2026/07/06/the-worlds-most-and-least-liveable-cities-in-...
1•bookofjoe•3m ago•1 comments

Show HN: I made the most accurate gay porn search engine

https://peachka.net/
1•PozitivnaMirta•5m ago•0 comments

Clone any app into React Native from screenshots (open source)

https://github.com/Birkenpapier/ai-app-cloner
1•mister_t_green•7m ago•0 comments

Coaxing quality (writing) output from generative AI

https://www.scala-lang.org/blog/2026/07/06/quality-from-genai.html
1•noelwelsh•10m ago•0 comments

Instagui – turn any CLI into a web GUI with one command

https://github.com/Soutar97/instagui
1•soutari•11m ago•0 comments

Europe's company websites are mostly served by US vendors

https://ciphercue.com/blog/european-web-hosting-vendor-share-2026
1•adulion•11m ago•0 comments

Show HN: Deploy to Prod from Your Wrist

3•kingofspain•12m ago•0 comments

Hybrid Signatures

https://keymaterial.net/2026/06/18/on-hybrid-signatures/
1•tux3•12m ago•0 comments

Show HN: Graphene – local-only Git wrapper to manage stacked branches

https://github.com/alexghr/graphene
1•alexghr•12m ago•0 comments

Subagents Are Zombie Processes

https://victorvelazquez.dev/blog/your-subagents-are-zombie-processes/
1•vicvelazquez•13m ago•0 comments

AI Agent using a Burp-style toolkit over MCP

https://github.com/io-tl/mulot
1•xmulot•13m ago•0 comments

FollowDev – Software Developers Feed

https://www.followdev.com/
3•nosky•17m ago•0 comments

Show HN: WordFuzz – Daily Word Games (Crosswords, Word Pies, Word Stew)

https://wordfuzz.com/
1•ekorbia•17m ago•0 comments

5-minute fix to beat laziness and stay productive all day

https://productive360.app/
1•stefsdev•18m ago•2 comments

First Progress in 50 Years on Most Famous Computing Problem [video]

https://www.youtube.com/watch?v=yvzicndq8sE
1•surprisetalk•18m ago•0 comments

Show HN: Insight – self-hosted web analytics with AI crawler tracking

https://github.com/DigiHold/insight
1•NicoAI•18m ago•0 comments

Show HN: Bare-Metal RTOS(TamgaOs) for Cortex-M7 (STM32H753ZI) Port

https://github.com/hrasityilmaz/TamgaOs
1•hrasity•21m ago•0 comments

Valve publishes Windows-drivers for Steam Machine

https://help.steampowered.com/en/faqs/view/6121-ECCD-D643-BAA8
2•HelloUsername•21m ago•0 comments

Show HN: Artificiety – Agentic society in a fantasy world

https://artificiety.world
2•Haldt•21m ago•0 comments

Show HN: Yank.run – search and yank shell-command snippets from the terminal

https://yank.run/
1•korotinm•22m ago•0 comments

Ford rehired engineers it replaced with AI – the real reason is worse

https://hackenewhome.blogspot.com/p/ford-rehired-engineers-it-replaced-with.html
1•odilelof•22m ago•0 comments

Why is Sonnet 5 Max priced above models that outperform it?

https://cursor.com/cursorbench
2•Applied_AI•23m ago•1 comments

False Sharing Alignment

https://monoid.github.io/posts/false-sharing-alignment/
1•signa11•23m ago•0 comments

Double Fine is Independent again

https://www.doublefine.com/news/independence-day
1•kleiba2•23m ago•0 comments

Sculpting a Digital Athlete

https://tsitsipas.com
1•lovegrenoble•24m ago•1 comments

Looking for part time jobs,2 yrs of experience as data analyst

1•animator2024•25m ago•2 comments

Woman suspected of Monaco bombing found shot dead near Kyiv

https://www.heraldscotland.com/news/26258031.woman-wanted-monaco-attack-ukrainian-oligarch-found-...
3•lovegrenoble•26m ago•0 comments

Yt-Dlp Sequence Diagrams

https://app.ilograph.com/demo.ilograph.yt-dlp/Download%2520a%2520YouTube%2520Video
1•billyp-rva•26m ago•0 comments