D

dsh-ds-balance

github.com/zlZayn/dsh-ds-balance

v2.3.1 界面与主题 含混淆或编码代码发起网络请求写入文件

DSH plugin: shows the DeepSeek account balance at the bottom of the sidebar, with a configuration card on the Plugins page.

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

dshdeepseek-harnessdsh-plugindeepseekbalanceusage
分类
ui
发布
2026-10-10
版本
v2.3.1

检测报告

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

能力清单

  • 含混淆或编码代码obfuscated-code需留意18 处命中
    • lib/client.js:47"sidebar.aria.mismatch": "\u663E\u793A\u7684\u5E01\u79CD\u4E0E\u4F60\u9009\u62E9\u7684\u4E0D\u4E00\u81F4",
    • lib/client.js:100"settings.field.serverRefreshSeconds": "\u670D\u52A1\u7AEF\u5237\u65B0\u9891\u7387\uFF08\u79D2\uFF09",
    • lib/client.js:101"settings.field.clientPollSeconds": "\u5BA2\u6237\u7AEF\u8F6E\u8BE2\u9891\u7387\uFF08\u79D2\uFF09",
    • lib/client.js:102"settings.field.manualRefreshCooldownSeconds": "\u624B\u52A8\u5237\u65B0\u51B7\u5374\uFF08\u79D2\uFF09",
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 发起网络请求network需留意5 处命中
    • lib/client.js:915const fetchImpl = options.fetchImpl ?? ((input, init) => fetch(input, init));
    • lib/client.js:939const fetchImpl = options.fetchImpl ?? ((input, init) => fetch(input, init));
    • lib/client.js:945const fetchImpl = options.fetchImpl ?? ((input, init) => fetch(input, init));
    • …adapters/http-deepseek-client.js:23this.fetchImpl = options.fetchImpl ?? ((input, init) => fetch(input, init));
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 写入文件writes-files需留意2 处命中
    • lib/adapters/salt-file.js:24(async (path, data, mode) => writeFile(path, data, { mode }));
    • lib/adapters/salt-file.js:27await mkdir(path, { recursive: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 接触凭据或密钥credentials一般242 处命中
    • lib/services/account-tag.js:15* @param apiKey - 明文密钥;**只在内存里流转**。
    • lib/services/account-tag.js:18export function computeAccountTag(salt, apiKey) {
    • lib/services/account-tag.js:19return createHmac('sha256', salt).update(apiKey).digest('hex').slice(0, ACCOUNT_TAG_LENGTH);
    • lib/client.js:89"situation.noCredential": "\u5C1A\u672A\u914D\u7F6E\u51ED\u636E",
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块dynamic-import一般12 处命中
    • lib/services/source-readers.js:61const id = await require().accountId();
    • lib/services/source-readers.js:75const balance = await require().readBalance();
    • …ettings/BalanceSettingsCard.d.ts:22export declare function BalanceSettingsCard({ t, form: scopedForm }: BalanceSettingsCardProps): import("react").JSX.Elem…
    • …/adapters/domain-core-store.d.ts:38snapshots: import("@deepseek-ai/dsh-storage-domain").DomainTableSpec<string, StoredSnapshot>;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取环境变量reads-env一般3 处命中
    • lib/services/config-service.js:21this.env = options.env ?? process.env;
    • lib/config.js:214* @param env - 环境变量表;默认 `process.env`,测试可注入。
    • lib/config.js:217export function resolveTimeoutMs(env = process.env) {
    • lib/services/key-resolver.js:5* `process.env[apiKeyRef]` → 抛 {@link NoKeyError}。
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般1 处命中
    • lib/adapters/salt-file.js:22const read = options.read ?? (async (path) => readFile(path, 'utf8'));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
含混淆或编码代码obfuscated-code需留意18
发起网络请求network需留意5
写入文件writes-files需留意2
接触凭据或密钥credentials一般242
动态加载模块dynamic-import一般12
读取环境变量reads-env一般3
读取文件reads-files一般1

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
低zodCVE-2023-4316Zod denial of service vulnerability
修复版本:3.22.3 详情 →

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

← 返回全部插件