Create and manage detection features

Updated at:

Detection features identify data characteristics within fields and metadata properties through operations such as belonging, regular expressions, inclusion, and exclusion. These features enable intelligent recommendation of data classifications and standards. Dataphin provides predefined detection feature expressions for entities like phone and ID numbers, and supports custom feature creation.

Prerequisites

You must activate X-Data Security to use the intelligent generation feature for detection features.

Permission description

Super administrators, data standard administrators, security administrators, and custom global roles with Feature-Management permissions can create and manage detection features.

Introduction to detection features

Detection features drive intelligent recommendation of data standard mappings and field classification tagging. Feature scan configurations affect both mapping rules in the standard module and detection rules in the security module. Configure these settings carefully to avoid semantic conflicts and resource waste, considering the usage scenarios of both modules.

Create detection features

  1. Navigate to Administration > Data Security from the top menu bar on the Dataphin home page.

  2. In the navigation pane on the left, go to General Configuration > Feature. On the Feature page, click the Create Feature button.

  3. In the Add Feature dialog box, set the necessary parameters.

    Parameter

    Description

    Feature Name

    Enter the name of the detection feature. The name must be unique and can contain up to 128 characters.

    Feature Condition

    Select from Scan By Content, Scan By Field Name, Scan By Field Description, and Scan By Data Type.

    • Scan By Content: Identifies data by sampling and reading the content of the target field.

      • Regular (case-insensitive): Enter a regular expression in the input box. For example, to match all names containing test, the regular expression is defined as .*test.*, and the scan results are processed for case compatibility.

      • Regular Expression: Enter a regular expression in the input box. For example, to match all names containing test, the regular expression is defined as .*test.*.

      • Detection Threshold: The rule is treated as a valid detection only when the content match rate exceeds the threshold. Valid detections are included in the field's detection results for comparison.

    • Scan By Field Name: Scans and evaluates based on the field name in the metadata.

      • Regular (case-insensitive): Enter a regular expression in the input box. For example, to match all names containing test, the regular expression is defined as .*test.*, and the scan results are processed for case compatibility.

      • Regular Expression: Enter a regular expression in the input box. For example, to match all names containing test, the regular expression is defined as .*test.*.

      • Include/exclude: Keyword matching. For example, to match a user information table, enter user_info.

    • Scan By Field Description: Scans and evaluates based on the field description in the metadata.

      • Regular (case-insensitive): Enter a regular expression in the input box. For example, to match all names containing test, the regular expression is defined as .*test.*, and the scan results are processed for case compatibility.

      • Regular Expression: Enter a regular expression in the input box. For example, to match all names containing test, the regular expression is defined as .*test.*.

      • Include/exclude: Keyword matching. For example, to match a user information table, enter user_info.

    • Scan By Data Type: Scans and evaluates based on the data type of the field in the metadata.

      • Belong To: Supported data types include tinyint, smallint, mediumint, int, bigint, decimal, bit, date, datetime, timestamp, varchar, text, json, string. If the required data type is not available, you can customize the input data type.

      • Regular (case-insensitive): Enter a regular expression in the input box. For example, to match data types containing int, the regular expression is defined as .*int*, and the scan results are processed for case compatibility.

      • Regular Expression: Enter a regular expression in the input box. For example, to match data types containing int, the regular expression is defined as .*int.*.

      • Include/exclude: Keyword matching. For example, to match numeric data types, enter int.

    Note
    • At least one rule must be configured. To add a rule, click the +add Rule button.

    • You can configure a maximum of 50 rules and 5 layers of relationships.

    • The relationship between filter conditions can be configured as and or or.

    Description

    Enter a description of the usage scenarios for the detection feature. Maximum 1,000 characters.

  4. Click Confirm to finalize the creation of the detection feature.

Manage detection features

  1. The Feature page displays details such as the name, description, type, last updated by, and last update time of each detection feature.

  2. (Optional) Search for a specific detection feature by name or filter by type as needed.

  3. The following actions are available for the selected detection feature:

    Operation

    Description

    View

    View the configuration details of a detection feature.

    Edit

    Modify the content of custom detection features. After modification, related detection tasks that reference the feature are updated automatically. Coordinate with relevant business personnel in a timely manner.

    Clone

    Quickly copy an existing detection feature's configuration to create a new one.

    Delete

    Delete custom detection features. After deletion, the feature is automatically removed from all related detection tasks that reference it. Proceed with caution.

What to do next

  • After configuring a detection feature, you can associate it with data classifications for intelligent recommendations on field classification and tagging. For more information, see Create and manage data classification.

  • The system automatically suggests classifications and grades during detection rule scans and lineage automatic inheritance scans based on predefined features. For more information, see Create and manage detection rules.

Intelligent generation

Dataphin supports intelligent generation through Alibaba Cloud Model Studio and X-Data Security. Based on the input feature name, it automatically generates regular expressions that represent feature data content and potential field names, and recommends feature expressions with explanations. This reduces configuration effort and improves the accuracy of classification and grading detection.

You must enable the X-Data Security intelligent application before you can use the intelligent detection feature.

  1. In the top menu bar of the Dataphin home page, choose Administration > Data Security.

  2. In the navigation pane on the left, choose General Configuration > Feature. On the Feature page, click Create Feature.

  3. In the Add Feature dialog box, enter the name, and then click Intelligent Generation.

    The detection feature name must be unique and may include up to 128 characters. Once you've entered the feature name, you can click Intelligent Generation.

  4. The system will generate condition information for the current detection feature in the Intelligent Generation Of Detection Feature Conditions And Description section. You may edit this information. Once verified, click Application to automatically populate the Add Feature dialog box.

    Parameter

    Description

    Feature Condition

    Automatically generates feature conditions based on the detection feature name.

    Description

    Automatically generates a description that integrates each rule. Maximum 1,000 characters.

    You can perform the following operations on the generated information:

    • Click Retry to regenerate the feature condition information.

    • Discard: Discards the automatically recommended feature conditions. You can then configure the conditions in the dialog box.

    • Select Stop to halt the generation of feature condition information. You can then configure it manually in the dialog box.

  5. Click Confirm to add the detection feature.

    If you do not apply the intelligently generated detection feature, click Confirm. In the Intelligent Generation Results Not Saved dialog box, choose to either Apply Intelligent Generation Feature Conditions And Description or Deprecate Intelligent Generation Results, and then click Confirm.