LGD-Eval

Lgd Gate — Security skill for Claude Code

Security community

One score, one permission tier.

How to install Lgd Gate

This entry records only its repository, not the path inside it, so there is no exact command to give. Open LGD-Eval/lgd-gate and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Lgd Gate does

One score, one permission tier. Static security + quality gate for AI agent skills (Claude Skills / MCP). Detects credential exfiltration, base-URL hijack, shell payloads.

Alternatives in Security

  • Security Guardian — Comprehensive security analysis for RTK CLI tool, focusing on command injection, shell escaping, hook security 11.9k ★
  • MCP Security Checklist (SlowMist) — Comprehensive checklist: input validation, rate limiting, RBAC, credential management, container hardening 819 ★
  • Query Token Audit — Audit token security to detect scams, honeypots, and malicious contracts across BSC, Base, Solana, and Ethereu 483 ★

README

**LGD Trust Score: 89/100**(本仓自评 self-scored)

**LGD 生态入口** —— 从任一入口都能走到全部入口

[官网 medxpert.cn](https://medxpert.cn/) · [评测门禁 lgd-gate](https://github.com/LGD-Eval/lgd-gate) · [npm 包 lgd-eval](https://github.com/LGD-Eval/lgd-eval) · [公开评分卡](https://github.com/LGD-Eval/evaluation-evidence/blob/main/scores.md) · [排行榜](https://github.com/LGD-Eval/evaluation-evidence/blob/main/LEADERBOARD.md) · [一行安装(免 VPN)](https://github.com/LGD-Eval/lgd-gate/releases/download/v1.0.0/lgd-eval-1.0.0.tgz)

三律:**有籍**(可追溯)· **有证**(有证据)· **有门禁**(有检查)


⚡ 30 秒上手 Quick Start

扫一个技能目录,拿到一个分数:

python3 evaluate.py ./my-skill

输出(示例,实际分数取决于你的技能):

LGD Trust Score: 65/100 🥉 C

放进 CI,四行:

- uses: LGD-Eval/lgd-gate@v1
  with:
    path: ./my-skill
    threshold: 90

**一个分数,一个档位。** 分数直接决定这个技能该以什么权限运行:

分数 档位 建议
≥ 96 L0 免审批直接执行
81–95 L1 一次性确认(60 rpm)
51–80 L2 人工复核(30 rpm)
31–50 L3 每次强制确认,建议先过沙箱
11–30 L4 隔离只读
≤ 10 L5 拒绝执行

这是我们和只做评分的工具最大的不同:**评测的终点是一个权限决定,不是一个数字。**

🧪 实测:四个真实样本

不写"能力很强",直接看跑出来的东西。四个样本都在本仓 `_demo/` 下,你可以自己跑一遍。

样本 分数 等级 建议档位 命中
defect-sample 66/100 C L2 人工复核 run.py:5 硬编码 AWS key · run.py:10 shell=True
poisoned-skill 49/100 D L3 每次强制确认 combo.py:8 读 .env 后外发 · upload.py:8 跨文件凭证外泄
injection-skill 49/100 D L3 每次强制确认 SKILL.md:17/19/21/23 忽略规则 · 隐瞒用户 · 免确认执行
js-skill 34/100 D L3 每次强制确认 package.json postinstall 下载执行 · child_process.exec

单次评测 0.01–0.07 秒,纯本地,不出网。

真实输出(poisoned-skill,未删改)
🔒 第四维:安全检查(25分)
--------------------------------------------------
  ❌ combo.py:8: 凭证文件读取后网络外发(同文件污点)
  ❌ upload.py:8: 跨文件凭证外泄(引用 collect.py 读取的凭证后外发)

======================================================================
  ⛔ 安全否决:原始分 74 → 封顶 49(critical:命中文凭外泄 / 远程代码执行类问题)
  LGD Trust Score: 49/100  ⚠️