1
0
forked from docs/doc-exports
doc-exports/docs/dbss/umn/dbss_01_0362.html
Li, Qiao 6eff629de3 First upload for DBSS UMN.
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-authored-by: Li, Qiao <qiaoli@huawei.com>
Co-committed-by: Li, Qiao <qiaoli@huawei.com>
2023-08-07 08:50:48 +00:00

8.0 KiB

Adding an SQL Injection Rule

You can add SQL injection rules to audit your databases.

Prerequisites

  • You have purchased a database audit instance and the Status is Running.
  • You have added a database and enabled database audit.
  • A database has been added.

Procedure

  1. Log in to the management console.
  2. Click Add Rule and configure parameters.

    Figure 1 Adding an SQL injection rule
    Table 1 SQL injection rule parameters

    Parameter

    Description

    Example Value

    Name

    Name of an SQL rule.

    Postal Code SQL injection Rule

    Risk Level

    Level of risks matching a SQL rule. Its value can be:

    • High
    • Moderate
    • Low
    • No risk

    Moderate

    Status

    Enables or disables an SQL injection rule.

    • : enabled
    • : disabled

    Test Regular Expression

    Regular expression that checks for content in certain pattern.

    ^\d{6}$

    Data

    Content that matches the regular expression.

    Enter content and click Test to verify that the regular expression works properly.

    628307

    Result

    Test result. It can be:

    • Hit
    • Miss
      NOTE:

      If the test result is Hit, the regular expression is correct.

      If the test result is Miss, the regular expression is incorrect.

    Hit

  3. Confirm the information and click OK.