dsh-plugin-autoupdate
github.com/publieople/dsh-plugin-autoupdate
给 DeepSeek Harness 的 profile 插件做**守规矩的**更新:只升 pnpm 供应链「最小发布时长」策略放行的版本, 动手前自动快照,随时可回滚;另配一个与对话页同级的主栏页面,看得见、点得动。
作者原文(英文)
Supply-chain-aware plugin updater for DeepSeek Harness: checks the plugins installed in your profiles, applies only the versions pnpm's minimum-release-age policy allows, snapshots before every change and can roll back.
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注3 处命中lib/outdated.js:12import { spawn } from 'node:child_process'lib/restart.js:16import { spawn } from 'node:child_process'lib/restart.js:67"import { spawn } from 'node:child_process'",- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注3 处命中lib/outdated.js:17* Node's `shell: true` does NOT escape arguments - it joins them with spaces andlib/outdated.js:43? spawn(buildWindowsCommand(cli, args), { cwd, shell: true, windowsHide: true })README.en.md:172`shell: true` does not escape arguments (DEP0190) and cmd.exe swallows `^`.README.md:1488. **Windows 上自己拼命令行**再交给 cmd.exe —— Node 的 `shell: true` 不转义参数(DEP0190),- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意9 处命中lib/apply.js:40mkdirSync(dir, { recursive: true })lib/apply.js:45copyFileSync(from, path.join(dir, file))lib/apply.js:107copyFileSync(from, path.join(profileDir, file))lib/apply.js:117try { rmSync(path.join(profileDir, name), { recursive: true, force: true }) } catch {}- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意1 处命中lib/client.js:336const response = await fetch(ROUTE + path, init);- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般16 处命中lib/apply.js:18if (!existsSync(file)) return {}lib/apply.js:20const parsed = JSON.parse(readFileSync(file, 'utf8'))lib/apply.js:44if (!existsSync(from)) continuelib/apply.js:53return readdirSync(profileDir, { withFileTypes: true })- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般13 处命中lib/dsh-cli.js:11export function findDshCli (env = process.env, execPath = process.execPath) {lib/http.js:91function envTrustedHosts (env = process.env) {lib/http.js:151const resolve = options.resolve || ((requested) => resolveProfiles(requested, process.env, home, hint()))lib/index.js:115const resolved = resolveProfiles(args.profiles, process.env, dshHome(), profileHint())- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 以 shell 执行命令 | shell-exec | 高关注 | 3 |
| 写入文件 | writes-files | 需留意 | 9 |
| 发起网络请求 | network | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 16 |
| 读取环境变量 | reads-env | 一般 | 13 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 17 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)
可信度
- 0没有可扣分的项
认证等级 L2
- L0内容完整性✓sha512-IfwrituB0XZB9LyO… 与本地 tarball 复算一致
- L1来源✓维护者 publieople,仓库 publieople/dsh-plugin-autoupdate(未做仓库审计)
- L2发行✓隔离 profile 安装成功,3.3s,层已挂载
- L3生态—还没有契约/启动记录
- L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- publieople
- 仓库
- https://github.com/publieople/dsh-plugin-autoupdate
- 许可
- MIT
- 最后发布
- 2026-10-14
- 周下载
- 729
- star
- 0
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。
DSH