浏览全部

市场与管理 · v0.4.6

dsh-ssh

github.com/zhu1090093659/dsh-web

能力可执行外部程序写入文件发起网络请求

一个专用于 DeepSeek Harness (DSH) Web GUI 和官方桌面客户端的远程 Linux 服务器运维与集群管理插件:进程内持久连接池、Web GUI 主机清单管理、xterm.js 终端、可视化…

作者原文(英文)

A dedicated remote Linux server operations and cluster management plugin for DeepSeek Harness (DSH) Web GUI and official desktop client: in-process persistent connection pool, Web GUI host inventory management, xterm.js terminal, visual…

简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。

认证 L0已扫描 ✓健康 S/95周下载 25.9k
11 项能力
许可
Apache-2.0
发布
2026-10-10
维护者
linxin666
插件 ID
842

安装命令

dsh plugin --profile web add @linxin666/dsh-ssh@0.4.6

强装后仍失败

即使绕过版本门禁,这个包装上之后仍然失败。说明问题不只是版本对齐,包本身在当前环境里也跑不起来。

检测报告

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

能力清单

  • 可执行外部程序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 校验
    • 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
  • 读取文件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");
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般33 处命中
    • lib/index.js:209if (auth.kind === "password" && auth.password !== void 0 && typeof auth.password !== "string") return "auth.password mus…
    • lib/index.js:293password: payload.auth.kind === "password" ? payload.auth.password : void 0,
    • lib/index.js:329if (auth.kind === "password" && auth.password !== void 0 && typeof auth.password !== "string") throw new Error("auth.pas…
    • lib/index.js:336password: auth.kind === "password" ? auth.password : void 0,
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块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
读取文件reads-files一般42
接触凭据或密钥credentials一般33
动态加载模块dynamic-import一般15
读取环境变量reads-env一般14
文中出现远程脚本地址remote-url-reference一般1

这份报告的口径

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

可信度

95 健康分 S 扣分项下方逐条附证据
  • -5cordis entry id「ssh」被 2 个包共用,同时安装会互相替换warn:@captain1275/dsh-ssh

认证等级 L0

  • L0静态结构与契约✓sha512-JtfDtC194sgBiPuA… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图—entry id ssh 被 2 个包共用
  • L2隔离沙箱冒烟—试装未通过(force-failed)
  • L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
linxin666
仓库
https://github.com/zhu1090093659/dsh-web
许可
Apache-2.0
最后发布
2026-10-10
周下载
25.9k
star
8720

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

DSH peer 依赖1 个dsh均为 @deepseek-ai/ 下的包
Node 要求^22.19.0 || >=24.0.0
第三方依赖5 个
bundle patch./cordis.patch.yml
依赖安全公告2 条,见下方

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

等级依赖包编号摘要
中wsCVE-2026-45736ws: Uninitialized memory disclosure
修复版本:8.20.1 详情
中wsCVE-2026-48779ws: 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。

元数据

仓库最近提交2026-10-14
仓库创建2026-08-12

返回首页