D

dsh-codex-subscription

github.com/WSL043/dsh-codex-subscription

v2.6.8 模型与账号 可执行外部程序写入文件发起网络请求

Use ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode

该插件尚未翻译,显示作者原文。

dsh-plugindeepseekdeepseek-harnessdshopenai-codexchatgpt-oauthchatgptchatgpt-plus
分类
model
发布
2026-10-13
版本
v2.6.8

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • lib/index.js:4import { execFile, spawn } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意9 处命中
    • lib/index.js:1483await mkdir(nativeHome, { recursive: true });
    • lib/index.js:4393await mkdir(dirname(filename), {
    • lib/index.js:4399await handle.writeFile(data);
    • lib/index.js:4450await mkdir(dirname(directory), {
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意9 处命中
    • lib/index.js:755return new WebSocket(args[0], {
    • lib/index.js:869fetch: (area, input, init) => run(area, () => globalThis.fetch(input, init)),
    • lib/index.js:1168disposers.push(connection.fetch.register({
    • lib/index.js:1172async fetch(request) {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 接触凭据或密钥credentials一般224 处命中
    • lib/index.js:19import * as dshCredentials from "@deepseek-ai/dsh-credentials";
    • lib/index.js:903options.apiKey,
    • lib/index.js:1215/** Keep refresh rotation in the plugin's existing serialized credential store. */
    • lib/index.js:1226let credential;
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般6 处命中
    • lib/index.js:1342const { version } = JSON.parse(readFileSync(attempt(), "utf8"));
    • lib/index.js:1353const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
    • lib/index.js:1368const codex = JSON.parse(readFileSync(codexManifestPath, "utf8"));
    • lib/index.js:4488const metadata = parseMetadata(await readFile(metadataFile, "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般3 处命中
    • lib/index.js:616function proxyFromEnvironment(env = process.env, target = new URL(`https://${CODEX_AUTH_HOST}/`)) {
    • lib/index.js:630const reg = `${process.env.SystemRoot ?? "C:\\Windows"}\\System32\\reg.exe`;
    • lib/index.js:674const env = options.env ?? process.env;
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般1 处命中
    • lib/index.js:1363async function loadSubagentRuntime({ resolve: resolve$1 = require.resolve, run = execute, importModule = (url) => import…
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
写入文件writes-files需留意9
发起网络请求network需留意9
接触凭据或密钥credentials一般224
读取文件reads-files一般6
读取环境变量reads-env一般3
动态加载模块dynamic-import一般1

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
中wsCVE-2026-45736ws: Uninitialized memory disclosure
修复版本:8.20.1 详情 →
中wsCVE-2026-48779ws: Memory exhaustion DoS from tiny fragments and data chunks
修复版本:5.2.5, 6.2.4, 7.5.11 详情 →

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

← 返回全部插件