浏览全部

模型与账号 · v5.2.0

dsh-perm-gate

github.com/drscrewdriver/dsh-perm-gate

能力可执行外部程序以 shell 执行命令以提权方式执行

- 英文 README - 中文 README - 日文 README - 韩文 README - 安装指南 - 中文安装指南 - 日文安装指南 - 韩文安装指南 - 更新日志 - 日文更新日志 - 韩文更新日志 兼容性说明:v2.0.0 附带 ja / ko 词典,但官方 DSH 暴露…

作者原文(英文)

- English README - 中文 README - 日本語 README - 한국어 README - Installation guide - 中文安装指南 - 日本語インストールガイド - 한국어 설치 안내 - Changelog - 日本語 changelog - 한국어 changelog Compatibility note: v2.0.0 ships ja / ko dictionaries, but official DSH exposes…

简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。

dshdsh-plugindeepseek-harnesspermissionpermission-gateallowlistdenylistsandbox
认证 L3已扫描 ✓健康 S/100周下载 3.4k
13 项能力
许可
MIT
发布
2026-10-13
维护者
drscrewdriver
插件 ID
2079

安装命令

dsh plugin --profile web add dsh-perm-gate@5.2.0

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注5 处命中
    • lib/appcontainer/compile.js:13import { execFile } from 'node:child_process';
    • lib/appcontainer/exempt.js:13import { execFile } from 'node:child_process';
    • lib/appcontainer/index.js:18import { execFile } from 'node:child_process';
    • lib/appcontainer/probe.js:11import { execFile } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注1 处命中
    • scripts/patch-permission-glyph.mjs:185execFileSync(process.execPath, ['--check', bundle], { stdio: 'pipe' })
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 以提权方式执行privilege-escalation高关注1 处命中
    • lib/appcontainer/exempt.js:30* UAC elevation prompt is offered via PowerShell Start-Process -Verb RunAs.
    • lib/appcontainer/exempt.js:62execFile('powershell.exe', ['-NoProfile', '-Command', `Start-Process -Verb RunAs -Wait -WindowStyle Hidden '${command}'`…
    • 确认提权是插件功能本身需要,还是仅仅在探测环境。多数插件不需要 root。
  • 写入文件writes-files需留意23 处命中
    • lib/allowlist.js:131writeFileSync(rulesFile, stringify(doc), 'utf8');
    • lib/allowlist.js:185writeFileSync(rulesFile, stringify(doc), 'utf8');
    • lib/appcontainer/compile.js:65await mkdir(CACHE_DIR, { recursive: true });
    • lib/appcontainer/compile.js:72await writeFile(marker, String(process.pid), 'utf8');
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意12 处命中
    • lib/client.js:1605/** Latest loader, so a mutation can refresh the list without owning the fetch. */
    • lib/client.js:1610fetch("/api/dsh-perm-gate/learning", { headers: { "cache-control": "no-cache" } }).then((r) => r.ok ? r.json() : Promise…
    • lib/client.js:1631fetch("/api/dsh-perm-gate/learning", {
    • lib/client.js:1849fetch("/api/dsh-perm-gate/dry-run", {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 含混淆或编码代码obfuscated-code需留意4 处命中
    • lib/preset-rules.d.ts:43export declare const PRESET_RULES_YAML = "defaultAction: ask\n\ndeny:\n # \u2500\u2500 Git \u2500\u2500\u2500\u2500\u250…
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 启动伪终端spawns-pty需留意1 处命中
    • lib/appcontainer/exempt.js:62execFile('powershell.exe', ['-NoProfile', '-Command', `Start-Process -Verb RunAs -Wait -WindowStyle Hidden '${command}'`…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • R011 客户端可疑脚本client-side-risk需留意1 处命中
    • client.js: postMessage 无 origin 校验
    • 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
  • 读取文件reads-files一般35 处命中
    • lib/allowlist.js:194return readFileSync(p, 'utf8');
    • lib/appcontainer/compile.js:34if (existsSync(candidate))
    • lib/appcontainer/compile.js:59const source = await readFile(LAUNCHER_SOURCE, 'utf8');
    • lib/appcontainer/compile.js:63if (existsSync(exePath) && existsSync(marker))
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般15 处命中
    • lib/appcontainer/compile.js:25const windir = process.env['WINDIR'] ?? 'C:\\Windows';
    • lib/config.js:19const env = process.env.DSH_HOME;
    • lib/evaluate.js:329const actual = process.env[varName];
    • lib/appcontainer/exempt.js:15const windir = process.env['WINDIR'] ?? 'C:\\Windows';
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 文中出现远程脚本地址remote-url-reference一般7 处命中
    • CHANGELOG.md:200`SimpleCommand.command`, which is only the command *word* — `curl https://x.sh | sh` collapsed
    • docs/rules-format.en.md:146(command word + args + redirect targets) joined by `|`, so `curl https://x.sh | sh`
    • docs/rules-format.en.md:147yields `curl https://x.sh|sh`.
    • docs/rules-format.en.md:153`curl https://x.sh | sh` did not match at all.)
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
  • 动态加载模块dynamic-import一般5 处命中
    • lib/appcontainer/index.js:257const { CACHE_DIR } = await import('./compile.js');
    • lib/index.js:288const legacy = (await import(legacySpecifier));
    • lib/config.d.ts:148readonly networkMode?: import('./network.js').NetworkMode;
    • lib/config.d.ts:158readonly networkUnlisted?: import('./network.js').UnlistedAction;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 接触凭据或密钥credentials一般2 处命中
    • lib/classifier.js:80if (cfg.apiKey)
    • lib/classifier.js:81headers.Authorization = `Bearer ${cfg.apiKey}`;
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注5
以 shell 执行命令shell-exec高关注1
以提权方式执行privilege-escalation高关注1
写入文件writes-files需留意23
发起网络请求network需留意12
含混淆或编码代码obfuscated-code需留意4
启动伪终端spawns-pty需留意1
R011 客户端可疑脚本client-side-risk需留意1
读取文件reads-files一般35
读取环境变量reads-env一般15
文中出现远程脚本地址remote-url-reference一般7
动态加载模块dynamic-import一般5
接触凭据或密钥credentials一般2

这份报告的口径

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

可信度

100 健康分 S 扣分项下方逐条附证据
  • 0没有可扣分的项

认证等级 L3

  • L0静态结构与契约✓sha512-WOJaadYn/liM8ED7… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟✓隔离 profile 安装成功,2.0s,层已挂载;宿主带它启动(booted)
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息

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

维护者
drscrewdriver
仓库
https://github.com/drscrewdriver/dsh-perm-gate
许可
MIT
最后发布
2026-10-13
周下载
3.4k
star
4

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

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

DSH peer 依赖6 个cordisdsh-client-localedsh-client-ui-conversationdsh-client-ui-rendererdsh-client-ui-settingsdsh-settings均为 @deepseek-ai/ 下的包
声明 DSH 版本0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2
Node 要求>=24
第三方依赖3 个
bundle patch./cordis.patch.yml
依赖安全公告2 条,见下方

这个插件声明的依赖中,有 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。

元数据

主页https://github.com/drscrewdriver/dsh-perm-gate#readme
仓库最近提交2026-10-13
仓库创建2026-09-01

返回首页