D

dsh-plugin-capabilities

github.com/qinyre/dsh-plugin-capabilities

v0.3.14 界面与主题 可执行外部程序R012 改写用户 profile写入文件

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

该插件尚未翻译,显示作者原文。

deepseekharnessdshdsh-pluginskillsmcp
分类
ui
发布
2026-10-11
版本
v0.3.14

检测报告

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

能力清单

  • 可执行外部程序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 都读走。
  • 接触凭据或密钥credentials一般13 处命中
    • lib/client.js:571env: { API_KEY: "value" }
    • market/mcp.json:261"GITHUB_PERSONAL_ACCESS_TOKEN"
    • market/mcp.json:293"detail": "The official GitHub MCP server: issues, PRs, reviews, branches, file contents, code/issue/repo search. Needs …
    • market/mcp.json:294"detailZh": "GitHub 官方 MCP 服务器:Issue、PR、评审、分支、文件内容、代码/Issue/仓库搜索。需要在环境变量 GITHUB_PERSONAL_ACCESS_TOKEN 里填个人访问令牌,能碰什么由令牌 s…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 文中出现远程脚本地址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
接触凭据或密钥credentials一般13
文中出现远程脚本地址remote-url-reference一般3
动态加载模块dynamic-import一般2

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
中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 详情 →
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情 →
未分级dompurifyCVE-2026-109345DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes
修复版本:3.4.16 详情 →
未分级dompurifyCVE-2026-109344DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS
修复版本:3.4.16 详情 →

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

← 返回全部插件