浏览全部

界面与主题 · v0.3.15

dsh-bash-terminal

github.com/MAXeaglet/dsh-bash-terminal

能力启动伪终端写入文件含混淆或编码代码

🌐 English · 社区交流:LINUX DO · GitHub。

作者原文(英文)

DSH plugin: one shell tool that runs commands through PowerShell, Git Bash, or WSL on Windows, with a user-chosen default terminal in the Web UI settings.

简介取自插件自己的 README 原文。

deepseek-harnessdshpluginterminalshellpowershellgit-bashwsl
认证 L0已扫描 ✓健康 B/85周下载 361
6 项能力
许可
MIT
发布
2026-09-11
维护者
maxeagle
插件 ID
1548

安装命令

dsh plugin --profile web add dsh-bash-terminal@0.3.15

强装后仍失败

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

源仓库无法访问 多次尝试都没连上,可能是网络问题,也可能是仓库不可达。

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
3需留意3一般18未命中
高关注需留意一般

能力清单

  • 启动伪终端spawns-pty需留意8 处命中
    • lib/terminal.js:2// ctx.subprocess.spawnTerminal (node-pty under the hood) allocates a real
    • lib/terminal.js:9// allocated directly through node-pty. Session readiness here is
    • lib/terminal.js:91* Direct node-pty handle with the same surface the official seam returns:
    • lib/terminal.js:96const mod = await import("node-pty");
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 写入文件writes-files需留意4 处命中
    • scripts/build-client.mjs:13mkdirSync(join(root, "dist"), { recursive: true });
    • scripts/build-client.mjs:14mkdirSync(join(root, "lib"), { recursive: true });
    • scripts/build-client.mjs:38writeFileSync(join(root, "lib", "client.js"), wrapper);
    • scripts/build-client.mjs:39writeFileSync(join(root, "dist", "client.js"), wrapper);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 含混淆或编码代码obfuscated-code需留意3 处命中
    • dist/client.core.js:43"shell.description": "shell \u5DE5\u5177\u6267\u884C\u547D\u4EE4\u65F6\u4F7F\u7528\u7684\u7EC8\u7AEF",
    • dist/client.js:48"shell.description": "shell \u5DE5\u5177\u6267\u884C\u547D\u4EE4\u65F6\u4F7F\u7528\u7684\u7EC8\u7AEF",
    • lib/client.js:48"shell.description": "shell \u5DE5\u5177\u6267\u884C\u547D\u4EE4\u65F6\u4F7F\u7528\u7684\u7EC8\u7AEF",
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 读取环境变量reads-env一般4 处命中
    • lib/index.js:95export function candidatePwshPaths(env = process.env) {
    • lib/index.js:113export function candidateGitBashPaths(env = process.env) {
    • lib/index.js:131export function defaultWslPath(env = process.env) {
    • lib/index.js:136function resolveAllPaths(config = {}, env = process.env) {
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般2 处命中
    • lib/terminal.js:96const mod = await import("node-pty");
    • README.md:66> `Failed to load plugins` / `require(...) missed the module table`。
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取文件reads-files一般1 处命中
    • scripts/build-client.mjs:27const core = readFileSync(join(root, "dist", "client.core.js"), "utf8");
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
启动伪终端spawns-pty需留意8
写入文件writes-files需留意4
含混淆或编码代码obfuscated-code需留意3
读取环境变量reads-env一般4
动态加载模块dynamic-import一般2
读取文件reads-files一般1

这份报告的口径

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

可信度

85 健康分 B 扣分项下方逐条附证据
  • -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-tools': '^0.1.5-rc.1', '@deepseek-ai/dsh-llm': '^0.1.5-rc.1', '@deepseek-ai/dsh-shell': '^0.1.5-rc.1', '@deepseek-ai/dsh-
  • -5cordis entry id「tool-bash-terminal」被 2 个包共用,同时安装会互相替换warn:dsh-bash-terminal-ts

认证等级 L0

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

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

维护者
maxeagle
仓库
https://github.com/MAXeaglet/dsh-bash-terminal
许可
MIT
最后发布
2026-09-11
周下载
361
star
22

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

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

DSH peer 依赖12 个cordisdsh-client-localedsh-client-storedsh-client-ui-primitivesdsh-client-ui-settingsdsh-client-ui-slotsdsh-llmdsh-sandboxdsh-settingsdsh-shelldsh-timeoutdsh-tools均为 @deepseek-ai/ 下的包
Node 要求>=20
第三方依赖2 个
bundle patch./cordis.patch.yml
依赖安全公告已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

元数据

主页https://github.com/MAXeaglet/dsh-bash-terminal#readme
仓库最近提交2026-09-11
仓库创建2026-08-13

返回首页