dsh-desktop
v1.0.3
其他
可执行外部程序写入文件发起网络请求
DeepSeek Harness 的跨平台桌面外壳
作者原文(英文)
Cross-platform desktop shell for DeepSeek Harness
中文简介由 DeepSeek 模型翻译,仅供参考。
deepseek-harnessdsh-plugindesktopelectron
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注5需留意3一般15未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注3 处命中lib/runtime.js:1import { spawn } from 'node:child_process';lib/shortcuts.js:3import { spawn } from 'node:child_process';lib/types/runtime.d.ts:1import { spawn, type ChildProcess } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意12 处命中lib/runtime.js:62await mkdir(destination, { recursive: true });lib/runtime.js:68await mkdir(path, { recursive: true });lib/runtime.js:72await mkdir(dirname(path), { recursive: true });lib/runtime.js:134await mkdir(dirname(destination), { recursive: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意2 处命中lib/electron-entry.cjs:13const socket = net.connect(port, '127.0.0.1')lib/client.js:129constructor(fetcher = (input, init) => globalThis.fetch(input, init)) {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 含混淆或编码代码
obfuscated-code需留意2 处命中lib/client.js:44appMenuDescription: "\u5728\u7CFB\u7EDF\u5E94\u7528\u83DC\u5355\u4E2D\u521B\u5EFA\u5FEB\u6377\u5165\u53E3",lib/client.js:46loginDescription: "\u767B\u5F55\u7CFB\u7EDF\u540E\u81EA\u52A8\u542F\u52A8 DeepSeek Harness",- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 启动伪终端
spawns-pty需留意1 处命中lib/shortcuts.js:169const child = spawn('powershell.exe', ['-NoLogo', '-NoProfile', '-NonInteractive', '-Command', script], {- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- R013 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本: prepare
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 读取环境变量
reads-env一般7 处命中lib/electron-entry.cjs:6const initial = JSON.parse(process.env.DSH_DESKTOP_INIT || 'null')lib/electron-entry.cjs:8const descriptor = process.env.DSH_DESKTOP_CONTROLlib/index.js:140const dshHome = process.env.DSH_HOME;lib/runtime.js:235...process.env,- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般5 处命中lib/electron-activate.cjs:9void import('./electron-activator.js').then(({ activateExistingInstance }) => {lib/electron-entry.cjs:7void import('./electron-shell.js').then(async ({ runElectronShell, createStreamBridge }) => {lib/electron-main.js:13const electron = await import('electron');lib/types/index.d.ts:18export declare const DESKTOP_SETTINGS_NAMESPACE: import("@deepseek-ai/dsh-settings").SettingsNamespace;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般4 处命中lib/runtime.js:99if (!existsSync(executable))lib/runtime.js:140if (!existsSync(stagedExecutable)) {lib/shortcuts.js:140if (await readFile(markerPath(path), 'utf8') === MARKER)lib/shortcuts.js:151const marker = await readFile(markerPath(path), 'utf8');- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 写入文件 | writes-files | 需留意 | 12 |
| 发起网络请求 | network | 需留意 | 2 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 2 |
| 启动伪终端 | spawns-pty | 需留意 | 1 |
| R013 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 读取环境变量 | reads-env | 一般 | 7 |
| 动态加载模块 | dynamic-import | 一般 | 5 |
| 读取文件 | reads-files | 一般 | 4 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 29 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)