浏览全部

界面与主题 · v0.3.14

dsh-plugin-capabilities

github.com/qinyre/dsh-plugin-capabilities

能力可执行外部程序R012 改写用户 profile写入文件

在 dsh 设置页管理技能与 MCP 服务器。设置里新增一级分区「技能与 MCP」(与「通用设置」「模型」并列),内含「技能」「MCP」「市场」三个标签页:技能目录、自定义技能仓库和两层(profile / 全局)MCP 服务器行都能在页面上直接维护,不必手工编辑 YAML;Claude Code、Codex、Cursor、Gemini CLI 等其他 agent 的技能与 MCP 配置也能一键纳入。

作者原文(英文)

Manage skills and MCP servers from the Web UI Settings. 在设置页管理 dsh 的技能与 MCP 服务器。

简介取自插件自己的 README 原文。

deepseekharnessdshdsh-pluginskillsmcp
认证 L3已扫描 ✓健康 S/95周下载 751
12 项能力
许可
MIT
发布
2026-10-11
维护者
qinyre
插件 ID
2125

安装命令

dsh plugin --profile web add dsh-plugin-capabilities@0.3.14

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注6需留意4一般12未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注5 处命中
    • lib/index.js:1002import { spawn } from "node:child_process";
    • lib/index.js:1377import { spawn as spawn2 } from "node:child_process";
    • src/opener.ts:8import { spawn } from 'node:child_process'
    • src/restart.ts:17import { spawn } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • R012 改写用户 profileprofile-tamper高关注1 处命中
    • mcp.ts
    • 看它改的是自己那一段还是别人的。改用户 profile 通常应由用户手动做。
  • 写入文件writes-files需留意112 处命中
    • lib/index.js:1065rmSync(path, { recursive: true, force: true, ...RETRIES });
    • lib/index.js:1096mkdirSync(dir, { recursive: true });
    • lib/index.js:1097writeFileSync(statePath(dshHome), JSON.stringify(state, null, 2) + "\n", "utf8");
    • …r/eval-viewer/generate_review.py:433args.static.parent.mkdir(parents=True, exist_ok=True)
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 含混淆或编码代码obfuscated-code需留意48 处命中
    • lib/client.js:4525skillsIntro: "\u67E5\u770B\u4E0E\u7F16\u8F91 dsh \u53D1\u73B0\u7684\u6280\u80FD\uFF1B\u7528\u6237\u7EA7\u6280\u80FD\uFF0…
    • lib/client.js:4543emptySkills: "\u8FD8\u6CA1\u6709\u53D1\u73B0\u4EFB\u4F55\u6280\u80FD",
    • lib/client.js:4555deleteWarn: "\u5C06\u5220\u9664 DSH_HOME/skills \u4E0B\u7684\u6574\u4E2A\u6280\u80FD\u76EE\u5F55\uFF0C\u6B64\u64CD\u4F5C…
    • lib/client.js:4556saved: "\u5DF2\u4FDD\u5B58\uFF0C\u6280\u80FD\u76EE\u5F55\u88AB\u76D1\u542C\uFF0C\u7A0D\u5019\u5373\u53EF\u5728\u4F1A\u8B…
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 发起网络请求network需留意13 处命中
    • lib/client.js:4813const response = await fetch(path, init);
    • lib/index.js:1751const response = await fetch(row.url, {
    • src/client/index.ts:3* and 市场 as internal tabs). Calls the host routes with fetch. */
    • src/client/index.ts:41const response = await fetch(path, init)
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 运行时改写自身配置modifies-own-manifest需留意4 处命中
    • src/mcp.test.ts:147writeFileSync(join(brokenDir, 'cordis.patch.yml'), 'foo: 1\n bar: 2\n', 'utf8')
    • src/mcp.test.ts:163writeFileSync(join(home, 'cordis.patch.yml'), [
    • src/mcp.test.ts:194writeFileSync(join(home, 'cordis.patch.yml'), 'foo: 1\n bar: 2\n', 'utf8')
    • src/mcp.ts:99writeFileSync(join(dirPath, 'cordis.patch.yml'), String(doc), 'utf8')
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 可终止进程kills-processes需留意3 处命中
    • lib/index.js:1401setTimeout(() => process.kill(process.pid, "SIGTERM"), 500);
    • …kill-creator/scripts/run_eval.py:175process.kill()
    • src/restart.ts:66setTimeout(() => process.kill(process.pid, 'SIGTERM'), 500)
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 读取文件reads-files一般98 处命中
    • lib/index.js:700if (!existsSync(file)) continue;
    • lib/index.js:702const parsed = JSON.parse(readFileSync(file, "utf8"));
    • lib/index.js:718if (!existsSync(file)) return [];
    • lib/index.js:721parsed = JSON.parse(readFileSync(file, "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般22 处命中
    • lib/index.js:825function dshHomeDir(dshHome = process.env.DSH_HOME) {
    • lib/index.js:828function profileDir(profile, dshHome = process.env.DSH_HOME) {
    • lib/index.js:1073function pluginStateDir(dshHome = process.env.DSH_HOME) {
    • lib/index.js:1396env: process.env,
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 文中出现远程脚本地址remote-url-reference一般3 处命中
    • skills/find-skills/SKILL.md:31**Browse skills at:** https://skills.sh/
    • skills/find-skills/SKILL.md:45Before running a CLI search, check the [skills.sh leaderboard](https://skills.sh/) to see if a well-known skill already …
    • skills/find-skills/SKILL.md:92Learn more: https://skills.sh/vercel-labs/agent-skills/react-best-practices
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
  • 动态加载模块dynamic-import一般2 处命中
    • lib/index.js:2471const mod = await import("@deepseek-ai/dsh-skill-filesystem");
    • src/index.ts:86const mod = (await import('@deepseek-ai/dsh-skill-filesystem')) as unknown as
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注5
R012 改写用户 profileprofile-tamper高关注1
写入文件writes-files需留意112
含混淆或编码代码obfuscated-code需留意48
发起网络请求network需留意13
运行时改写自身配置modifies-own-manifest需留意4
可终止进程kills-processes需留意3
R013 清单可疑manifest-obfuscation需留意1
读取文件reads-files一般98
读取环境变量reads-env一般22
文中出现远程脚本地址remote-url-reference一般3
动态加载模块dynamic-import一般2

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 59 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

可信度

95 健康分 S 扣分项下方逐条附证据
  • -5声明与实物不符:types-missingwarn:['./lib/types/index.d.ts', 'lib/types/index.d.ts']

认证等级 L3

  • L0静态结构与契约✓sha512-sFOz0W1yCVl2jDHw… 与本地 tarball 复算一致,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟✓隔离 profile 安装成功,3.9s,层已挂载;宿主带它启动(booted)
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
qinyre
仓库
https://github.com/qinyre/dsh-plugin-capabilities
许可
MIT
最后发布
2026-10-11
周下载
751
star
17

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

DSH peer 依赖1 个cordis均为 @deepseek-ai/ 下的包
第三方依赖5 个
bundle patch./cordis.patch.yml
依赖安全公告26 条,见下方

这个插件声明的依赖中,有 26 条已公开的安全公告 (最高等级:严重):

等级依赖包编号摘要
严重dompurifyCVE-2026-41239DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
修复版本:3.4.0 详情
中dompurifyCVE-2026-65902DOMPurify: Hook mutation of `data.allowedTags` / `data.allowedAttributes` permanently pollutes `DEFAULT_ALLOWED_TAGS` / `DEFAULT_ALLOWED_ATTR`
修复版本:3.4.7 详情
中dompurifyCVE-2026-49458DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks
修复版本:3.4.6 详情
中dompurifyCVE-2026-49459DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM
修复版本:3.4.6 详情
中dompurifyCVE-2026-0540DOMPurify contains a Cross-site Scripting vulnerability
修复版本:2.5.9, 3.3.2 详情
中dompurifyCVE-2025-15599DOMPurify contains a Cross-site Scripting vulnerability
修复版本:3.2.7 详情
中dompurifyCVE-2026-41238DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback
修复版本:3.4.0 详情
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情
低smol-tomlGHSA-r4xh-jqrq-34v2smol-toml: Quadratic-time parse() from parseKey rescanning to end of document on each key line
修复版本:1.9.0 详情
低smol-tomlGHSA-v3rj-xjv7-4jmqsmol-toml: Denial of Service via TOML documents containing thousands of consecutive commented lines
修复版本:1.6.1 详情
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情
未分级dompurifyCVE-2026-65903DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation
修复版本:3.4.0 详情

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

元数据

主页https://github.com/qinyre/dsh-plugin-capabilities#readme
仓库最近提交2026-10-15
仓库创建2026-08-16

返回首页