会话与记忆 · v0.1.64
dsh-claude
dsh-claude 将本地安装的 Claude Code CLI 作为 DeepSeek Harness(DSH)内的一等对话提供方运行。
作者原文(英文)
dsh-claude runs the locally installed Claude Code CLI as a first-class conversation provider inside DeepSeek Harness (DSH).
简介取自插件 README 开头,由 DeepSeek 模型翻译,仅供参考。
安装命令
dsh plugin --profile web add @norman-else/dsh-claude@0.1.64
试装后配置读取失败
安装没有成功完成。具体原因见上方那行工具自己的输出;有可能是网络、构建脚本,也可能是包本身的问题。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中lib/bin.mjs:12import { spawnSync } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- R010 向其他插件注入
plugin-tree-injection高关注1 处命中- Claude
- 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
- 写入文件
writes-files需留意20 处命中lib/index.mjs:688await mkdir(this.root, {lib/index.mjs:696await writeFile(temporary, `${JSON.stringify(projection)}\n`, {lib/index.mjs:701await rename(temporary, target);lib/index.mjs:5225await mkdir(dirname(path), { recursive: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意1 处命中lib/index.mjs:8888response = await this.#fetch(`${connection.siteUrl}${path}`, {lib/index.mjs:10160const response = await fetch("https://registry.npmjs.org/%40norman-else%2Fdsh-claude", {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般16 处命中lib/bin.mjs:37const source = await readFile(join(paths.sourceDir, file), "utf8");lib/bin.mjs:56return await readFile(path, "utf8");lib/bin.mjs:86if ((await readdir(paths.targetDir)).length === 0) await rmdir(paths.targetDir);lib/index.mjs:675return parseClaudeSidecar(JSON.parse(await readFile(this.#path(sessionId), "utf8")));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般8 处命中lib/bin.mjs:102for (const directory of (process.env.PATH ?? "").split(delimiter)) if (directory.length > 0) candidates.push(join(direct…lib/bin.mjs:122const configured = option("--executable") ?? process.env.DSH_CLAUDE_CODE_EXECUTABLE;lib/executable-C2uv1Anz.mjs:45function toolPathEnv(env = process.env) {lib/index.mjs:10347* The runner's environment is read from `process.env` synchronously inside- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| R010 向其他插件注入 | plugin-tree-injection | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 20 |
| 发起网络请求 | network | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 16 |
| 读取环境变量 | reads-env | 一般 | 8 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 13 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- -20读不出配置树(dump-failed)fail
认证等级 L1
- L0静态结构与契约✓sha512-lg0Lhk5C7V+yBh8T… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟—试装未通过(dump-failed)
- L3运行时健康监控—运行时观测到异常:spawns
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- norman_else
- 仓库
- https://github.com/Norman-else/dsh-claude
- 许可
- MIT
- 最后发布
- 2026-09-29
- 周下载
- 594
- star
- 13
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 23 个cordisdsh-agentdsh-agent-presetdsh-agent-preset-registrydsh-attachmentdsh-branddsh-client-localedsh-client-ui-conversationdsh-client-ui-input-triggerdsh-client-ui-primitivesdsh-client-ui-settingsdsh-client-ui-sidebar-right等 23 个均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | >=20 |
| 第三方依赖 | 3 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 21 条,见下方 |
这个插件声明的依赖中,有 21 条已公开的安全公告 (最高等级:严重):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 严重 | dompurify | CVE-2026-41239 | DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode 修复版本:3.4.0 详情 |
| 中 | dompurify | CVE-2026-65902 | DOMPurify: Hook mutation of `data.allowedTags` / `data.allowedAttributes` permanently pollutes `DEFAULT_ALLOWED_TAGS` / `DEFAULT_ALLOWED_ATTR` 修复版本:3.4.7 详情 |
| 中 | dompurify | CVE-2026-49458 | DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks 修复版本:3.4.6 详情 |
| 中 | dompurify | CVE-2026-49459 | DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM 修复版本:3.4.6 详情 |
| 中 | dompurify | CVE-2026-0540 | DOMPurify contains a Cross-site Scripting vulnerability 修复版本:2.5.9, 3.3.2 详情 |
| 中 | dompurify | CVE-2025-15599 | DOMPurify contains a Cross-site Scripting vulnerability 修复版本:3.2.7 详情 |
| 中 | dompurify | CVE-2026-41238 | DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback 修复版本:3.4.0 详情 |
| 未分级 | dompurify | CVE-2026-65903 | DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation 修复版本:3.4.0 详情 |
| 未分级 | dompurify | CVE-2026-75838 | DOMPurify: IN_PLACE hook removal leaves a detached subtree executable, causing XSS 修复版本:3.4.13 详情 |
| 未分级 | dompurify | CVE-2026-109345 | DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes 修复版本:3.4.16 详情 |
| 未分级 | dompurify | CVE-2026-66010 | DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements. 修复版本:3.4.12 详情 |
| 未分级 | dompurify | CVE-2026-65913 | DOMPurify USE_PROFILES prototype pollution allows event handlers 修复版本:3.3.2 详情 |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
元数据
| 主页 | https://github.com/Norman-else/dsh-claude#readme |
|---|---|
| 仓库最近提交 | 2026-10-13 |
| 仓库创建 | 2026-08-15 |
DSH