During the development process, developers frequently embed third-party service endpoints in code or configuration files. If these endpoints are located outside China, the data transmission is classified as “cross-border data transfer” according to the Measures for the Standard Contract for Personal Information Exported Abroad (and related data export regulations). Legal or compliance departments typically require this information, yet developers are often unaware of these requirements. The following introduces the dsh-cn-data-export plugin, designed to scan code and configurations for cross-border data exports, personal information transmission, and missing security assessment declarations.
Core Features¶
This plugin primarily checks for the following:
- Cross-border data exports in code and configurations
- Outbound transmission of personal information
- Missing security assessment declarations
- Overseas service endpoints (requires manual confirmation)
- Absence of data export descriptions in documentation
Installation and Activation¶
Add this plugin to your DSH environment:
dsh plugin --profile web add @deepwhale-cn/dsh-cn-data-export
Usage¶
The plugin provides the following command-line tools:
dsh-cn-data-export --demo
dsh-cn-data-export --list-rules
dsh-cn-data-export --html r.html
Use Cases and Notes¶
- Domain Coverage: The domain list is limited and covers common overseas SaaS/cloud services. The plugin cannot directly scan scenarios such as self-hosted overseas data centers or direct IP connections.
- Detection Mechanism: The plugin does not perform data flow analysis; it only scans for literal domain names and field names appearing in the code.
- Determination Logic: The plugin cannot definitively determine “whether it constitutes a cross-border transfer.” Determining if a transfer constitutes a violation requires manual judgment regarding the type and volume of data, as well as the recipient.
- Functional Division: This differs from the
dsh-data-scanplugin. Whiledsh-data-scanidentifies where domestic data is located, this plugin (dsh-cn-data-export) identifies where data is being sent.