dsh-oauth-copilot
github.com/FMDD61/dsh-oauth-copilot
v0.3.1
模型与账号
写入文件发起网络请求
GitHub Copilot OAuth provider and model adapter for DeepSeek Harness
该插件尚未翻译,显示作者原文。
deepseek-harnessdsh-plugingithubcopilotoauth
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意4一般18未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意3 处命中scripts/dsh-copilot-auth.mjs:90mkdirSync(dirname(CRED_FILE), { recursive: true, mode: 0o700 })scripts/dsh-copilot-auth.mjs:92writeFileSync(tmp, yaml.dump(doc, { lineWidth: 200 }), { mode: 0o600 })scripts/dsh-copilot-auth.mjs:93renameSync(tmp, CRED_FILE)- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意1 处命中scripts/dsh-copilot-auth.mjs:68const res = await fetch("https://api.individual.githubcopilot.com/models", { headers, signal: AbortSignal.timeout(10000)…- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 接触凭据或密钥
credentials一般83 处命中lib/adapter.js:5import { authContextFrom, credentialStoreFrom } from './credential-store.js';lib/adapter.js:47* request-level apiKey resolves to undefined on purpose: authentication thenlib/adapter.js:48* comes from the provider's native OAuth auth, which the injected credentiallib/adapter.js:72resolveApiKey: async () => undefined,- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般4 处命中lib/credential-store.js:133const { existsSync } = await import('node:fs');lib/credential-store.js:134const { homedir } = await import('node:os');lib/credential-store.js:135const { join } = await import('node:path');lib/constants.d.ts:8export declare const GITHUB_COPILOT_RECORD_KEY: import("@deepseek-ai/dsh-credentials").CredentialKey;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般3 处命中lib/credential-store.js:137return existsSync(expanded);scripts/dsh-copilot-auth.mjs:79const raw = readFileSync(CRED_FILE, 'utf8')scripts/dsh-copilot-auth.mjs:87function exists() { try { readFileSync(CRED_FILE); return true } catch { return false } }- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般2 处命中lib/credential-store.js:130return process.env[name];scripts/dsh-copilot-auth.mjs:21const DSH_HOME = process.env.DSH_HOME ?? join(homedir(), '.dsh')- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 3 |
| 发起网络请求 | network | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 83 |
| 动态加载模块 | dynamic-import | 一般 | 4 |
| 读取文件 | reads-files | 一般 | 3 |
| 读取环境变量 | reads-env | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 20 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 7 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | js-yaml | CVE-2026-84375 | js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources 修复版本:3.15.2, 4.3.2 详情 → |
| 中 | js-yaml | CVE-2026-59869 | js-yaml: YAML merge-key chains can force quadratic CPU consumption 修复版本:3.15.0, 4.3.0 详情 → |
| 中 | js-yaml | GHSA-5p4m-2wfm-xmqj | JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported 修复版本:3.15.1, 4.3.1 详情 → |
| 低 | js-yaml | CVE-2026-53550 | JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases 修复版本:3.15.0, 4.2.0 详情 → |
| 低 | js-yaml | CVE-2025-64718 | js-yaml has prototype pollution in merge (<<) 修复版本:3.14.2, 4.1.1 详情 → |
| 低 | js-yaml | GHSA-r3ph-w7gj-g6xm | js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources 修复版本:5.4.1 详情 → |
| 低 | zod | CVE-2023-4316 | Zod denial of service vulnerability 修复版本:3.22.3 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。