D

deepseek-harness-auth

github.com/taichuy/deepseek-harness-auth

v0.4.2 模型与账号 发起网络请求写入文件

DeepSeek Harness Web profile 的树外认证 Bundle。在不修改 Harness 主仓库的条件下,它将原 WebServer 固定到 `127.0.0.1` 随机端口,并在同一进程中启动唯一的公共认证代理;HTTP、SPA 静态文件、RPC、SSE 与 WebSocket upgrade 只有通过认证后才会转发到 Harness。

作者原文(英文)

Fail-closed password authentication proxy bundle for the DeepSeek Harness Web profile

中文简介由 DeepSeek 模型翻译,仅供参考。

deepseek-harnessdshdsh-plugincordisauthenticationreverse-proxy
分类
model
发布
2026-10-02
版本
v0.4.2

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意3一般19未命中
高关注需留意一般

能力清单

  • 发起网络请求network需留意5 处命中
    • lib/client.js:174await fetch("/auth/logout", {
    • lib/client.js:221fetch("/auth/account").then(async (response) => {
    • lib/client.js:248const response = await fetch("/auth/account/password", {
    • lib/client.js:282const response = await fetch("/auth/account/whitelist", {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意3 处命中
    • lib/state.js:118await mkdir(this.directory, { recursive: true, mode: 0o700 });
    • lib/state.js:121await writeFile(temporary, `${JSON.stringify(state, null, 2)}\n`, { mode: 0o600 });
    • lib/state.js:122await rename(temporary, this.file);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 接触凭据或密钥credentials一般175 处命中
    • lib/center.js:91const principal = await provider.authenticate({ username: request.username, password: request.password });
    • lib/center.js:137/** Change a password through the provider that established the session. */
    • lib/center.js:138async changePassword(principal, currentPassword, newPassword) {
    • lib/center.js:140if (provider?.changePassword === undefined)
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般12 处命中
    • lib/cli.js:132export function program(store = new AuthStateStore(process.env.DSH_AUTH_STATE_DIR || defaultStateDir())) {
    • cordis.patch.yml:32maxAttempts: !!js Number(process.env.DSH_AUTH_MAX_ATTEMPTS ?? 6)
    • cordis.patch.yml:33lockSeconds: !!js Number(process.env.DSH_AUTH_LOCK_SECONDS ?? 30)
    • cordis.patch.yml:34sessionTtlSeconds: !!js Number(process.env.DSH_AUTH_SESSION_TTL_SECONDS ?? 86400)
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般2 处命中
    • lib/cli.js:133const packageVersion = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
    • lib/state.js:97return parseState(JSON.parse(await readFile(this.file, 'utf8')));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
发起网络请求network需留意5
写入文件writes-files需留意3
接触凭据或密钥credentials一般175
读取环境变量reads-env一般12
读取文件reads-files一般2

这份报告的口径

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

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件