D

dsh-plugin-model-governor

github.com/ksxh0524/dsh-plugin-model-governor

v0.1.1 模型与账号 发起网络请求写入文件动态执行代码

DSH model governance plane: per-provider RPM queueing line in the Models page (never rejects, only delays) plus OpenCode session-header compat and RPS-ramp RPM probing with auto-apply on topped results. Includes a no-op outcome hook for a future circuit b

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

dshdeepseek-harnessdsh-pluginmodelgovernancerate-limitrpm-probeopencode
分类
model
发布
2026-09-19
版本
v0.1.1

检测报告

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

能力清单

  • 发起网络请求network需留意14 处命中
    • tests/config.test.ts:208assert.deepStrictEqual(got.limits, { defaults: { rpm: 10 }, providers: {}, models: {} });
    • tests/config.test.ts:209assert.deepStrictEqual(got.sessionHeader, defaultConfig().sessionHeader);
    • tests/config.test.ts:214assert.deepStrictEqual(got.sessionHeader, { providers: ["p"], mode: "uuid", debug: true, debugFile: "/tmp/g.log" });
    • tests/config.test.ts:219assert.strictEqual(got.sessionHeader?.mode, "session-id");
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意1 处命中
    • src/cordis.ts:272appendFile(file, `${JSON.stringify(entry)}\n`, "utf8").catch((error: unknown) => {
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 动态执行代码dynamic-code需留意1 处命中
    • tests/client-smoke.test.ts:130new Function("window", "require", "module", "exports", CLIENT)(g.window, pluginRequire, { exports: {} }, {});
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 接触凭据或密钥credentials一般2 处命中
    • README.md:56Draft state is visible (editing marks 未保存 + 丢弃; `应用` is the only write path); a card without credentials renders one mut…
    • README.md:62- Writable rows have no real-device coverage yet: disposable instances carry no credentials, so the seat runs suppressed…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般1 处命中
    • tests/client-smoke.test.ts:24const CLIENT = fs.readFileSync(CLIENT_JS, "utf8");
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
发起网络请求network需留意14
写入文件writes-files需留意1
动态执行代码dynamic-code需留意1
R013 清单可疑manifest-obfuscation需留意1
接触凭据或密钥credentials一般2
读取文件reads-files一般1

这份报告的口径

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

依赖安全公告

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

← 返回全部插件