dsh-remote
github.com/flymysql/dsh-remote
由 @flymysql 维护 · 主页 · 用量统计 · 博客 · 讨论区 · Issue · English
作者原文(英文)
Remote-work assistant for DeepSeek Harness: connect SSH (password/key/agent/keyboard-interactive/proxy jump), pick a remote workspace, operate on it with 22 rw_* tools (incl. rw_edit/rw_stat/rw_mkdir/rw_remove/rw_move/rw_forward), conflict-aware mirror sy
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注3 处命中lib/credential.js:15import { execFile } from 'node:child_process'lib/index.js:23import { execFile } from 'node:child_process'lib/openssh.js:58import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意61 处命中lib/credential.js:92mkdirSync(secretsDir || '.', { recursive: true })lib/credential.js:93writeFileSync(joinPath(secretsDir || '.', acc + '.bin'), b64, 'utf8')lib/credential.js:170try { unlinkSync(joinPath(secretsDir || '.', acc + '.bin')) } catch { /* absent */ }lib/forwards.js:43mkdirSync(path.dirname(this.file), { recursive: true })- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 启动伪终端
spawns-pty需留意29 处命中lib/index.js:202* whose node-pty ships Linux prebuilds — older ones cannot boot `dsh web` onlib/index.js:2289'READ-ONLY health check of the remote machine\'s DSH install: platform/arch, node/npm, the existing dsh and its version,…lib/index.js:2327` native-module (node-pty) prebuild: ${facts.ptyPrebuild || 'unknown'}`,lib/pool.js:133exec(cmd, opts) { return this.delegate.exec(cmd, opts) }- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 发起网络请求
network需留意7 处命中lib/client.js:700const res = await fetch(apiPath(path), opts)lib/client.js:710const res = await fetch(apiPath(path), opts)lib/client.js:1712// a superseded fetch (fresh navigation, picker reopen) is droppedlib/client.js:1805// requests share one in-flight fetch.- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般95 处命中lib/binding.js:51if (!local || !root || !existsSync(root)) return { mirrorDir, remotePath, machine }lib/binding.js:55hostDirs = readdirSync(root)lib/binding.js:61if (!statSync(hostPath, { throwIfNoEntry: false })?.isDirectory?.()) continuelib/binding.js:64entries = readdirSync(hostPath)- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般48 处命中lib/client.js:77'settings.password': '密码',lib/client.js:355'settings.password': 'Password',lib/client.js:950password: form.password, privateKeyPath: form.privateKeyPath, passphrase: form.passphrase,lib/client.js:1159username: form.username, password: form.password, privateKeyPath: form.privateKeyPath, passphrase: form.passphrase,- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般14 处命中lib/index.js:215const env = process.env.DSH_HOMElib/index.js:277const env = process.env.DSH_HOMElib/openssh.js:139writeFileSync(js, 'process.stdout.write((process.env.DSH_REMOTE_SSH_SECRET || "") + "\\n")\n')lib/openssh.js:159...process.env,- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般1 处命中lib/update.js:194const { gunzipSync } = await import('node:zlib')lib/update.js:335* and, for CJS modules pulled in through `import()`, `require.cache`.- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 写入文件 | writes-files | 需留意 | 61 |
| 启动伪终端 | spawns-pty | 需留意 | 29 |
| 发起网络请求 | network | 需留意 | 7 |
| 读取文件 | reads-files | 一般 | 95 |
| 接触凭据或密钥 | credentials | 一般 | 48 |
| 读取环境变量 | reads-env | 一般 | 14 |
| 动态加载模块 | dynamic-import | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 32 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)
可信度
- -5需要批准构建脚本才能装(本站不代跑第三方代码)warn
认证等级 L1
- L0内容完整性✓sha512-oyncSNCAOyYnvgds… 与本地 tarball 复算一致
- L1来源✓维护者 flymysql,仓库 flymysql/dsh-remote(未做仓库审计)
- L2发行—需要批准构建脚本——本站不代跑第三方代码
- L3生态—含界面但还没有宿主启动记录
- L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- flymysql
- 仓库
- https://github.com/flymysql/dsh-remote
- 许可
- MIT
- 最后发布
- 2026-10-12
- 周下载
- 6.7k
- star
- 141
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。
DSH