dsh-data-classify: Check for data classification labels and asset inventory in the repository

Introduction

When developing business or data-related features within DSH (DeepSeek Harness), models and plugins often need to read data dictionaries, schemas, and configuration files. If sensitive information such as ID numbers, phone numbers, or salaries already exists in fields but is marked as public for a long time or lacks a classification field entirely, subsequent encryption, access control, retention, and cross-border assessments lack a basis. Article 21 of the Data Security Law requires the establishment of a data classification and grading protection system; classification is not just about “filling out a form,” but ensuring that code and documentation reveal “how this type of data is graded.”

The ecological philosophy of DeepSeek Harness is “Everything is a Plugin”: capabilities are attached to the Harness as plugins. The community directory is maintained on a separate site and has no official affiliation with DeepSeek or High-Flyer. Below is an introduction to the dsh-data-classify plugin by maintainer feely0208 (npm package name @deepwhale-cn/dsh-data-classify, category admin-security). It specifically checks: whether the data itself has classification labels in the repository, and whether there are clues regarding asset lists or institutional documents—it does not determine the grade for you, but helps you discover where “classification traces are missing where they should exist.”

What is this

The positioning of dsh-data-classify can be summarized by a sentence from its README: Data Classification and Grading — Check if data has classification labels and asset lists.

A typical problem is a data dictionary looking like this:

"fields": {
  "idcard": { "type": "string", "public": true },
  "phone":  { "type": "string", "public": true },
  "salary": { "type": "string", "public": true }
}

ID numbers, phone numbers, and salaries are all marked as public. Without classification, it is impossible to apply different protection strengths to different data; encryption, access control, retention periods, and cross-border assessments are all built upon the premise of “what level this data is.” This plugin performs static/rule-based checks on the engineering side to report these gaps, facilitating alignment with compliance and data governance colleagues.

What it checks

The README summarizes the check focus points in a table (severity is subject to the plugin’s report):

Level Content
High Sensitive data appears but no classification label is found
Medium No classification system document found · No data asset list found
Medium All data is marked as Public Level

Regarding “All Public”: The plugin considers this usually not to mean “we really only have public data,” but rather that the classification work is incomplete (default values were marked first). The value of classification and grading lies in differentiation — having only one level is equivalent to having no classification.

Sensitive field recognition relies on heuristics such as field names; custom naming may result in missed reports. Rule details can be viewed via --list-rules.

Installation and Activation

Install via the DSH Web configuration side:

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

For CLI-only usage without the DSH plugin command:

npx @deepwhale-cn/dsh-data-classify

package.json declares: Requires Node >= 18, dsh >= 0.1.0-rc.6; current package version is 0.1.1, License MIT. The plugin scans the workspace with the current dsh process permissions. Before installing or using npx, please review the GitHub Source Code and License to ensure compliance with organizational policies.

Typical Usage

After installing the CLI, the reproducible commands provided in the README are as follows.

Demo mode (view sample output and rule effects):

dsh-data-classify --demo

List built-in rules and basis:

dsh-data-classify --list-rules

Generate HTML report:

dsh-data-classify --html r.html

The official README includes diagrams of the inspection report, demo mode output, rules, and basis (hosted on deepwhale.org.cn under the plugin-assets path), which can be compared with local --html output for understanding.

Boundaries and Complementary Tools

Before use, please clarify that the plugin does not judge “what level it should be” — classification standards are determined by the industry and the organization. Classification may also exist outside the repository (data governance platforms, internal documents); reported items are prompts for you to confirm, not direct determinations of violations.

Other boundaries (excerpted from README):

  • Sensitive data is identified by field names; custom naming will be missed.
  • CLASSIFY-ALL-PUBLIC is heuristic: it is only worth questioning when “public” appears in multiple places as the only level.

Division of labor with the same maintainer’s dsh-pipia: dsh-pipia checks the personal information impact assessment process; dsh-data-classify checks whether the data itself has classification. In the DeepWhale Security Guard series, this plugin is categorized under the “Domestic Compliance” direction and can be combined with data scanning, retention, and cross-border plugins as needed; security problems are chain-like, and a single plugin only covers one link.

README declaration: This plugin is a tool; users must abide by the laws and regulations of their region and bear responsibility for the consequences of its use.

Links

  • Community Directory Page: https://www.skillhub.cn/plugins/feely0208/dsh-data-classify
  • Source Code and Documentation: https://github.com/feely0208/dsh-data-classify

Through the steps above, you can run a fixed classification and inventory clue check in your DSH project or CI, exposing issues such as “sensitive fields without labels,” “missing lists/system documents,” and “uniformly public levels” as early as before commits, rather than waiting until audits or incidents to supplement the ledger.

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

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

Xiaoye