dsh-update
github.com/Zhucy123/dsh-update
v1.7.0
界面与主题
以 shell 执行命令可执行外部程序发起网络请求
dsh-update 是 DSH Web GUI 的 **Profile Bundle 插件**:在**侧边栏底部(设置按钮上方)**加一个「⭯ 更新DSH」圆形按钮。点击后对比本地 checkout 与远程 `dsh-v*` 发布 tags;**发现新版本时不自动动手**,先展示本地/远程版本与本次更新内容,由你点「开始更新」后才执行 `git fetch → checkout → pnpm install → clean → bui
作者原文(英文)
DSH plugin: sidebar footer update button — compares the local deepseek-harness version with the remote, pulls and reinstalls when a newer version exists, with live progress.
中文简介由 DeepSeek 模型翻译,仅供参考。
dshplugindeepseek-harnessupdateharnessweb
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注3需留意3一般16未命中
高关注需留意一般
能力清单
- 以 shell 执行命令
shell-exec高关注6 处命中lib/index.js:360'const runPnpm = (label, args, timeoutMs) => run(label, pm.cmd, [...pm.args, ...args], { cwd: repoDir, shell: true, env:…lib/index.js:396' const v = execFileSync("git", ["-C", repoDir, "describe", "--tags", "--always"], { encoding: "utf8", env: gitEnv }).tr…lib/index.js:567return execFileSync('git', ['-C', repoDir, ...args], {lib/index.js:590execFileSync('pnpm', ['--version'], { stdio: 'ignore', env: process.env, timeout: 10_000 })- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 可执行外部程序
spawns-processes高关注3 处命中lib/index.js:25import { execFileSync, spawn } from 'node:child_process'lib/index.js:238"const { spawn } = require('node:child_process')",lib/index.js:311"const { spawn, execFileSync } = require('node:child_process')",- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 发起网络请求
network需留意14 处命中lib/client.js:109const res = await fetch("/api/dsh-update/status");lib/client.js:120const res = await fetch("/api/dsh-update/release-notes?tag=" + encodeURIComponent(tag));lib/client.js:140const res = await fetch("/api/dsh-update/run", {lib/client.js:662const res = await fetch("/api/dsh-update/restart", { method: "POST" });- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 可终止进程
kills-processes需留意2 处命中lib/index.js:497setTimeout(() => process.kill(process.pid, 'SIGTERM'), 500)lib/index.js:1335setTimeout(() => { try { process.kill(process.pid, 'SIGTERM') } catch {} }, 4000)- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 写入文件
writes-files需留意2 处命中lib/index.js:251'const note = (line) => { try { fs.appendFileSync(logErr, `[dsh-update] ${line}\n`) } catch {} }',lib/index.js:333'const note = (line) => { try { fs.appendFileSync(logErr, `[dsh-update] ${line}\n`) } catch {} }',- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 读取环境变量
reads-env一般14 处命中lib/index.js:92if (process.env.DSH_UPDATE_GIT_PROXY !== undefined) return process.env.DSH_UPDATE_GIT_PROXYlib/index.js:152function detectedSupervisor(env = process.env, ppid = process.ppid) {lib/index.js:160function restartAllowed(config, env = process.env, ppid = process.ppid) {lib/index.js:272' child = spawn(file, args, { cwd, detached, windowsHide, stdio: ["ignore", out, err], env: process.env, shell: viaShell…- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般6 处命中lib/index.js:123if (argv0 !== undefined && argv0 !== '' && isAbsolute(argv0) && existsSync(argv0)) return argv0lib/index.js:526if (existsSync(join(current, '.git'))) return currentlib/index.js:874for (const name of readdirSync(tmpdir())) {lib/index.js:877const stat = statSync(full)- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般2 处命中lib/index.js:549* credentials (an updater must fail fast instead of hanging on a TTY prompt).lib/index.js:550* Stored credential helpers still work; only interactive prompts are off.lib/index.js:551* (Note: this alone does NOT stop Windows Git Credential Manager fromlib/index.js:553* additionally get `-c credential.helper=` so they fail fast instead.) */- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 以 shell 执行命令 | shell-exec | 高关注 | 6 |
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 发起网络请求 | network | 需留意 | 14 |
| 可终止进程 | kills-processes | 需留意 | 2 |
| 写入文件 | writes-files | 需留意 | 2 |
| 读取环境变量 | reads-env | 一般 | 14 |
| 读取文件 | reads-files | 一般 | 6 |
| 接触凭据或密钥 | credentials | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 5 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)