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.

GitHub Is Capping the AI Pull Request Flood

https://www.vincentschmalbach.com/github-capping-ai-pull-request-flood/
1•vincent_s•45s ago•0 comments

Tutorial: Algebraic Foundations Powering FlashAttention

https://riftstack.ai/research/learning-flashattention-the-hard-way-part-1
1•gkapur•1m ago•1 comments

Show HN: Ranking 19 LLMs on Flutter code by compile pass and hidden-test pass 1

https://nativevibe.dev/flutter-benchmark
1•GeorgiKadrev•1m ago•0 comments

Study: Lower-skilled workers earn more in an AI world

https://siepr.stanford.edu/news/study-lower-skilled-workers-earn-more-ai-world
1•rustoo•5m ago•0 comments

Show HN: Production-grade LangGraph template

https://github.com/brescou/langgraph-agent-stack
1•Brescou•5m ago•0 comments

Show HN: Fast NF4 dequantization Triton kernel (1.41x faster than bitsandbytes)

https://github.com/Griffith-7/nf4-triton-kernel
1•Griffith-7•6m ago•0 comments

Pong Wars on the Commodore 64

https://imrannazar.com/articles/c64-pongwars
1•Two9A•7m ago•1 comments

Ask HN: Is it just me, or is software buggier across the board?

1•kadhirvelm•7m ago•0 comments

European Court: Apple Can Not Shirk Off Its Interoperability Requirements

https://www.eff.org/deeplinks/2026/07/european-court-apple-can-not-shirk-its-interoperability-req...
2•hn_acker•8m ago•0 comments

Show HN: Aict – Unix coreutils that output XML/JSON, built for AI agents

https://github.com/synseqack/aict
1•ronak_parmar•8m ago•0 comments

Scientists Found Gold in the Most Ironic Place Possible

https://gizmodo.com/scientists-found-gold-in-the-most-ironic-place-possible-2000785505
1•rbanffy•9m ago•0 comments

Hire for Agency

https://lau.rent/posts/hire-for-agency.html
1•mooreds•9m ago•0 comments

Don't Repeat NY's 3D Printing Blunder

https://www.eff.org/deeplinks/2026/07/dont-repeat-nys-3d-printing-blunder
1•hn_acker•10m ago•0 comments

Shipwrecks of Shackleton and Scott recreated in 3D digital form after expedition

https://www.theguardian.com/science/2026/jul/15/deep-sea-expedition-builds-digital-twins-shipwrec...
1•bookofjoe•11m ago•0 comments

Show HN: Goku – WASM (wllama)-powered LLM inference and model manager

https://userfrom1995.github.io/goku/
1•userfrom1995•11m ago•0 comments

Is Life Just Different?

https://www.quantamagazine.org/is-life-just-different-20260708/
2•ibobev•14m ago•0 comments

The Battle of Blair Mountain

https://home.nps.gov/articles/000/the-battle-of-blair-mountain.htm
1•thunderbong•14m ago•0 comments

Grok Build CLI uploads full Git history and .env secret to xAI's cloud

https://old.reddit.com/r/LocalLLaMA/comments/1ut7tis/grok_build_cli_uploads_your_whole_repo_full_...
1•zdw•14m ago•0 comments

Will We Ever Find Alien Civilizations?

https://www.quantamagazine.org/will-we-ever-find-alien-civilizations-20260709/
2•ibobev•14m ago•0 comments

Mailbox.org Price Increase

https://mailbox.org/en/news/plan-adjustment-2026/
2•tomgag•15m ago•1 comments

Okhst: A tone-based color space for predictable UI palettes

https://tenphi.me/blog/okhst-predictable-color-generation/
1•tenphi•16m ago•0 comments

Talk: The Art of Braiding Algorithms

https://pgadey.ca/notes/talk-relatorium-2026/
1•surprisetalk•16m ago•0 comments

Show HN: Running server scripts from smartphone via SSH

https://c100k.eu/p/rebootx/updates/20260714-remote-runbooks
2•pmdfgy•18m ago•0 comments

Show HN: Agent's Design – Claude/Codex copy-paste templates that kill AI-slop UI

https://agents-design.com
3•tungtbt•18m ago•0 comments

AI Europe 100 · 2026

https://headline.com/blog-latest/article-latest/ai-europe-100-2026
2•shadag•19m ago•0 comments

CISA warns admins to patch actively exploited SharePoint flaws

https://www.bleepingcomputer.com/news/security/cisa-warns-admins-to-patch-actively-exploited-shar...
2•Brajeshwar•19m ago•0 comments

Elon Musk Could Still Face Criminal Charges for Trying to Bribe Voters in WI

https://gizmodo.com/elon-musk-could-still-face-criminal-charges-for-trying-to-bribe-voters-in-wis...
6•rbanffy•20m ago•1 comments

Job queues are deceptively tricky

https://typesanitizer.com/blog/job-queues.html
2•birdculture•20m ago•0 comments

The Purge: How the White House Broke the NSC and How to Fix It – Lawfare

https://www.lawfaremedia.org/article/how-the-white-house-broke-the-nsc-and-how-to-fix-it
2•MaysonL•21m ago•0 comments

Show HN: Grepathy – Claude made a decision nobody approved

https://github.com/evansjp/grepathy
4•evansjp•22m ago•0 comments