dsh-codex-migrate
github.com/polarskicpl/dsh-codex-migrate
v2.0.4
会话与记忆
可执行外部程序写入文件发起网络请求
One-way structured conversation, project, MCP, memory, and context migration between Codex and DeepSeek Harness. Codex 与 DSH 的单向结构化迁移插件。
该插件尚未翻译,显示作者原文。
dshdeepseek-harnesscodexmigrationconversation-importmcpplugindsh-plugin
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注2需留意3一般18未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中lib/bridge/codex-app-server.js:1import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意18 处命中lib/bridge-server.js:57mkdirSync(dirname(path), { recursive: true })lib/bridge-server.js:60writeFileSync(temp, `${token}\n`, { encoding: 'utf8', mode: 0o600 })lib/bridge-server.js:61renameSync(temp, path)lib/bridge/codex-app-server.js:163rmSync(directory, { recursive: true, force: true, maxRetries: 20, retryDelay: 100 })- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意1 处命中…/dsh-codex-bridge/mcp/server.mjs:38const req = http.request({- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般27 处命中lib/bridge-server.js:54const existing = readFileSync(path, 'utf8').trim()lib/bridge/codex-app-server.js:63for (const entry of readdirSync(binRoot, { withFileTypes: true })) {lib/bridge/codex-app-server.js:66if (existsSync(path)) installed.push({ path, mtimeMs: statSync(path).mtimeMs })lib/bridge/codex-app-server.js:77return executableCandidates().find((candidate) => !candidate.includes('/') && !candidate.includes('\\') || existsSync(ca…- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般9 处命中lib/bridge/codex-app-server.js:55for (const value of [process.env.DSH_CODEX_CLI, process.env.CODEX_CLI_PATH]) {lib/bridge/codex-app-server.js:59const local = process.env.LOCALAPPDATA || join(os.homedir(), 'AppData', 'Local')lib/bridge/codex-app-server.js:248const rpc = new JsonRpcProcess(options.executable || resolveCodexExecutable(), options.timeoutMs || 20000, options.env |…lib/bridge/codex-app-server.js:271const realCodexHome = process.env.CODEX_HOME || join(os.homedir(), '.codex')- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 接触凭据或密钥
credentials一般2 处命中lib/i18n.js:150promptStep5: '5. Never connect to or operate on any MCP target server; only register config. Keep env secrets out of the…lib/logic.js:1587lines.push('# NOTE: env may contain secrets; keep this file safe.')- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 18 |
| 发起网络请求 | network | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 27 |
| 读取环境变量 | reads-env | 一般 | 9 |
| 接触凭据或密钥 | credentials | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 35 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)