市场与管理 · v0.5.45
dsh-plugin-console
Web 与桌面端均支持。英文:README.md | 中文:README.zh.md。
作者原文(英文)
Web & Desktop — both supported. English: README.md | 中文: README.zh.md。
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
dsh-plugindeepseek-harnessplugin-managerdshdsh-pluginsplugin-marketplugin-consolemarketplace
认证 L0已扫描 ✓健康 S/95周下载 3k
12 项能力安装命令
dsh plugin --profile web add @noob-stupid/dsh-plugin-console@0.5.45
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
3高关注5需留意4一般12未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注14 处命中lib/server/domain/ai-run.js:7import { spawn } from 'node:child_process'lib/server/domain/compat.js:6import { spawn } from 'node:child_process'lib/server/domain/components.js:5import { spawn } from 'node:child_process'lib/server/routes/components.js:5import { execFile } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注2 处命中lib/server/infra/fsx.js:212execFileSync('cmd.exe', ['/c', ...target.argv], { windowsHide: true, timeout: timeoutMs, stdio: 'ignore' })lib/server/infra/fsx.js:215execFileSync('rm', ['-rf', '--', dir], { timeout: timeoutMs, stdio: 'ignore' })- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- R012 改写用户 profile
profile-tamper高关注1 处命中- framework.js
- 看它改的是自己那一段还是别人的。改用户 profile 通常应由用户手动做。
- 写入文件
writes-files需留意193 处命中lib/server/domain/ai-run.js:174mkdirSync(srcDir, { recursive: true })lib/server/domain/ai-run.js:184try { rmSync(srcDir, { recursive: true, force: true }) } catch {}lib/server/domain/ai-run.js:188const timer = setTimeout(() => { try { rmSync(srcDir, { recursive: true, force: true }) } catch {} }, 30 * 60 * 1000)lib/server/domain/ai-run.js:383mkdirSync(dirname(target), { recursive: true })- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意23 处命中lib/server/domain/ai-run.js:434const probe = await fetch(healthUrl, { signal: AbortSignal.timeout(2500) })lib/client.js:1537const response = await fetch(path, body === undefinedlib/client.js:1557const response = await fetch("/plugin-console/run-suggested", {lib/client.js:1592const response = await fetch(url, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 启动伪终端
spawns-pty需留意8 处命中…rver/routes/framework-upgrade.js:659execFile('powershell.exe', ['-NoProfile', '-WindowStyle', 'Hidden', '-ExecutionPolicy', 'Bypass', '-File', ps1], { windo……rver/routes/framework-upgrade.js:669execFile('powershell.exe', ['-NoProfile', '-WindowStyle', 'Hidden', '-ExecutionPolicy', 'Bypass', '-File', ps1], { windo…lib/server/routes/framework.js:423execFile('powershell.exe', ['-NoProfile', '-WindowStyle', 'Hidden', '-ExecutionPolicy', 'Bypass', '-File', ps1], { windo…lib/server/routes/framework.js:429execFile('powershell.exe', ['-NoProfile', '-WindowStyle', 'Hidden', '-ExecutionPolicy', 'Bypass', '-File', ps1], { windo…- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 可终止进程
kills-processes需留意3 处命中lib/server/infra/exec.js:271process.kill(Number(pid), 0)SECURITY.md:91- **`process.kill(pid, 0)`**:signal `0` 的**存活探测**。不发送任何信号、无法终止进程,是 Node.js 判断「记录的组件 PID 是否还活着」的标准写法。SECURITY.md:113Known static-scanner false positives: `process.kill(pid, 0)` is a signal-0 liveness probe; `rmSync` call sites clean up …- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 运行时改写自身配置
modifies-own-manifest需留意1 处命中lib/server/domain/manifest.js:43await writeFile(join(profileDir, 'package.json'), `${JSON.stringify(manifest, null, 2)}\n`, 'utf8')- 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
- 读取文件
reads-files一般397 处命中lib/server/domain/ai-run.js:121const manifest = JSON.parse(await readFile(join(profileDir, 'package.json'), 'utf8'))lib/server/domain/ai-run.js:404if (existsSync(target) && statSync(target).size > 1024 * 1024) {lib/server/domain/ai-run.js:405jobLog(job, ` 已存在,跳过下载:${target}(${statSync(target).size} 字节)`)lib/server/domain/ai-run.js:411jobLog(job, ` 下载完成(${statSync(target).size} 字节)`)- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般27 处命中lib/server/domain/ai-run.js:230'- 禁止递归扫描目录(Get-ChildItem -Recurse、find /、rg 全盘搜索);只允许:读 ~/.openviking/、~/.dsh 顶层文件(.credentials.yaml、settings.yaml)、文档缓…lib/server/domain/ai.js:73const credFile = join(homedir(), '.dsh', '.credentials.yaml')lib/server/domain/ai.js:89* 格式:{ "vlm": { "provider": "...", "api_base": "...", "model": "..." }, "api_key": "sk-..." }lib/server/domain/ai.js:91* 2) 未配置区块 → 跟随 DSH:settings.yaml 的 agent-default-model + .credentials.yaml 的 DEEPSEEK_API_KEY。- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般24 处命中lib/server/domain/ai.js:161const override = process.env.DSH_OPENVIKING_DATA_ROOTlib/server/routes/compat.js:43const raw = Number(process.env[PREFLIGHT_TIMEOUT_ENV])lib/server/infra/exec.js:106comspec = process.env.ComSpec ?? 'cmd.exe',lib/server/infra/exec.js:108env = process.env,- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般3 处命中lib/server/domain/compat.js:100' const { pathToFileURL } = await import("node:url");',lib/server/domain/compat.js:101' await import(pathToFileURL(mainPath).href);',lib/server/domain/selfupdate.js:222// 注意:这里**不能**用解构(`const { setProfileDependency } = await import(…)`)—— 架构守卫的自由变量lib/server/domain/selfupdate.js:224const manifestModule = await import('./manifest.js')- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 14 |
| 以 shell 执行命令 | shell-exec | 高关注 | 2 |
| R012 改写用户 profile | profile-tamper | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 193 |
| 发起网络请求 | network | 需留意 | 23 |
| 启动伪终端 | spawns-pty | 需留意 | 8 |
| 可终止进程 | kills-processes | 需留意 | 3 |
| 运行时改写自身配置 | modifies-own-manifest | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 397 |
| 接触凭据或密钥 | credentials | 一般 | 27 |
| 读取环境变量 | reads-env | 一般 | 24 |
| 动态加载模块 | dynamic-import | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 102 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
95
健康分 S
扣分项下方逐条附证据
- -5cordis entry id「plugin-console」被 2 个包共用,同时安装会互相替换warn:dsh-plugin-console
认证等级 L0
- L0静态结构与契约✓sha512-qB91IOB/9t0JDnGu… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图—entry id plugin-console 被 2 个包共用
- L2隔离沙箱冒烟✓隔离 profile 安装成功,4.2s,层已挂载;宿主带它启动(booted)(前一级未通过,本项不计入等级)前一级未通过,不计入等级
- L3运行时健康监控—运行时观测到异常:spawns
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- noob-stupid
- 仓库
- https://github.com/Noob-stupid/dsh-plugin-gating-hub
- 许可
- MIT
- 最后发布
- 2026-10-11
- 周下载
- 3k
- star
- 100
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| 第三方依赖 | 0 个(纯自包含) |
|---|---|
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。) |
元数据
| 主页 | https://github.com/Noob-stupid/dsh-plugin-gating-hub#readme |
|---|---|
| 仓库最近提交 | 2026-10-14 |
| 仓库创建 | 2026-08-14 |
DSH