D

dsh-update

github.com/henlii/dsh-plugins

v0.4.0 会话与记忆 以 shell 执行命令可执行外部程序发起网络请求

dsh 更新器 — 在 Web GUI 里检查 DeepSeek Harness 的发布通道、浏览与检索版本历史、一键升级到目标版本,并独立重启服务。

作者原文(英文)

DSH plugin: check the DeepSeek Harness release channels (npm dist-tags + GitHub release tags) from the Web GUI, browse and search the version history, upgrade the running install to the channel's newest or to any pinned version, and restart the service —

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
session
发布
2026-09-29
版本
v0.4.0

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注2需留意4一般16未命中
高关注需留意一般

能力清单

  • 以 shell 执行命令shell-exec高关注4 处命中
    • src/index.js:366const out = execFileSync(probe, [name], { encoding: "utf8", timeout: 10000, stdio: ["ignore", "pipe", "ignore"] })
    • src/index.js:448const out = execFileSync(bin.argv[0], [...args, ...tail], {
    • src/index.js:619const out = execFileSync(resolved.argv[0], [...args, "config", "get", "registry"], {
    • src/index.js:1273const pid = execFileSync("systemctl", ["--user", "show", "-p", "MainPID", "--value", unit], {
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 可执行外部程序spawns-processes高关注1 处命中
    • src/index.js:40import { spawn, execFileSync } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 发起网络请求network需留意44 处命中
    • src/client.js:95const res = await fetch(`${ROUTE}${path}`, {
    • src/client.js:106const res = await fetch(`${ROUTE}${path}`, { method: "GET", credentials: "same-origin" });
    • src/index.js:194const res = await fetch(url, {
    • scripts/test-updater.mjs:270assert.equal(got.layout, "npm-global");
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意28 处命中
    • src/index.js:104mkdirSync(dirname(file), { recursive: true });
    • src/index.js:106writeFileSync(tmp, `${JSON.stringify(value, null, 2)}\n`, "utf8");
    • src/index.js:107renameSync(tmp, file);
    • src/index.js:1154rmSync(previous, { recursive: true, force: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 读取文件reads-files一般26 处命中
    • src/index.js:92const raw = readFileSync(file, "utf8").replace(/^\uFEFF/, "");
    • src/index.js:324if (existsSync(join(nodeDir, "..", "lib", "node_modules", PACKAGE_NAME, "package.json"))) {
    • src/index.js:353if (existsSync(cli)) return { argv: [process.execPath], cliJs: cli, display: `node ${cli}` };
    • src/index.js:356if (existsSync(sibling)) return { argv: [process.execPath], cliJs: sibling, display: `node ${sibling}` };
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般13 处命中
    • src/index.js:77if (process.env.DSH_HOME && process.env.DSH_HOME.length > 0) return process.env.DSH_HOME;
    • src/index.js:79return join(process.env.APPDATA || join(homedir(), "AppData", "Roaming"), "dsh");
    • src/index.js:81return join(process.env.XDG_CONFIG_HOME || join(homedir(), ".config"), "dsh");
    • src/index.js:355const sibling = join(process.env.APPDATA || join(homedir(), "AppData", "Roaming"), "npm", "node_modules", "npm", "bin", …
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般4 处命中
    • scripts/test-routes.mjs:33const plugin = await import("../src/index.js");
    • scripts/test-updater.mjs:66const module = await import(`data:text/javascript,${encodeURIComponent(harness)}`);
    • scripts/test-updater.mjs:675const stagedModule = await import(`data:text/javascript,${encodeURIComponent(stagedHarness)}`);
    • scripts/test-updater.mjs:784const { swapStagedTree: swapOnDisk } = await import(pathToFileURL(realHarnessPath).href);
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 接触凭据或密钥credentials一般2 处命中
    • src/client.js:97credentials: "same-origin",
    • src/client.js:106const res = await fetch(`${ROUTE}${path}`, { method: "GET", credentials: "same-origin" });
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
以 shell 执行命令shell-exec高关注4
可执行外部程序spawns-processes高关注1
发起网络请求network需留意44
写入文件writes-files需留意28
读取文件reads-files一般26
读取环境变量reads-env一般13
动态加载模块dynamic-import一般4
接触凭据或密钥credentials一般2

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 7 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件