浏览全部

模型与账号 · v4.2.4

dsh-damage-pulse

github.com/wssfk12138/dsh-damage-pulse

能力可执行外部程序写入文件可终止进程

dsh-damage-pulse 是为 DSH(DeepSeek Harness)打造的 DeepSeek 用量、消费与余额监控插件。

作者原文(英文)

DeepSeek Harness balance monitor with a whale-girl companion and cache-aware damage animations for every token charge.

简介取自插件自己的 README 原文。

deepseek-harnessdsh-plugintoken-monitorbalance-monitordamage-animationcache-aware
认证 L3已扫描 ✓健康 S/100周下载 1.4k
7 项能力
许可
MIT
发布
2026-10-14
维护者
wssfk
插件 ID
1693

安装命令

dsh plugin --profile web add dsh-damage-pulse@4.2.4

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注2需留意4一般17未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • runtime/host/wechat.mjs:7import { execFile } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意46 处命中
    • lib/index.js:75await unlink(target);
    • lib/index.js:89await mkdir(dirname(file), { recursive: true });
    • lib/index.js:92await writeFile(temp, JSON.stringify(value, null, 2) + "\n", {
    • lib/index.js:96await rename(temp, file);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意1 处命中
    • lib/index.js:598process.kill(Number(owner.trim()), 0);
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 读取文件reads-files一般26 处命中
    • lib/index.js:84const bytes = await readFile(target);
    • lib/index.js:181const journal = JSON.parse(await readFile(path, "utf8"));
    • lib/index.js:209const current = JSON.stringify(JSON.parse(await readFile(stateFile, "utf8")));
    • lib/index.js:262state = JSON.parse(await readFile(stateFile, "utf8"));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般15 处命中
    • README.md:313通过 DSH 的 credentials 机制配置 `DEEPSEEK_API_KEY`(`~/.dsh/.credentials.yaml`),只用于查询账户余额。插件加载、对话用量采集与计费都不依赖它:未配置时悬浮卡显示引导态,toke…
    • runtime/host/billing.mjs:1631if (!entry || entry.revision !== script.revision || entry.identity.apiKey !== identity.apiKey || entry.identity.baseURL …
    • runtime/host/billing.mjs:1650const raw = await this.dependencies.request(script.request, identity.baseURL, identity.apiKey, current.controller.signal…
    • runtime/host/billing.mjs:1654if (latestScript.revision !== current.revision || latestScript.status !== "valid" || latestIdentity?.apiKey !== identity…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块dynamic-import一般7 处命中
    • lib/index.js:742await (await import(pathToFileURL(resolve(roots.host, "manager.mjs")).href + `?v=${manifest.version}`)).apply(ctx, {
    • runtime/host/core.mjs:769const manifest = require(require.resolve("@deepseek-ai/dsh-session/package.json"));
    • runtime/host/manager.mjs:1103const core = options.loadCore ? await options.loadCore() : await import(pathToFileURL(resolve(roots.host, "core.mjs")).h…
    • runtime/host/manager.mjs:1111const feature = options.loadFeature ? await options.loadFeature(id) : await import(pathToFileURL(resolve(roots.host, `${…
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 读取环境变量reads-env一般5 处命中
    • runtime/host/core.mjs:823const forced = options.force ?? process.env["DSH_TOKEN_MONITOR_FORCE_SESSION_RECORDS"] === "1";
    • runtime/host/core.mjs:8253if (node_process.env.LOG_TOKENS) console.log("|", cst.prettyToken(source));
    • runtime/host/wechat.mjs:889const clawbotIndex = process.env.WECHAT_NOTIFY_CLAWBOT_INDEX?.trim() ?? "";
    • runtime/host/wechat.mjs:893...process.env.WECHAT_NOTIFY_DATA_DIRECTORY ? { dataDirectory: process.env.WECHAT_NOTIFY_DATA_DIRECTORY } : {}
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
写入文件writes-files需留意46
可终止进程kills-processes需留意1
读取文件reads-files一般26
接触凭据或密钥credentials一般15
动态加载模块dynamic-import一般7
读取环境变量reads-env一般5

这份报告的口径

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

可信度

100 健康分 S 扣分项下方逐条附证据
  • 0没有可扣分的项

认证等级 L3

  • L0静态结构与契约✓sha512-x7bsCFkBWm7hfkik… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟✓隔离 profile 安装成功,2.2s,层已挂载;宿主带它启动(booted)
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
wssfk
仓库
https://github.com/wssfk12138/dsh-damage-pulse
许可
MIT
最后发布
2026-10-14
周下载
1.4k
star
264

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

DSH peer 依赖14 个cordisdsh-client-connectiondsh-client-ui-conversationdsh-client-ui-layoutdsh-client-ui-slotsdsh-credentialsdsh-host-webserverdsh-llmdsh-sessiondsh-session-persistencedsh-session-projectiondsh-session-projection-cache等 14 个均为 @deepseek-ai/ 下的包
Node 要求^22.19.0 || >=24.0.0
第三方依赖5 个
bundle patch./cordis.patch.yml
依赖安全公告1 条,见下方

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

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

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

元数据

主页https://github.com/wssfk12138/dsh-damage-pulse#readme
仓库最近提交2026-10-14
仓库创建2026-08-17

返回首页