dsh-ssh
github.com/zhu1090093659/dsh-web
dsh-web 是面向 DeepSeek Harness(DSH)Web GUI 与官方桌面客户端的模块化插件生态与 AI 智能体开发工作台。它为深度用户与开发者提供任务自动化看板(Cron 定时调度)、手机与跨设备远程控制、SSH 远程终端与集群运维、Git 提交历史图谱与多 Agent Worktree 隔离、全量会话归档管理、Token 用量与成本统计,以及一站式主题皮肤与桌面宠物工坊。用户既可以通过官方 profile 机制将插
作者原文(英文)
Remote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster executi
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注3 处命中lib/index.js:7import { spawn } from "node:child_process";…/types/engine/proxy-command.d.ts:9import { type ChildProcess } from 'node:child_process';src/engine/proxy-command.ts:10import { spawn, type ChildProcess } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意20 处命中lib/index.js:460renameSync(this.path, `${this.path}.corrupt-${Date.now()}`);lib/index.js:470if (!existsSync(dir)) mkdirSync(dir, {lib/index.js:475writeFileSync(tmp, JSON.stringify(file, null, 2) + "\n", {lib/index.js:479renameSync(tmp, this.path);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意17 处命中src/client/api.ts:239const response = await fetch(SSH_API.hosts + query({ query: queryText }))src/client/api.ts:245const response = await fetch(SSH_API.hosts, {src/client/api.ts:255const response = await fetch(SSH_API.hosts + query({ alias }), {src/client/api.ts:265const response = await fetch(SSH_API.hosts + query({ alias }), { method: 'DELETE' })- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 含混淆或编码代码
obfuscated-code需留意12 处命中lib/types/index.d.ts:75export declare const SSH_GUIDANCE = "\u672C\u673A\u5DF2\u5B89\u88C5 dsh-ssh \u63D2\u4EF6\uFF08DSH \u8FDC\u7A0B SSH \u8FD…- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 可终止进程
kills-processes需留意4 处命中lib/index.js:585if (group) process.kill(-pid, "SIGTERM");lib/index.js:590if (group) process.kill(-pid, "SIGKILL");src/engine/proxy-command.ts:105if (group) process.kill(-pid, 'SIGTERM')src/engine/proxy-command.ts:110if (group) process.kill(-pid, 'SIGKILL')- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- R011 客户端可疑脚本
client-side-risk需留意1 处命中- api.ts: postMessage 无 origin 校验
- 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
- 接触凭据或密钥
credentials一般85 处命中lib/index.js:184* standard `~/.ssh/config` for one-shot import. Secrets (passwords,lib/index.js:207if (auth.kind !== "key" && auth.kind !== "password" && auth.kind !== "agent") return "auth.kind must be key, password or…lib/index.js:209if (auth.kind === "password" && auth.password !== void 0 && typeof auth.password !== "string") return "auth.password mus…lib/index.js:250/** Secret-free projection for the browser and agent surfaces. */- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般42 处命中lib/index.js:91names = readdirSync(prefix);lib/index.js:102if (!/[*?]/.test(full)) return existsSync(full) ? [full] : [];lib/index.js:107return statSync(path).isFile();lib/index.js:126text = readFileSync(key, "utf8");- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般15 处命中…pes/client/panel/ClusterTab.d.ts:7export declare function ClusterTab({ api }: ClusterTabProps): import("react").JSX.Element;lib/types/engine.d.ts:65ls(alias: string, path: string): Promise<import('./protocol.ts').RemoteDirEntry[]>;src/engine.ts:118async ls(alias: string, path: string): Promise<import('./protocol.ts').RemoteDirEntry[]> {…client/panel/HostFormDialog.d.ts:12export declare function HostFormDialog({ api, editing, onClose, onSaved }: HostFormDialogProps): import("react").JSX.Ele…- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般14 处命中lib/index.js:33function resolveDshHome(env = process.env, home = homedir()) {lib/index.js:401user: block.props.user ?? process.env.USER ?? "root",lib/index.js:488const sock = process.env.SSH_AUTH_SOCK;lib/index.js:540file: process.env.ComSpec ?? "cmd.exe",- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 文中出现远程脚本地址
remote-url-reference一般1 处命中src/client/panel/xterm.css.ts:2export const XTERM_CSS: string = "/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c…- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 写入文件 | writes-files | 需留意 | 20 |
| 发起网络请求 | network | 需留意 | 17 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 12 |
| 可终止进程 | kills-processes | 需留意 | 4 |
| R011 客户端可疑脚本 | client-side-risk | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 85 |
| 读取文件 | reads-files | 一般 | 42 |
| 动态加载模块 | dynamic-import | 一般 | 15 |
| 读取环境变量 | reads-env | 一般 | 14 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 69 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | ws | CVE-2026-45736 | ws: Uninitialized memory disclosure 修复版本:8.20.1 详情 → |
| 中 | ws | CVE-2026-48779 | ws: Memory exhaustion DoS from tiny fragments and data chunks 修复版本:5.2.5, 6.2.4, 7.5.11 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。