dsh-data-rights: Verifying the Implementation of Access, Copy, and Deletion Rights under PIPL via Static Scanning

Preface

In DSH or conventional Web projects, “user deletion” is often implemented as updating database fields: setting is_deleted, deletedAt, or setting status to deleted. Functionally, the account becomes invisible, but the row data still remains in the database, potentially being queried, exported, or leaked. Article 47 of the Personal Information Protection Law (PIPL) requires that when an individual requests deletion, the processor must actively delete; in regulatory contexts, “deletion” includes physical deletion and irreversible anonymization—merely soft deletion typically does not constitute deletion in the compliance sense.

For consent collection, tools like dsh-consent-guard are available for reference; the exercise of rights (whether access, copying, deletion, and account cancellation are implemented in code) requires a separate set of checks. @deepwhale-cn/dsh-data-rights (repository feely0208/dsh-data-rights) is an admin-security plugin within the DeepSeek Harness ecosystem, maintained by feely0208. It scans code repositories against rules and flags whether the right to deletion, the right to access/copy, and the rights request channel are “findable” at the implementation level.

What This Is

The plugin’s npm package name is @deepwhale-cn/dsh-data-rights (current version 0.1.1, MIT license). In one sentence: it checks whether the rights to access, copy, and delete are actually implemented, primarily based on Articles 45, 47, and 50 of the Personal Information Protection Law.

It depends on @deepwhale-cn/dsh-guard-core and can be integrated into DSH via bundle patch or run standalone via CLI. Division of labor with consent-guard: the former checks the acquisition of consent; this plugin checks the exercise of rights.

What It Checks

Scan results are graded by severity; the rule summary from the README is as follows:

Severity Content Basis
High “Deletion” is just a flag, data still in the database PIPL Article 47
High Cannot find implementation of deletion info / account cancellation PIPL Articles 47, 50
Medium Cannot find implementation of access / copy / export of personal information PIPL Article 45
Low Cannot find the rights request channel in documentation PIPL Article 50

Soft deletion deserves separate attention: there may be deleteUser in the repository, and the business may be running, but what PIPL requires is actual deletion or irreversible anonymization. The plugin’s recognition of soft deletion relies on common patterns (such as is_deleted, deletedAt, status: 'deleted', etc.); custom field names may be missed.

Installation and Activation

Install in DSH (web profile):

dsh plugin --profile web add @deepwhale-cn/dsh-data-rights

When not depending on the DSH process, you can directly use npx to fetch the same package:

npx @deepwhale-cn/dsh-data-rights

Runtime environment requirements: node >= 18, dsh >= 0.1.0-rc.6 (only needed for DSH integration path). The plugin reads project files with the permissions of the current DSH or CLI process; before installing or executing, it is recommended to review the GitHub source code and license to ensure compliance with team security policies.

Typical Usage

After installation, you can operate via the dsh-data-rights command. Examples from the README:

dsh-data-rights --demo
dsh-data-rights --list-rules
dsh-data-rights --html r.html

--demo is for viewing demo mode output; --list-rules lists rules and legal basis; --html r.html exports the check report as HTML. Formal scanning is generally executed in the project context bound to DSH; specific interaction should follow DSH documentation and plugin skills. The official README includes report examples, demo output, and rule explanation screenshots (see deepwhale.org.cn plugin assets).

Boundaries and Applicable Scenarios

Who it’s for: Backend, full-stack, or security engineering professionals responsible for PIPL compliance self-checks; use static results to add a round of “are rights written in code” checks before and after modifying account cancellation, data export, or user deletion logic.

Limitations you must know (from official README):

  1. Only looks at code, not actual database state — situations where code hasn’t soft-deleted but backups still exist, this tool cannot see.
  2. “Cannot find” is a weak signal — rights requests may be handled manually by operations, and the cancellation entry may be in another repository; the report prompts you to manually confirm, not a final conclusion.
  3. Soft deletion recognition relies on patterns — non-standard field names may be missed.
  4. Does not check response time limits — PIPL requires “timely” responses; specific time limits (e.g., 15 working days) need manual verification.

The DSH community plugin catalog is independent from the DeepSeek / High-Flyer official app store; you can view collection information on the SkillHub catalog page. This plugin is an auxiliary tool; users must comply with local laws and regulations and bear responsibility for the consequences of its use.

Conclusion

dsh-data-rights translates the implementation gaps related to “access, copy, delete, cancellation, request channel” from Articles 45, 47, and 50 of the PIPL into reproducible code-level check items, forming a chain of complementary links with the DeepWhale Security Guardian series plugins such as consent-guard. For installation instructions and rule details, refer to the GitHub README; in the DSH plugin market, you can search by package name @deepwhale-cn/dsh-data-rights.

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

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

Xiaoye