dsh-plugin-console
github.com/AlexYin-Tongji/dsh-plugin-console
v0.3.2
市场与管理
可执行外部程序写入文件可终止进程
`dsh-plugin-console` 是一个可安装到 DeepSeek Harness Web profile 的插件管理器:它把社区目录、当前 profile 的包清单和 Loader 运行态放在 Settings 的一级“插件管理”页面里,并通过官方 `dsh plugin` 命令完成安装、更新和删除。
作者原文(英文)
DSH Plugin Console: a verified community catalog, profile manager, and Harness updater for DeepSeek Harness
中文简介由 DeepSeek 模型翻译,仅供参考。
deepseek-harnessdshdsh-pluginplugin-managerplugin-consoleplugin-storecordis
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注4需留意5一般14未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中lib/index.js:10import { spawn } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意24 处命中lib/index.js:25await mkdir(dirname(path), {lib/index.js:33await handle.writeFile(content, "utf8");lib/index.js:38await rename(temporary, path);lib/index.js:996await mkdir(dirname(targetRoot), {- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 可终止进程
kills-processes需留意4 处命中lib/index.js:1043process.kill(-pid, 0);lib/index.js:1075process.kill(-pid, "SIGTERM");lib/index.js:1084process.kill(-pid, "SIGKILL");lib/index.js:2135process.kill(pid, 0);- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 发起网络请求
network需留意4 处命中lib/index.js:1641const rootResponse = await fetch(`http://127.0.0.1:${String(port)}/`, {lib/index.js:1654const bundleResponse = await fetch(`http://127.0.0.1:${String(port)}${clientUrl}`, {lib/index.js:1941const rootResponse = await fetch(`http://127.0.0.1:${String(port)}/`, {lib/index.js:1966const bundleResponse = await fetch(`http://127.0.0.1:${String(port)}${url}`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 动态执行代码
dynamic-code需留意1 处命中lib/index.js:3708return new Function("process", `"use strict"; return (${expression});`)(process);- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 读取文件
reads-files一般12 处命中lib/index.js:47return await handle.readFile("utf8");lib/index.js:426const record = cacheRecord(JSON.parse(await readFile(this.options.cachePath, "utf8")), this.options.sourceUrl);lib/index.js:1172const manifest = JSON.parse(readFileSync(config.packageJsonPath, 'utf8'))lib/index.js:1710document = parseProbeDocument(await readFile(prepared.resultPath, "utf8"), request, prepared.nonce, running.child.pid);- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般6 处命中lib/index.js:684else for (const dir of (process.env.PATH ?? "").split(delimiter).filter(Boolean)) {lib/index.js:1360...process.env,lib/index.js:2872env: { ...process.env },cordis.patch.yml:5catalogUrl: !!js process.env.DSH_PLUGIN_CONSOLE_CATALOG_URL ?? 'https://awesome-dsh-plugin.com/plugins.json'- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 接触凭据或密钥
credentials一般5 处命中lib/index.js:108const redacted = value.replace(/(https?:\/\/)([^\s/@:]+):([^\s/@]+)@/g, "$1***:***@").replace(/(token|password|secret|ap…SECURITY.md:18- whether the issue can mutate a profile, execute package code, expose credentials, or bypass origin/loopback checks;SECURITY.md:21Do not include API keys, registry credentials, private repository URLs, or complete profile backups.SECURITY.md:42The activation canary executes the updated plugin code to detect initialization failures. Its filesystem roots and depen…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般1 处命中lib/index.js:1549if (typeof specifier !== 'string' || specifier.length === 0) throw new Error('client factory called require() with a non…- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 使用 vm 模块做隔离
uses-vm-module一般1 处命中lib/index.js:13import { Script, createContext } from "node:vm";- 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 24 |
| 可终止进程 | kills-processes | 需留意 | 4 |
| 发起网络请求 | network | 需留意 | 4 |
| 动态执行代码 | dynamic-code | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 12 |
| 读取环境变量 | reads-env | 一般 | 6 |
| 接触凭据或密钥 | credentials | 一般 | 5 |
| 动态加载模块 | dynamic-import | 一般 | 1 |
| 使用 vm 模块做隔离 | uses-vm-module | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 11 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 3 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | semver | CVE-2022-25883 | semver vulnerable to Regular Expression Denial of Service 修复版本:5.7.2, 6.3.1, 7.5.2 详情 → |
| 中 | 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 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。