Use DAS Agent for AI-assisted database security audit analysis
The DAS Agent provided by Alibaba Cloud Database Autonomy Service (DAS) analyzes the security audit data of an instance to help you investigate suspicious SQL statements and abnormal database access. This topic describes how to start an AI analysis task and verify the analysis results against the raw logs.
Prerequisites
Security audit (new version) and the audit logs required for analysis are enabled for the target instance, and queryable data is available within the time range to analyze. For more information, see Enable security audit (new version).
NoteThe databases and regions supported by AI analysis are the intersection of the ranges supported by security audit (new version) and DAS Agent. The engine and region of the target instance must meet the support requirements of both. Before you start an analysis, check whether the AI Analysis entry is displayed in the console.
The logon account has the permissions to access DAS and the target database instance. If you use a RAM user, make sure that the required permissions are granted by using your Alibaba Cloud account. For more information, see How do I use DAS as a RAM user.
Billing
Using DAS Agent to analyze security audit data incurs the following fees:
Fees for security audit, audit logs, and storage: See Enable security audit (new version) and DAS Enterprise Edition for details.
Fees for the computing resources and usage of DAS Agent: See DAS Agent billing details. Before you use this feature, check the entitlement and billing information displayed in the console.
Usage notes
AI analysis covers only the logs that DAS can access within the time range of the task.
Do not submit credentials such as database passwords, AccessKey pairs, or tokens to DAS Agent.
Start an AI analysis task
Log on to the DAS console.
On the Overview tab, filter by region or instance information to find the target instance for which security audit is enabled.
In the Actions column of the target instance, click AI Analysis to open DAS Agent.
Verify the instance and the start and end time of the task to make sure that the events to investigate are covered.
Wait for the analysis to complete, and then view the analysis results in the DAS Agent panel.
Verify the analysis results
Verify the analysis results against the raw logs and your business context. Check the results in the following order:
Check the logs. Compare the accounts, access sources, timestamps, and SQL statements in the analysis results with the audit alert details. To verify the raw SQL statements, query them in SQL Explorer and Audit.
Check business changes. Confirm whether the operations belong to approved releases, O&M tasks, or data processing tasks. If the context is unclear, verify with the operator.
Record the handling results. Handle the confirmed risks based on your business security process, and retain the related logs, evidence, and handling records.
For operations that are confirmed as normal but repeatedly trigger alerts, evaluate whether to perform the following operations:
Adjust alert rules: Configure rules to generate alerts only for the specific operations that you want to focus on.
Configure a whitelist: Exclude the alerts that are triggered by database operations that are confirmed as normal. When you configure a whitelist, specify the instances, accounts, access sources, and operation types. Whitelisted operations no longer generate alerts within the specified scope, but whether the raw logs remain queryable depends on whether logging is enabled and on the log retention period. After you modify a whitelist, check both the alerts and the raw logs. Do not conclude that the operations have stopped only because the alerts disappear.
Before you execute SQL statements, block accounts, or modify permissions or rules based on the analysis results, verify the analysis evidence first. Do not directly execute the recommendations generated by AI.
FAQ
Why are no valid analysis results displayed even though the AI analysis entry point is available?
Check whether the required audit and logging features are enabled for the instance and whether your account has the access permissions. Then confirm that logs are available within the time range of the task. Missing logs or collection delays affect the analysis results. If the issue persists, verify the databases and regions supported by the AI feature, and retain the error message displayed on the page for troubleshooting.
Does the analysis scope inherit the filter conditions of the alert page?
The security audit AI analysis of DAS Agent does not automatically inherit the filter conditions of the alert page. The actual analysis scope is determined by the instance and the start and end time specified in the task, and does not necessarily include only the single alert that you are currently viewing. Before you start a task, re-check the analysis scope.
Can AI analysis results be used as MLPS 2.0 assessment conclusions?
No. AI analysis results are for investigation assistance only and cannot be used directly as assessment conclusions. When you prepare the assessment materials, also provide the raw audit logs, the configuration and permission information, the log retention and recovery descriptions, and the manual review records.