其他 · v0.4.37
deepseek-harness-acp
在 Zed 和 Backchat 等 Agent Client Protocol 客户端中使用 DeepSeek Harness。
作者原文(英文)
Use DeepSeek Harness from Agent Client Protocol clients such as Zed and Backchat .
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add @openma/deepseek-harness-acp@0.4.37
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注6 处命中dist/bin.js:7import { execFileSync } from "node:child_process";dist/bridge.js:206import { execFile } from "node:child_process";dist/index.js:4import { spawnSync } from "node:child_process";dist/index.js:7import { execFileSync } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注2 处命中dist/bin.js:193const root = execFileSync("npm", ["root", "-g"], { encoding: "utf8", timeout: 1e4 }).trim();dist/index.js:200const root = execFileSync("npm", ["root", "-g"], { encoding: "utf8", timeout: 1e4 }).trim();- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意13 处命中dist/bin.js:84mkdirSync(dirname(target), { recursive: true });dist/bin.js:87if (existsSync(target)) rmSync(target, { recursive: true, force: true });dist/bin.js:92writeFileSync(join(temporary, ".dsh-acp-runtime"), `${metadata.dsh}dist/bin.js:95renameSync(temporary, target);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 启动伪终端
spawns-pty需留意3 处命中dist/bridge.js:280execFile("cmd", ["/c", "start", "", url], () => void 0);dist/plugin.js:282execFile("cmd", ["/c", "start", "", url], () => void 0);dist/server.js:276execFile("cmd", ["/c", "start", "", url], () => void 0);- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 读取环境变量
reads-env一般24 处命中dist/bin.js:57const explicit = process.env["DSH_ACP_CACHE_DIR"];dist/bin.js:60const local = process.env["LOCALAPPDATA"];dist/bin.js:63const xdg = process.env["XDG_CACHE_HOME"];dist/bin.js:176const pathEnv = process.env["PATH"] ?? "";- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般20 处命中dist/bin.js:42if (existsSync(join(candidate, "package.json"))) {dist/bin.js:51const installed = JSON.parse(readFileSync(join(source, "package.json"), "utf8"));dist/bin.js:68const parsed = JSON.parse(readFileSync(join(packageRoot, "vendor/runtime.json"), "utf8"));dist/bin.js:80if (!existsSync(archive)) return void 0;- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般19 处命中dist/bridge.js:107const key = typeof record?.apiKey === "string" ? record.apiKey.trim() : void 0;dist/bridge.js:161_meta: { "api-key": scoped ? { provider } : {} }dist/bridge.js:2320const credentials = ctx.credentials;dist/bridge.js:2666'no credential found for this provider: call authenticate with `_meta["api-key"].apiKey` or `_meta.gateway`, use the bro…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般7 处命中dist/bin.js:347await import(cli);dist/index.js:373const appBoot = await import(pathToFileURL(req.resolve("@deepseek-ai/dsh-app-boot")).href);dist/index.js:374const homePaths = await import(pathToFileURL(req.resolve("@deepseek-ai/dsh-home-paths")).href);dist/index.js:459const launchEnvKey = (await import(pathToFileURL(req.resolve("@deepseek-ai/dsh-launch-environment")).href)).DSH_LAUNCH_E…- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 6 |
| 以 shell 执行命令 | shell-exec | 高关注 | 2 |
| 写入文件 | writes-files | 需留意 | 13 |
| 启动伪终端 | spawns-pty | 需留意 | 3 |
| 读取环境变量 | reads-env | 一般 | 24 |
| 读取文件 | reads-files | 一般 | 20 |
| 接触凭据或密钥 | credentials | 一般 | 19 |
| 动态加载模块 | dynamic-import | 一般 | 7 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 11 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- 0没有可扣分的项
认证等级 L3
- L0静态结构与契约✓sha512-C0DVNbrY7NMwYK2z… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟✓隔离 profile 安装成功,3.0s,层已挂载;宿主带它启动(booted)
- L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- cfenv
- 仓库
- https://github.com/openma-ai/deepseek-harness-acp
- 许可
- Apache-2.0
- 最后发布
- 2026-10-03
- 周下载
- 1.8k
- star
- 41
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 1 个dsh均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | >=22.15 |
| 第三方依赖 | 4 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 15 条,见下方 |
这个插件声明的依赖中,有 15 条已公开的安全公告 (最高等级:高):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 高 | tar | CVE-2026-26960 | Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction 修复版本:7.5.8 详情 |
| 中 | tar | CVE-2026-59873 | node-tar: Decompression/parse DoS via unlimited input 修复版本:7.5.19 详情 |
| 中 | tar | CVE-2026-24842 | node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal 修复版本:7.5.7 详情 |
| 中 | tar | CVE-2026-59874 | node-tar: Negative tar entry size causes infinite loop in archive replace 修复版本:7.5.18 详情 |
| 中 | tar | CVE-2026-73566 | node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection 修复版本:7.5.21 详情 |
| 中 | tar | CVE-2026-23950 | Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS 修复版本:7.5.4 详情 |
| 中 | yaml | CVE-2023-2251 | Uncaught Exception in yaml 修复版本:2.2.2 详情 |
| 低 | tar | CVE-2026-59875 | node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records 修复版本:7.5.17 详情 |
| 低 | tar | CVE-2026-59871 | node-tar: Process crash via PAX numeric path type confusion 修复版本:7.5.18 详情 |
| 低 | 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 详情 |
| 未分级 | tar | CVE-2026-23745 | node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization 修复版本:7.5.3 详情 |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
元数据
| 主页 | https://dshsuite.dev/#other-products |
|---|---|
| 仓库最近提交 | 2026-10-12 |
| 仓库创建 | 2026-08-13 |
DSH