浏览全部

市场与管理 · v0.2.0

dsh-plugin-store-optimized

github.com/yiqizhuapangxiema/harness-plugin-store-optimized

能力以 shell 执行命令可执行外部程序写入文件

简介:本仓库是 dsh-plugin-hub 0.1.6 的定制优化版。

作者原文(英文)

Harness Plugin Store Optimized: a customized fork of dsh-plugin-hub — configurable plugin download directory, bundle-layer conflict detection, automatic pnpm lookup, and upstream bug fixes

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

deepseek-harnessdeepseekdshcordisplugin-hubplugin-storeplugin-marketplaceweb-ui
认证 L0已扫描 ✓健康 B/80周下载 18
7 项能力
许可
MIT
发布
2026-08-17
维护者
yiqizhuapangxiwma
插件 ID
2327

安装命令

dsh plugin --profile web add dsh-plugin-store-optimized@0.2.0

强装可用 · 需绕过门禁

当前 DSH 版本上 CLI 拒绝安装这个包。用 --accept-risk 绕过门禁之后,它能装上并挂载——限制来自版本策略,不是包坏了。要用它,得自己决定这个风险值不值得承担。

检测报告

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

能力清单

  • 以 shell 执行命令shell-exec高关注4 处命中
    • lib/host/installer.js:94* NOTE: Windows .cmd shims require `shell: true`, but passing `args` together
    • lib/host/installer.js:95* with `shell: true` triggers Node DEP0190 and (worse) concatenates arguments
    • lib/host/installer.js:174? spawn(`${exe} ${args.map(escapeWinArg).join(' ')}`, { cwd, shell: true, windowsHide: true, env: { ...process.env, NO_C…
    • lib/host/publish.js:34? spawn(`${cmd} ${args.map(escapeWinArg).join(' ')}`, { cwd, shell: true, windowsHide: true, env: { ...process.env, NO_C…
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 可执行外部程序spawns-processes高关注2 处命中
    • lib/host/installer.js:13import { spawn } from 'node:child_process';
    • lib/host/publish.js:14import { spawn } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意15 处命中
    • lib/host/installer.js:58mkdirSync(dir, { recursive: true });
    • lib/host/installer.js:313writeFile(profile.packageJsonFile, `${JSON.stringify(manifest, null, 2)}\n`, 'utf8').catch((err) => {
    • lib/host/installer.js:396await mkdir(dirname(filename), { recursive: true });
    • lib/host/installer.js:398await writeFile(temporary, content.endsWith('\n') ? content : `${content}\n`, 'utf8');
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意12 处命中
    • lib/host/catalog-sync.js:5const res = await fetch(CATALOG_URL, { signal: AbortSignal.timeout(15_000) });
    • lib/host/github.js:51const res = await fetch(url, { headers: { ...this.headers(), ...extraHeaders }, signal: AbortSignal.timeout(20000) });
    • lib/host/github.js:71const res = await fetch(url, { headers: { 'User-Agent': 'dsh-plugin-hub' }, signal: AbortSignal.timeout(20000) });
    • lib/host/github.js:126const res = await fetch(`${NPM_API}/downloads/point/last-month/${encodeURIComponent(packageName)}`, { signal: AbortSigna…
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 启动伪终端spawns-pty需留意1 处命中
    • lib/host/publish.js:34? spawn(`${cmd} ${args.map(escapeWinArg).join(' ')}`, { cwd, shell: true, windowsHide: true, env: { ...process.env, NO_C…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 读取文件reads-files一般52 处命中
    • lib/host/conflict-check.js:28entries = readdirSync(dir);
    • lib/host/conflict-check.js:39st = statSync(full);
    • lib/host/conflict-check.js:67pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
    • lib/host/conflict-check.js:80text = readFileSync(file, 'utf8');
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般14 处命中
    • lib/host/installer.js:34const home = process.env.DSH_HOME || join(process.env.USERPROFILE ?? process.env.HOME ?? '.', '.dsh');
    • lib/host/installer.js:51const home = process.env.DSH_HOME || join(process.env.USERPROFILE ?? process.env.HOME ?? '.', '.dsh');
    • lib/host/installer.js:105for (const dir of (process.env.PATH ?? '').split(';')) {
    • lib/host/installer.js:151const exe = join(process.env.SystemRoot ?? 'C:\\Windows', 'System32', 'tar.exe');
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
以 shell 执行命令shell-exec高关注4
可执行外部程序spawns-processes高关注2
写入文件writes-files需留意15
发起网络请求network需留意12
启动伪终端spawns-pty需留意1
读取文件reads-files一般52
读取环境变量reads-env一般14

这份报告的口径

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

可信度

80 健康分 B 扣分项下方逐条附证据
  • -5声明与实物不符:types-missingwarn:['./lib/types/client/index.d.ts']
  • -10声明与实物不符:peer-static-import-unsatisfiedmajor:{'@deepseek-ai/dsh-typert-protocol': '^0.1.0-rc.6'}
  • -5cordis entry id「dsh-plugin-hub」被 4 个包共用,同时安装会互相替换warn:@czj-git/dsh-plugin-hub、@zaimokuza/dsh-plugin-hub、dsh-plugin-hub

认证等级 L0

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

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

维护者
yiqizhuapangxiwma
仓库
https://github.com/yiqizhuapangxiema/harness-plugin-store-optimized
许可
MIT
最后发布
2026-08-17
周下载
18
star
2

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

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

DSH peer 依赖10 个cordiscordis-plugin-loaderdsh-api-gatewaydsh-client-localedsh-client-runtimedsh-client-ui-settingsdsh-client-ui-settings-generaldsh-client-ui-sidebardsh-client-ui-slotsdsh-typert-protocol均为 @deepseek-ai/ 下的包
Node 要求^22.19.0 || >=24.0.0
第三方依赖2 个
bundle patch./cordis.patch.yml
依赖安全公告3 条,见下方

这个插件声明的依赖中,有 3 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中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 详情
低zodCVE-2023-4316Zod denial of service vulnerability
修复版本:3.22.3 详情

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

元数据

主页https://github.com/yiqizhuapangxiema/harness-plugin-store-optimized#readme
仓库最近提交2026-08-17
仓库创建2026-08-17

返回首页