D

dsh-client-ui-plugin-manager

@linxin666/dsh-client-ui-plugin-manager

v0.4.6 市场与管理 可执行外部程序写入文件发起网络请求

DeepSeek Harness (DSH) 客户端插件管理器与生命周期控制界面 已安装插件版本检查 · 一键批量更新 · 运行时兼容性门禁 · 安全回滚 · 双通道

作者原文(英文)

Update checking for the dsh web GUI's official Plugins page: compares installed plugins against the version their registry source serves, gates the update on the DSH runtime minimum the release declares, and drives the update through the official installe

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

分类
market
发布
2026-10-10
版本
v0.4.6

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注2 处命中
    • lib/index.js:1import { spawn } from "node:child_process";
    • lib/index.js:2671const cp = require('node:child_process');
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意14 处命中
    • lib/index.js:196await copyFile(patchPath, `${patchPath}.bak-plugin-manager`).catch(() => {});
    • lib/index.js:197await writeFile(`${patchPath}.tmp`, text, { mode: 384 });
    • lib/index.js:198await rename(`${patchPath}.tmp`, patchPath);
    • lib/index.js:787await copyFile(packageJsonPath, `${packageJsonPath}.bak-plugin-manager`).catch(() => {});
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意5 处命中
    • lib/client.js:1038fetch(ENDPOINT, {
    • lib/client.js:1102const response = await fetch(path, {
    • lib/index.js:2360* the npm `undici` copy replaces the legacy `undici.globalDispatcher.1` slot
    • lib/index.js:2361* Node's built-in `fetch()` reads. That cross-major wrapper drops the
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 可终止进程kills-processes需留意1 处命中
    • lib/index.js:2676const alive = (pid) => { try { process.kill(pid, 0); return true; } catch { return false; } };
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 启动伪终端spawns-pty需留意1 处命中
    • lib/index.js:1341if (process.platform === "win32" && command.toLowerCase().endsWith(".cmd")) return spawn("cmd.exe", windowsCmdShimArgs(c…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 读取文件reads-files一般17 处命中
    • lib/index.js:495text = await readFile(patchPath, "utf8");
    • lib/index.js:581const parsed = JSON.parse(stripBom(readFileSync(join(root, "profile-selection", "state.json"), "utf8")));
    • lib/index.js:611const parsed = JSON.parse(stripBom(readFileSync(manifestPath, "utf8")));
    • lib/index.js:759const text = await readFile(packageJsonPath, "utf8");
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般12 处命中
    • lib/index.js:538function resolveDshHome(env = process.env, home = homedir()) {
    • lib/index.js:571function desktopSelectedProfile(env = process.env) {
    • lib/index.js:675function resolveProfile(argv = process.argv, env = process.env, launched, desktopLauncher = isPackagedDesktopArgv(argv))…
    • lib/index.js:1162function findDshBinary(env = process.env, platform = process.platform, exists = existsSync, hostEntryPath = process.argv…
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般5 处命中
    • lib/types/host/gateway.d.ts:126export declare function spawnDsh(binary: string, args: string[], env: NodeJS.ProcessEnv): import("child_process").ChildP…
    • …es/client/PluginListToolbar.d.ts:44export declare function PluginListToolbar(props: PluginListToolbarProps): import("react").JSX.Element;
    • …es/client/PluginUpdatePatch.d.ts:70export declare function PluginUpdatePatch(props: PluginUpdatePatchProps): import("react").JSX.Element | null;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注2
写入文件writes-files需留意14
发起网络请求network需留意5
可终止进程kills-processes需留意1
启动伪终端spawns-pty需留意1
读取文件reads-files一般17
读取环境变量reads-env一般12
动态加载模块dynamic-import一般5

这份报告的口径

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

依赖安全公告

这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情 →
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件