Updated on 2023-01-10 GMT+08:00

Enabling or Disabling SQL Injection Detection

SQL injection detection is enabled by default. You can disable or enable the detection rules.

One piece of audited data can match only one SQL injection detection rule.

Prerequisites

  • You have applied for a database audit instance and the Status is Running.
  • You can enable SQL injection detection when the status is Disabled.
  • You can disable SQL injection detection when the status is Enabled.

Enabling SQL Injection Detection

SQL injection detection is enabled by default. You can disable the detection rules as required. When an SQL injection detection rule is disabled, the audit rule does not take effect.

  1. Log in to the management console.
  2. Select a region, click , and choose Security > Database Security Service. The Dashboard page is displayed.
  3. In the navigation tree, choose Rules.
  4. In the Instance drop-down list, select the instance for which you want to disable SQL injection detection.
  5. Click the SQL Injection tab.
  6. Locate the target rule, and click Disable in the Operation column.

    When the status of an SQL injection detection rule is Disabled, SQL injection detection is disabled successfully.

Follow-Up Procedure

To restart an SQL injection detection rule, click Enable in the Operation column of the target rule.

When the status of an SQL injection detection rule is Enabled, SQL injection detection is enabled successfully.