dsh-incident-package: Can Evidence Be Generated When Incidents Occur

Preface

When building Web or Agent projects in DSH (DeepSeek Harness), logging and monitoring are often already connected. The real difficulty lies in compliance and emergency response: where the contingency plans are written, who to call at 3 AM, whether logs and business systems share the same machine and account, whether a data incident needs to be reported, and whether users need to be notified—these items are rarely reviewed line-by-line in code reviews, but the gaps are exposed only when something goes wrong.

@deepwhale-cn/dsh-incident-package (Community catalog name feely0208/dsh-incident-package) performs static self-checks for “incident response preparation”: it looks for incident response plans, emergency contacts, log evidence preservation, and incident reporting workflows in repositories and documentation to see if there is a “paper trail.” It does not replace manual drills or regulatory certification, but it can scan for “existence” during the development phase. The maintainer is feely0208, categorized under admin-security; the current npm package version is 0.1.1 (MIT), requiring Node.js ≥18 and DSH ≥0.1.0-rc.6.

What is this

In one sentence: an emergency evidence kit—checking if you can produce evidence when things go wrong, covering plans, contacts, log preservation, and reporting workflows.

The plugin is part of the DeepSeek Harness plugin ecosystem (see the SkillHub plugin page for the community directory, and GitHub for the source code). It has a different division of labor from dsh-alert-relay (who to notify when something happens) and dsh-cn-log-retention (checking log retention periods): this plugin focuses on whether materials and configurations are complete before an incident occurs, as well as whether logs have preservation clues that remain “admissible after the fact.”

What it checks

The README summarizes the check items and bases in a table, which can be understood as priorities by severity level:

Level Content Basis (README Original)
High No incident response plan found Article 25 of the Cybersecurity Law
High Logs exist, but no evidence preservation (remote backup / tamper-proof / snapshot, etc.) found Cybersecurity Law Article 21 · MLPS Security Audit
Medium No emergency contact found MLPS Security Management System
Medium No incident reporting workflow found Cybersecurity Law Article 25 · Data Security Law Article 29

A specific risk emphasized in the README is: when logs and business databases are on the same machine and under the same account, an attacker might prioritize deleting logs, rendering it impossible to produce evidence later; MLPS (Multi-Level Protection Scheme) requirements for audit records include avoiding unexpected deletion, modification, or overwriting. The plugin indicates from the configuration and documentation side whether preservation-related descriptions or configurations exist, but does not verify if WORM (Write Once Read Many) or permissions are actually effective.

Installation & Enablement

Install under the DSH Web configuration profile (command from the official README):

dsh plugin --profile web add @deepwhale-cn/dsh-incident-package

If bypassing the DSH process and using it purely as a CLI tool:

npx @deepwhale-cn/dsh-incident-package

It is recommended to read the repository source code and MIT license before installation; the plugin scans the workspace with the current dsh process privileges, so do not run it directly on sensitive repositories containing unauditable code.

Typical Usage

The reproducible entry points provided by the README are as follows.

Demo mode (view sample output, can be run first without relying on a real repository structure):

dsh-incident-package --demo

List rules and basis explanations:

dsh-incident-package --list-rules

Export the report as an HTML file (example filename r.html):

dsh-incident-package --html r.html

The official README includes screenshots of the check report, demo mode output, and rules with bases (deepwhale.org.cn/plugin-assets/dsh-incident-package/) to help you compare what the CLI results look like.

Boundaries & Scenarios

Suitable for: Teams that need to quickly answer in delivery or self-check lists whether “incident response plans are written into the repository/documentation,” “contacts and reporting workflows have left traceable records,” or “log preservation is reflected in configurations or documentation.” When used alongside other “one plugin for one thing” guard plugins in the DeepWhale Security Guard series, it approaches a complete security chain.

Boundaries to be aware of (all from the README):

  1. Does not check plan quality—only checks “existence”; content quality and whether drills are conducted require manual review.
  2. Does not verify if contacts are reachable—only checks if they appear in documentation.
  3. Plans might be in other repositories or internal systems—reporting a missing item is a prompt for confirmation, not a definitive statement that it is not done.
  4. Evidence preservation is only checked via config and docs—whether storage permissions and tamper-proof policies are effective requires manual verification.

Users must comply with the laws and regulations of their location; the README states that users assume responsibility for the consequences of using this project.

Conclusion

dsh-incident-package consolidates several types of gaps that are “not prepared usually, too late when it happens”—plans, contacts, trusted log preservation, and reporting workflows—into a repeatable repository-level scan, facilitating a division of labor with plugins for alert relay and log retention within the DSH workflow.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye