dsh-claude
github.com/Norman-else/dsh-claude
v0.1.64
会话与记忆
可执行外部程序R010 向其他插件注入写入文件
`dsh-claude` 将本地安装的 Claude Code CLI 作为一等对话提供方运行在 DeepSeek Harness(DSH)中。它使用 Claude Code 官方的 Agent SDK 协议,而不是用单独的 API 客户端重新实现该 agent。
作者原文(英文)
Run the local Claude Code CLI as a first-class main conversation inside DeepSeek Harness
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注2需留意3一般17未命中
高关注需留意一般
能力清单
- 可执行外部程序
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", {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 接触凭据或密钥
credentials一般28 处命中package.json:141"@deepseek-ai/dsh-credentials": "0.1.7-rc.2",INSTALL.md:59configuration; never request, copy, print, or store credentials in this plugin.README.md:17The plugin never asks for or stores Claude credentials. Authenticate through the local Claude Code CLI before using the …README.md:87- **Redacted activity timeline** — Displays thinking summaries, tool calls and results, permission events, questions, st…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
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 |
| 接触凭据或密钥 | credentials | 一般 | 28 |
| 读取文件 | reads-files | 一般 | 16 |
| 读取环境变量 | reads-env | 一般 | 8 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 13 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 2 条已公开的安全公告 :
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 未分级 | 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-109344 | DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS 修复版本:3.4.16 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。