dsh-audit
github.com/863683348/dsh-plugin-audit
v0.5.2
市场与管理
写入文件动态执行代码
Ecosystem-wide plugin health audit for DeepSeek Harness: syncs the GitHub dsh-plugin topic into a local catalog, probes npm, static-scans plugin files for security, scores every plugin (maintenance / docs / npm / ecosystem + security veto), keeps score hi
该插件尚未翻译,显示作者原文。
deepseek-harnessdshdsh-plugincordispluginaudithealthquality
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意2一般20未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意3 处命中lib/storage.js:40mkdirSync(this.dir, { recursive: true });lib/storage.js:56writeFileSync(tmp, JSON.stringify(value, null, 1) + "\n", "utf8");lib/storage.js:57renameSync(tmp, path);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态执行代码
dynamic-code需留意1 处命中lib/security.js:120findings.push({ rule: "eval", severity: "high", detail: "eval() in source (" + path + ")" });- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 读取环境变量
reads-env一般5 处命中lib/index.js:54return config.githubToken || process.env.DSH_GITHUB_TOKEN || "";lib/security.js:136findings.push({ rule: "env-exfil", severity: "high", detail: "reads process.env and sends data to a non-allowlisted host…lib/security.js:139findings.push({ rule: "env-read", severity: "info", detail: "reads process.env (" + path + ")" });lib/storage.js:22if (process.env.DSH_HOME) return join(process.env.DSH_HOME, "dsh-plugin-audit");- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般2 处命中lib/storage.js:46if (!existsSync(path)) return fallback;lib/storage.js:47return JSON.parse(readFileSync(path, "utf8"));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 3 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| 读取环境变量 | reads-env | 一般 | 5 |
| 读取文件 | reads-files | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 14 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)