D

dsh-plugin-hub-local

github.com/Lingxi-AI-cn/dsh-tui-plugin

v0.1.0-rc.8 市场与管理 可执行外部程序写入文件可终止进程

DSH TUI 在不替换、不修改官方 Harness 安装的前提下,为终端提供完整的全屏编码 Agent 体验。它通过独立 DSH profile 安装,继续使用上游 Agent loop 与耐久 Session 模型,同时补充清晰的对话界面、鼠标辅助导航、Session 工作流、运行时诊断与 Plugin Hub 浏览能力。

作者原文(英文)

Trusted local Registry, artifact, and profile transaction provider for Plugin Hub

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
market
发布
2026-08-20
版本
v0.1.0-rc.8

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注2 处命中
    • lib/index.js:13import { spawn } from "node:child_process";
    • lib/maintenance-bin.js:3import { spawn } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意28 处命中
    • lib/index.js:370await mkdir(cacheDir, {
    • lib/index.js:374await mkdir(tempDir, {
    • lib/index.js:439await unlink(temporary);
    • lib/index.js:443await unlink(temporary).catch(() => void 0);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意6 处命中
    • lib/index.js:1233process.kill(pid, 0);
    • lib/index.js:1408else process.kill(-child.pid, "SIGTERM");
    • lib/index.js:1413else process.kill(-child.pid, "SIGKILL");
    • lib/maintenance-bin.js:245process.kill(pid, 0);
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 发起网络请求network需留意2 处命中
    • lib/index.js:403response = await fetch(current, {
    • lib/index.js:1706const response = await fetch(current, init);
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 读取文件reads-files一般10 处命中
    • lib/index.js:76entries = await readdir(join(dataDir, "transactions"), { withFileTypes: true });
    • lib/index.js:86receipts.push(parseReceipt(JSON.parse(await readFile(path, "utf8"))));
    • lib/index.js:458for await (const chunk of createReadStream(path)) {
    • lib/index.js:778parsed = JSON.parse(await readFile(path, "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般3 处命中
    • lib/index.js:968this.pendingBoot = pendingBoot(options.environment ?? process.env);
    • lib/index.js:1120const boot = pendingBoot(process.env);
    • lib/index.js:1161for (const [key, value] of Object.entries(process.env)) if (value !== void 0 && (ENV_ALLOWLIST.has(key) || key.startsWit…
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 接触凭据或密钥credentials一般1 处命中
    • lib/index.js:527if (url.origin !== NPM_REGISTRY_ORIGIN && !fixtureAllowed || url.username !== "" || url.password !== "" || url.hash !== …
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注2
写入文件writes-files需留意28
可终止进程kills-processes需留意6
发起网络请求network需留意2
读取文件reads-files一般10
读取环境变量reads-env一般3
接触凭据或密钥credentials一般1

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
高tarCVE-2026-26960Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction
修复版本:7.5.8 详情 →
中semverCVE-2022-25883semver vulnerable to Regular Expression Denial of Service
修复版本:5.7.2, 6.3.1, 7.5.2 详情 →
中tarCVE-2026-59873node-tar: Decompression/parse DoS via unlimited input
修复版本:7.5.19 详情 →
中tarCVE-2026-24842node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
修复版本:7.5.7 详情 →
中tarCVE-2026-59874node-tar: Negative tar entry size causes infinite loop in archive replace
修复版本:7.5.18 详情 →
中tarCVE-2026-73566node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection
修复版本:7.5.21 详情 →
中tarCVE-2026-23950Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS
修复版本:7.5.4 详情 →
低tarCVE-2026-59875node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records
修复版本:7.5.17 详情 →
低tarCVE-2026-59871node-tar: Process crash via PAX numeric path type confusion
修复版本:7.5.18 详情 →
未分级tarCVE-2026-23745node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization
修复版本:7.5.3 详情 →
未分级tarCVE-2026-31802node-tar Symlink Path Traversal via Drive-Relative Linkpath
修复版本:7.5.11 详情 →
未分级tarCVE-2026-29786tar has Hardlink Path Traversal via Drive-Relative Linkpath
修复版本:7.5.10 详情 →

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

← 返回全部插件