跳到正文

030611/qiushi-dsh-evidence-audit

40最近提交 2026年8月14日

qiushi-dsh-evidence-audit DSH 插件

Qiushi DSH Evidence Audit 是一个 DeepSeek Harness 的只观察型 Profile Bundle。它监听 tools/result 和 session/event 扩展点,将自校验哈希链收据追加到本地文件。它从不修改提示、工具结果或会话数据。

如何安装 qiushi-dsh-evidence-audit DSH 插件

dsh plugin --profile web add qiushi-dsh-evidence-audit

复制不会执行命令。安装 qiushi-dsh-evidence-audit DSH 插件前请核对仓库和版本。

qiushi-dsh-evidence-audit DSH 插件数据来源

qiushi-dsh-evidence-audit DSH 插件快照日期:2026年8月16日

discovered

qiushi-dsh-evidence-audit DSH 插件能做什么

  • 监听 tools/result 和 session/event 扩展点,追加哈希链 JSONL 收据
  • 启动时验证完整证据文件,若链断裂则拒绝追加
  • 默认输出目录和文件设置 POSIX 仅所有者权限(0700/0600)
  • 支持通过插件配置覆盖输出路径
  • 使用确定性规范 JSON 和 SHA-256 实现可复现哈希
  • 失败隔离在观察者内部,不影响 DSH 发布

qiushi-dsh-evidence-audit DSH 插件适合哪些场景

  • 审计工具调用序列和会话事件,留下可本地验证的执行轨迹
  • 检测对已保留证据记录的篡改、截断或修改
  • 为每个 DSH 进程使用独立输出文件,避免并发写入冲突
  • 与其他信任层插件(Telemetry Redactor、Verification Receipt)配合构建审计体系
  • 提供合规性证据,证明特定观察者按已知顺序见证了某些事件哈希

qiushi-dsh-evidence-audit DSH 插件适合谁

  • 需要可本地验证的执行轨迹且不存储明文的 DSH 用户
  • 需要工具执行日志篡改检测的安全审计人员或合规团队

qiushi-dsh-evidence-audit DSH 插件的限制

  • 哈希不证明作者身份,也不是数字签名或外部锚点
  • 多个 DSH 进程不能同时写入同一输出文件;检测仅在后续验证时发生,无法恢复
  • writeSync 后无 fsync 保证;断电可能丢失最后一条收据
  • 启动验证线性扫描现有文件,增加事件发布延迟
  • 兼容性仅针对特定 DSH 提交测试,未进行模型驱动的 DSH 回合测试

qiushi-dsh-evidence-audit DSH 插件的仓库 README 摘录

以下文字摘自 qiushi-dsh-evidence-audit DSH 插件的上游仓库 030611/qiushi-dsh-evidence-audit 的 README,版权归原作者,仅作引用。

English | [简体中文](README.zh-CN.md) [![npm version](https://img.shields.io/npm/v/qiushi-dsh-evidence-audit.svg)](https://www.npmjs.com/package/qiushi-dsh-evidence-audit) [![CI](https://github.com/030611/qiushi-dsh-evidence-audit/actions/workflows/ci.yml/badge.svg)](https://github.com/030611/qiushi-dsh-evidence-audit/actions/workflows/ci.yml) [![license](https://img.shields.io/npm/l/qiushi-dsh-evidence-audit.svg)](LICENSE) [![featured on dsh-suite](https://img.shields.io/badge/featured%20on-dsh--suite-4d6bfe)](https://whyihaveyou.github.io/dsh-suite/) ![Qiushi DSH Evidence Audit social preview](docs/social-preview.jpg) **Leave a locally checkable execution trail without storing prompts, tool arguments, tool results, or session IDs in plaintext.** ```sh dsh plugin --profile web add qiushi-dsh-evidence-audit ``` > Community-maintained and not an official DeepSeek project. Related trust-layer plugins: [Telemetry Redactor](https://github.com/030611/dsh-telemetry-redactor), [Verification Receipt](https://github.com/030611/dsh-verification-receipt), and [Context Provenance](https://github.com/030611/dsh-context-provenance). Qiushi DSH Evidence Audit is an observe-only DeepSeek Harness

阅读完整 README仓库许可: MIT

qiushi-dsh-evidence-audit DSH 插件常见问题

如何安装 Qiushi DSH Evidence Audit?

在终端中运行 `dsh plugin --profile <profile> add qiushi-dsh-evidence-audit`。需要 Node.js ^22.19.0 || >=24.0.0 以及基于特定测试提交构建的 DSH。安装后运行 `dsh --profile <profile> --dump-config` 确认插件已加载。

证据收据文件里包含什么?

每一行是一个 JSON 对象,包含 schemaVersion、sequence、collectedAt、previousRecordHash 和 recordHash 字段。recordHash 是对其他字段的规范 JSON 进行 SHA-256 哈希的结果。文件包含会话事件收据(哈希后的会话 ID、事件类型、事件数据哈希)和工具结果收据(工具名、哈希后的 ID、参数哈希、结果哈希)。明文从不存储。

插件能检测到收据文件被篡改吗?

可以检测到对保留行的编辑、移除未触及前缀以及部分最后行。但无法检测整个文件被删除、完整后缀被移除,或攻击者完全重写并重新链接记录。

多个 DSH 进程可以使用同一个输出文件吗?

不行,多个 DSH 进程不能同时写入同一个文件。插件没有实现跨进程锁。并发写入会导致链损坏,只能在后续验证时发现,无法预防。每个进程或 profile 应使用独立的输出文件。

如何更改证据收据的输出路径?

在插件配置中覆盖 outputPath。路径必须是绝对路径。在 profile 补丁中提供完整的行配置,例如:`- id: qiushi-evidence-audit\n name: qiushi-dsh-evidence-audit\n config:\n outputPath: '/绝对路径/receipts.jsonl'`。插件不会创建或更改父目录的权限。