D

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
分类
ui
发布
2026-09-15
版本
v1.7.0

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
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_PROXY
    • lib/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 argv0
    • lib/index.js:526if (existsSync(join(current, '.git'))) return current
    • lib/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 from
    • lib/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/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件