dsh-tui
v0.20.0
开发与运行时
可执行外部程序以 shell 执行命令写入文件
omdsh 是一个专注、键盘优先的 DeepSeek Coding Agent,构建于 DeepSeek Harness 插件架构之上,并受到 oh-my-pi 出色交互体验以及最初的 Pi Agent Harness 的启发。
作者原文(英文)
Library-only Cordis plugin suite for DeepSeek Harness terminal presentation and interaction
中文简介由 DeepSeek 模型翻译,仅供参考。
omdshoh-my-dshdeepseek-harnessdshplugindsh-plugintuicordis
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注4需留意4一般14未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注12 处命中lib/commands/auth.js:2import { spawn } from 'node:child_process';lib/input/clipboard.js:5import { spawn } from 'node:child_process';lib/commands/diff.js:2import { execFile } from 'node:child_process';lib/input/external-editor.js:5import { spawnSync } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注1 处命中lib/session/project-context.js:3const runGit = (cwd, args) => execFileSync('git', ['-C', cwd, ...args], {- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意25 处命中lib/session/composer-drafts.js:86mkdirSync(directory, { recursive: true, mode: 0o700 });lib/session/composer-drafts.js:93writeFileSync(temp, data, { mode: 0o600 });lib/session/composer-drafts.js:95renameSync(temp, path);lib/session/composer-drafts.js:101clear(id) { rmSync(this.#directory(id), { recursive: true, force: true }); }- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 可终止进程
kills-processes需留意1 处命中lib/runtime/provider-local.js:2985process.kill(process.pid, 'SIGTSTP');- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 发起网络请求
network需留意1 处命中lib/runtime/startup-notices.js:42const response = await fetch(`https://registry.npmjs.org/${encodeURIComponent(packageName)}/latest`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 含混淆或编码代码
obfuscated-code需留意1 处命中lib/chrome/renderer.js:10const UNSAFE_CONTROL = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/gu;- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 接触凭据或密钥
credentials一般255 处命中lib/commands/auth.js:1/** Interactive credential commands backed by the Harness credential and settings seams. */lib/commands/auth.js:5import { credentialKey, credentialKeyId, credentialKeyScope, credentialRef, isCredentialKeySegment, parseCredentialKey, …lib/commands/auth.js:9export const inject = ['commands', 'credentials', 'settings', 'tui', 'llm'];lib/commands/auth.js:11export const DEEPSEEK_API_KEY = credentialRef('DEEPSEEK_API_KEY');- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般22 处命中lib/session/composer-drafts.js:53if (!existsSync(path))lib/session/composer-drafts.js:68const data = new Uint8Array(readFileSync(join(this.#directory(id), record.blob + '.image')));lib/session/composer-drafts.js:91if (!existsSync(path)) {lib/input/editor-discovery.js:15if (!statSync(path).isFile())- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般22 处命中lib/input/clipboard.js:7export function clipboardCommand(platform = process.platform, env = process.env) {lib/input/clipboard.js:68const env = options.env ?? process.env;lib/input/clipboard.js:112: process.env.WAYLAND_DISPLAYlib/input/clipboard.js:114: process.env.DISPLAY ? ['xclip', '-selection', 'clipboard', '-o'] : undefined;- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般15 处命中lib/runtime/image-preview.js:13const { default: sharp } = await import('sharp');lib/definition.d.ts:144documentImage?: import('./chrome/terminal-images.ts').PreviewImage;lib/chrome/md-style.d.ts:18mathMode?: import('./math.ts').MathMode;lib/chrome/md-style.d.ts:19mermaidMode?: import('./mermaid.ts').MermaidMode;- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 12 |
| 以 shell 执行命令 | shell-exec | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 25 |
| 可终止进程 | kills-processes | 需留意 | 1 |
| 发起网络请求 | network | 需留意 | 1 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 255 |
| 读取文件 | reads-files | 一般 | 22 |
| 读取环境变量 | reads-env | 一般 | 22 |
| 动态加载模块 | dynamic-import | 一般 | 15 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 251 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 4 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | fflate | CVE-2026-45820 | fflate unzipSync can enter an infinite loop when parsing malformed ZIP64 archives 修复版本:0.4.9, 0.5.4, 0.6.11 详情 → |
| 未分级 | sharp | GHSA-f88m-g3jw-g9cj | sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591 修复版本:0.35.0 详情 → |
| 未分级 | sharp | GHSA-rgj7-g3m4-5g8c | sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545 修复版本:0.35.4 详情 → |
| 未分级 | sharp | GHSA-wq5f-xc86-pv6w | sharp : Vulnerability in librsvg dependency CVE-2026-96889 修复版本:0.35.5 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。