D

dsh-win32

github.com/sjh9714/dsh-win32

v0.17.14 开发与运行时 可执行外部程序以 shell 执行命令写入文件
认证 L1已扫描 ✓健康 B/80周下载 816

Fix and diagnose DeepSeek Harness on native Windows. Official PowerShell, Workspace Write, shortcuts, and legacy preset repair. No WSL.

该插件尚未翻译,显示作者原文。

dshdsh-plugindsh-pluginsdeepseek-harnessdeepseekwindowswin32native-windows
发布
2026-09-24

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注9 处命中
    • lib/console-list.js:21import { execFileSync } from 'node:child_process';
    • lib/index.js:10import { spawnSync } from 'node:child_process';
    • lib/inspector.js:13import { execFileSync } from 'node:child_process';
    • lib/terminal-wrap.js:18import { spawnSync } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注9 处命中
    • lib/console-list.js:173run: (helper, shellPid, timeoutMs) => execFileSync(process.execPath, [helper, String(shellPid)], {
    • lib/inspector.js:16exec: (file, args) => execFileSync(file, args, {
    • lib/verify.js:109return execFileSync(file, args, {
    • bin/cli.mjs:37return execFileSync(file, args, { encoding: 'utf8', windowsHide: true, stdio: ['ignore', 'pipe', 'ignore'] })
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意23 处命中
    • lib/console-list.js:97writeFileSync(path, [
    • lib/preset-install.js:64mkdirSync(targetDir, { recursive: true });
    • lib/preset-install.js:67writeFileSync(join(targetDir, 'agent.cordis.yml'), roster);
    • lib/preset-install.js:68writeFileSync(join(targetDir, 'preset.yml'), readFileSync(join(sourceDir, 'preset.yml'), 'utf8'));
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 启动伪终端spawns-pty需留意9 处命中
    • lib/console-list.js:17* node-pty already ships the binding, so a one-shot helper script is enough.
    • lib/console-list.js:47* regression here rather than a moved file in node-pty. Nothing else says so,
    • lib/console-list.js:68// node-pty is subprocess-local's own dependency, so resolving through it
    • lib/console-list.js:69// also covers profiles where this package does not depend on node-pty.
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 可终止进程kills-processes需留意2 处命中
    • lib/inspector.js:21kill: (pid, signal) => { process.kill(pid, signal); },
    • lib/inspector.js:22terminate: pid => { process.kill(pid); },
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 发起网络请求network需留意1 处命中
    • bin/cli.mjs:517response = await fetch(BUSYBOX_URL)
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本:prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 读取文件reads-files一般44 处命中
    • lib/console-list.js:78if (existsSync(utils))
    • lib/persona-diagnostic.js:80const source = readFileSync(path, 'utf8');
    • lib/preset-install.js:38if (explicit !== undefined && existsSync(explicit))
    • lib/preset-install.js:50if (existsSync(candidate))
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般20 处命中
    • lib/preset-install.js:22return process.env.DSH_HOME ?? join(homedir(), '.dsh');
    • lib/preset-install.js:37const explicit = process.env.DSH_WINDOWS_BASH;
    • lib/preset-install.js:41process.env.ProgramFiles,
    • lib/preset-install.js:42process.env['ProgramFiles(x86)'],
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般3 处命中
    • lib/console-list.js:98`const { loadNativeModule } = require(${JSON.stringify(utils)})`,
    • lib/verify.js:647export async function composeOfficialHarness(tree, load = async (name) => import(__rewriteRelativeImportExtension(pathTo…
    • bin/cli.mjs:121const loadable = tryExec(process.execPath, ['-e', 'require(process.argv[1])', dirname(manifest)]) !== undefined
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 文中出现远程脚本地址remote-url-reference一般2 处命中
    • docs/windows-details.md:80irm https://raw.githubusercontent.com/sjh9714/dsh-win32/master/install.ps1 | iex
    • bin/cli.mjs:506const BUSYBOX_URL = 'https://frippery.org/files/busybox/busybox64.exe'
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注9
以 shell 执行命令shell-exec高关注9
写入文件writes-files需留意23
启动伪终端spawns-pty需留意9
可终止进程kills-processes需留意2
发起网络请求network需留意1
清单可疑manifest-obfuscation需留意1
读取文件reads-files一般44
读取环境变量reads-env一般20
动态加载模块dynamic-import一般3
文中出现远程脚本地址remote-url-reference一般2

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情 →
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

可信度

80 健康分 B 扣分项下方逐条附证据
  • -10被版本门禁拦下:与当前 dsh 基线不兼容major
  • -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-subprocess-local': '>=0.1.0-rc.5 <0.1.0-rc.7'}

认证等级 L1

  • L0内容完整性✓sha512-EmUPQQUSfLwqcjum… 与本地 tarball 复算一致
  • L1来源✓维护者 jinhyuk9714,仓库 sjh9714/dsh-win32(未做仓库审计)
  • L2发行—被版本门禁拦下(与本站基线 dsh 版本不兼容)
  • L3生态—声明与实物不符:peer-static-import-unsatisfied
  • L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息

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

维护者
jinhyuk9714
仓库
https://github.com/sjh9714/dsh-win32
许可
MIT
最后发布
2026-09-24
周下载
816
star
120

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

认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。

← 返回全部插件