模型与账号 · v0.7.15
dsh-permission-rules
- 1024 商店渠道:先执行一次 npm i -g dsh1024,然后执行 dsh1024 plugin --profile web add dsh-permission-rules(计入 deepseek1024.com 的安装排名)。
作者原文(英文)
- 1024 store channel: npm i -g dsh1024 once, then dsh1024 plugin --profile web add dsh-permission-rules (counts toward the deepseek1024.com install ranking).
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add dsh-permission-rules@0.7.15
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 以提权方式执行
privilege-escalation高关注1 处命中rules/builtin-high-risk.yaml:152anyArg: ["/etc/shadow", "/etc/sudoers", "~/.ssh/**", "/root/.ssh/**", "~/.aws/**", "~/.gnupg/**", "**/.env", "**/*.pem",…- 确认提权是插件功能本身需要,还是仅仅在探测环境。多数插件不需要 root。
- 写入文件
writes-files需留意6 处命中lib/index.js:4016mkdirSync(dirname(path), { recursive: true });lib/index.js:4017writeFileSync(path, text, "utf8");scripts/repair-session-logs.mjs:381renameSync(path, backup)scripts/repair-session-logs.mjs:385writeFileSync(path, content)- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意3 处命中README-es.md:262- **Sin mutación global.** No parchea prototipos, ni reescribe `process.env`, ni reemplaza el dispatcher global de fetch…README-pt.md:262- **Sem mutação global.** Não altera protótipos, não reescreve `process.env` nem substitui o dispatcher global de fetch.rules/builtin-high-risk.yaml:127reason: "Piping a remote fetch (curl/wget) directly into a shell executes remote code and is blocked"- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 动态执行代码
dynamic-code需留意2 处命中lib/client.js:171new Function("");lib/typert.host.js:141new Function("");- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- R013 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本: prepare
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 动态加载模块
dynamic-import一般226 处命中lib/types/client/remote.d.ts:51create: () => import("zod").ZodObject<{lib/types/client/remote.d.ts:52enabled: import("zod").ZodBoolean;lib/types/client/remote.d.ts:53mode: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"deny-all">, import("zod").ZodLiteral<"whitelist">, impo…lib/types/client/remote.d.ts:54configuredMode: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"auto">, import("zod").ZodLiteral<"deny-all">,…- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般36 处命中lib/index.js:2944exists: existsSync(path),lib/index.js:3143procVersionText = readFileSync("/proc/version", "utf8");lib/index.js:3253if (existsSync(candidate)) sources.push(candidate);lib/index.js:3261if (existsSync(projectPath)) return [projectPath];- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般33 处命中lib/index.js:824const env = context.env ?? process.env;lib/index.js:2445* @param lookup - reads one environment name (the launch snapshot, or `process.env`).lib/index.js:2885* `process.env` is case-insensitive, so the uppercase/lowercase spellingslib/index.js:2896for (const name of PROXY_ENV_NAMES) previous.set(name, process.env[name]);- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 接触凭据或密钥
credentials一般8 处命中lib/index.js:2483if (parsed.username === "" && parsed.password === "") return value;lib/index.js:2485const auth = parsed.password === "" ? `${user}@` : `${user}:***@`;lib/index.js:2493if (url.username === "" && url.password === "") return void 0;lib/index.js:2494const credentials = `${decodeURIComponent(url.username)}:${decodeURIComponent(url.password)}`;- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 以提权方式执行 | privilege-escalation | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 6 |
| 发起网络请求 | network | 需留意 | 3 |
| 动态执行代码 | dynamic-code | 需留意 | 2 |
| R013 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 动态加载模块 | dynamic-import | 一般 | 226 |
| 读取文件 | reads-files | 一般 | 36 |
| 读取环境变量 | reads-env | 一般 | 33 |
| 接触凭据或密钥 | credentials | 一般 | 8 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 62 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- 0没有可扣分的项
认证等级 L3
- L0静态结构与契约✓sha512-RGC5kDWtt7V2/xdg… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟✓隔离 profile 安装成功,2.7s,层已挂载;宿主带它启动(booted)
- L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(3 个事件)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- perrylink
- 仓库
- https://github.com/PerryLink/dsh-permission-rules
- 许可
- Apache-2.0
- 最后发布
- 2026-10-10
- 周下载
- 1.6k
- star
- 124
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 11 个cordisdsh-agentdsh-client-connectiondsh-client-localedsh-client-ui-settingsdsh-client-webdsh-commandsdsh-llmdsh-sessiondsh-toolsdsh-typert-protocol均为 @deepseek-ai/ 下的包 |
|---|---|
| 声明 DSH 版本 | >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 |
| Node 要求 | ^22.19.0 || >=24.0.0 |
| 第三方依赖 | 6 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 3 条,见下方 |
这个插件声明的依赖中,有 3 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | yaml | CVE-2023-2251 | Uncaught Exception in yaml 修复版本:2.2.2 详情 |
| 低 | yaml | CVE-2026-33532 | yaml is vulnerable to Stack Overflow via deeply nested YAML collections 修复版本:1.10.3, 2.8.3 详情 |
| 低 | zod | CVE-2023-4316 | Zod denial of service vulnerability 修复版本:3.22.3 详情 |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
元数据
| 主页 | https://github.com/PerryLink/dsh-permission-rules#readme |
|---|---|
| 仓库最近提交 | 2026-10-12 |
| 仓库创建 | 2026-08-13 |
DSH