dsh-doctor-windows
v0.1.0
其他
可执行外部程序写入文件
Read-only Windows startup diagnostics for DeepSeek Harness
该插件尚未翻译,显示作者原文。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注1需留意3一般19未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中lib/doctor-DF28v34k.mjs:6import { execFile } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意3 处命中lib/cli.mjs:196else await ports.writeFile(options.output, output);lib/doctor-DF28v34k.mjs:695await system.rename(original, destination);lib/doctor-DF28v34k.mjs:875writeFileExclusive: (path) => writeFile(path, "", { flag: "wx" }),- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 接触凭据或密钥
credentials一般13 处命中README.md:64The doctor performs no network request, telemetry, or report upload, and does not execute a discovered DSH shim. It does…README.zh.md:64Doctor 不执行 network request、telemetry 或 report upload,也不执行发现到的 DSH shim。它不读取 `.credentials.yaml` 或 `.env` 的内容。报告会脱敏已知 hom…lib/doctor-DF28v34k.mjs:777const CREDENTIAL_ASSIGNMENT = /(?<![A-Za-z0-9_-])(?:[A-Za-z0-9]+_)*(?:api[_-]?key|authorization|credential|deepseek[_-]?…lib/doctor-DF28v34k.mjs:778const BEARER_CREDENTIAL = /\bbearer\s+[^\s,;]+/giu;- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般4 处命中lib/doctor-DF28v34k.mjs:379availableProfiles = (await system.readDir(profilesDirectory)).filter((entry) => entry.isDirectory()).map((entry) => entr…lib/doctor-DF28v34k.mjs:665entries = await system.readDir(nodeModules);lib/doctor-DF28v34k.mjs:868readText: (path) => readFile(path, "utf8"),lib/doctor-DF28v34k.mjs:869readDir: (path) => readdir(path, { withFileTypes: true }),- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般1 处命中lib/doctor-DF28v34k.mjs:832return Object.fromEntries(Object.entries(process.env).filter((entry) => typeof entry[1] === "string"));- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 3 |
| 接触凭据或密钥 | credentials | 一般 | 13 |
| 读取文件 | reads-files | 一般 | 4 |
| 读取环境变量 | reads-env | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 8 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 7 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | js-yaml | CVE-2026-84375 | js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources 修复版本:3.15.2, 4.3.2 详情 → |
| 中 | js-yaml | CVE-2026-59869 | js-yaml: YAML merge-key chains can force quadratic CPU consumption 修复版本:3.15.0, 4.3.0 详情 → |
| 中 | js-yaml | GHSA-5p4m-2wfm-xmqj | JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported 修复版本:3.15.1, 4.3.1 详情 → |
| 中 | semver | CVE-2022-25883 | semver vulnerable to Regular Expression Denial of Service 修复版本:5.7.2, 6.3.1, 7.5.2 详情 → |
| 低 | js-yaml | CVE-2026-53550 | JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases 修复版本:3.15.0, 4.2.0 详情 → |
| 低 | js-yaml | CVE-2025-64718 | js-yaml has prototype pollution in merge (<<) 修复版本:3.14.2, 4.1.1 详情 → |
| 低 | js-yaml | GHSA-r3ph-w7gj-g6xm | js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources 修复版本:5.4.1 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。