D

dsh-musage-card

github.com/Lin-Dongg/dsh-musage-card

v1.6.6 市场与管理 发起网络请求写入文件
认证 L3已扫描 ✓健康 S/100周下载 58

`dsh-musage` 的二次开发版 —— 挂在 **DSH 侧边栏底部("移动访问"按钮上方)** 的多 provider 用量/余额玻璃卡片:跟随当前会话选中的模型**自动切换**,剩余量进度条(5h 流动绿 / 7d 流动彩 / 长周期额度紫)。

作者原文(英文)

Multi-provider quota & balance glass card for the DSH sidebar footer (11 providers incl. StepFun / Xiaomi MiMo / Claude with one-click browser login; Step Plan credit). Installable from the dsh-plugin marketplace (GitHub topic "dsh-plugin") or via file: l

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

dshdsh-plugincordis-plugindeepseek-harnessusagequotacoding-planmusage
分类
market
发布
2026-10-02
版本
v1.6.6
源仓库无法访问 多次尝试都没连上,可能是网络问题,也可能是仓库不可达。

检测报告

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

能力清单

  • 发起网络请求network需留意7 处命中
    • dsh/client.js:117const res = await fetch("/musage/quota?provider=" + encodeURIComponent(provider), {
    • dsh/client.js:131const res = await fetch("/musage/login/status", {
    • dsh/client.js:145const res = await fetch(url, {
    • dsh/client.js:159const res = await fetch("/musage/login?action=logout&provider=" + encodeURIComponent(provider), {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意4 处命中
    • dsh/index.js:1870try { appendFileSync(join(sess.profileDir, "musage-window-fix.log"), new Date().toISOString() + " " + msg + "\n"); } cat…
    • dsh/index.js:1940try { writeFileSync(scriptPath, WINDOW_SHOW_PS, "utf8"); } catch (e) { return null; }
    • dsh/index.js:2039try { unlinkSync(join(sess.profileDir, "DevToolsActivePort")); } catch (e) { /* 不存在即成功 */ }
    • dsh/index.js:2233try { mkdirSync(profileDir, { recursive: true }); } catch (e) {}
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 接触凭据或密钥credentials一般8 处命中
    • dsh/index.js:1380const credentials = ctx.credentials;
    • dsh/index.js:1545const credentials = ctx.credentials;
    • dsh/index.js:1581const hit = await ctx.credentials.resolve("STEPFUN_COOKIE");
    • dsh/index.js:2162await ctx.credentials.set(cfg.ref, value);
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般5 处命中
    • dsh/index.js:1934const root = process.env.SystemRoot || "C:\\Windows";
    • dsh/index.js:2223const candidates = pickBrowserCandidates(process.platform, undefined, process.env);
    • dsh/index.js:2229const dshHome = (typeof process.env.DSH_HOME === "string" && process.env.DSH_HOME.length > 0)
    • dsh/index.js:2230? process.env.DSH_HOME
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般3 处命中
    • dsh/index.js:1144: function (p) { try { return existsSync(p); } catch (e) { return false; } };
    • dsh/index.js:1183const text = readFileSync(file, "utf8");
    • dsh/index.js:1936if (existsSync(fallback)) { psExe = fallback; traceWindowFix(sess, "fallback -> " + psExe); }
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般1 处命中
    • dsh/index.js:1116const mod = await import("node:child_process");
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
发起网络请求network需留意7
写入文件writes-files需留意4
接触凭据或密钥credentials一般8
读取环境变量reads-env一般5
读取文件reads-files一般3
动态加载模块dynamic-import一般1

这份报告的口径

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

依赖安全公告

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

← 返回全部插件