Audit Rule Overview
Database audit provides five types of audit rules: audit scope, SQL injection, risky operations, privacy data masking, and SQL whitelists. You can manage and prioritize these rules to detect risks, defend against attacks, enhance compliance, and minimize false positives.
You are advised to periodically check audit rules and logs to ensure that they meet the latest security and compliance requirements. In this way, you can effectively monitor database activities and detect and handle security threats in time.
Rule Description
| Rule | Applicable Scenario | Description |
|---|---|---|
| Audit scope rules | By default, database audit complies with a full audit rule, which is used to audit all databases that are connected to the database audit instance. | You can also add audit scope and specify the databases to be audited. By default, the full audit rule takes effect even if other rules exist. To make another audit rule take effect, disable the full audit rule first. |
| SQL injection rules | You can add SQL injection rules to audit your databases. | SQL injection rules of database audit are enabled by default. You can disable, enable, edit, and set priorities for SQL injection rules. One piece of audited data can match only one SQL injection rule. |
| Risky operation rules | Database audit has four built-in detection rules, including database reduction detection, slow SQL statements detection, batch data tampering detection, and batch data deletion detection, helping you detect database security risks in a timely manner. | You can also add risky operations and customize detection rules. One piece of audited data can match only one risky operation rule. |
| Privacy protection rules | To mask sensitive information in entered SQL statements, you can enable the function of masking privacy data and configure masking rules to prevent sensitive information leakage. | Only user-defined rules can be edited and deleted. Default rules can only be enabled and disabled. |
| SQL whitelist | You can add risky SQL statements to the whitelist. The SQL statements in the whitelist will be ignored during the audit. | You can edit, disable, and delete the added SQL statement whitelist. |
References
- You can add an audit scope rule. For details, see Configuring an Audit Scope Rule.
- You can add a custom SQL rule to audit all the databases connected to database audit. For details, see Configuring SQL Injection Rules.
- You can add a risky operation rule to audit risky operations on databases. For details, see Managing Risky Operation Rules.
- To mask sensitive information in entered SQL statements, you can enable the function of masking privacy data and configure masking rules to prevent sensitive information leakage. For details, see Configuring Privacy Data Protection Rules.
- You can add trusted SQL statements to the whitelist. Database audit will ignore whitelisted SQL statements. For details, see Configuring SQL Whitelist.
- Database audit provides a preconfigured rule to scan original audit logs for slow SQL statements with a response time greater than 1 second. For details, see Checking for Slow SQL Statements.
- Database audit provides a preconfigured rule to scan original audit logs for security risks, such as data reduction and SQL statements used for data breaches. For details, see Checking for Data Reduction.
- You can configure a rule to detect operations on dirty tables. You can configure unnecessary databases, tables, and columns as dirty tables. Programs that access the dirty tables will be marked as suspicious programs. For details, see Checking for Dirty Tables.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot