Updated on 2023-03-02 GMT+08:00

Adding a Rule

An identification rule group, as a service logic group, includes scattered rules. A rule group is the prerequisite for operating a sensitive data identification task.

Constraints

You can add a built-in rule or customized rule. Built-in rules cannot be added, edited, and deleted.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. In the navigation pane on the left, click and choose Security > Data Security Center.
  4. In the navigation pane, choose Sensitive Data Identification > Identification Rule.

    Figure 1 Rules

  5. In the upper left corner of the rule list, click Add Rule.
  6. In the displayed dialog box, configure basic parameters. For parameter details, see Table 1.

    Figure 2 Adding an identification rule
    Table 1 Parameters for adding an identification rule

    Name

    Description

    Example Value

    Rule

    You can customize a rule name.

    The rule name must meet the following requirements:

    • Contain 1 to 255 characters.
    • Consist of letters, digits, underscores (_), and hyphens (-).
    • Be unique.

    N/A

    Type

    Set it to Keyword or Regular expression.

    • Keyword: Indicates that the rule can be executed using keywords.
    • Regular expression: A regex follows concise, flexible principles to match (specify and identify) characters, words, and patterns.

    Keyword

    Keyword

    This parameter is displayed when Type is set to Keyword.

    • Logic: Select a logical relationship for keywords.
      • AND: All keywords are included.
      • OR: Only one keyword is included.
    • Content: Enter a keyword. You can click to add a maximum of 10 keywords.

    and, Zhang San

    Regular Expression

    This parameter is displayed when Type is set to Regular expression.

    N/A

    Risk Level

    Select the risk level for the rule.

    The risk level ranges from 1 to 10. Levels 1 to 3 indicate low risks, 4 to 7 indicate medium risks, and 8 to 10 indicate high risks.

    5 (Medium)

    Minimum Matching Times

    Number of rule hits. If the number of rule hits reaches the set value, the information will be marked as sensitive information.

    2

    Description

    (Optional) This parameter is used to differentiate this rule from others.

    N/A

  7. Click OK.