> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-aurora-mysql-db-cluster-does-not-publish-audit-logs-to-cloudwatch-logs.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Aurora MySQL DB cluster does not publish audit logs to CloudWatch Logs

### Synopsis

| Field               | Value                                                                      |
| ------------------- | -------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                  |
| Finding Type        | AWS Aurora MySQL DB cluster does not publish audit logs to CloudWatch Logs |
| Finding ID          | 60000904                                                                   |
| Generates a Finding | This detection rule also generates a finding                               |
| Severity            | Informational                                                              |
| Category            | CONFIGURATION                                                              |
| Cloud Providers     | AWS                                                                        |
| Platform Module     | CSPM                                                                       |
| Asset Types         | RDS\_DATABASE\_CLUSTER                                                     |

### Description

AWS Aurora MySQL DB clusters lacking CloudWatch Logs integration for audit logs pose a significant security risk. Failure to publish these logs prevents centralized monitoring and analysis of database activity, hindering threat detection and incident response.

Aurora MySQL DB clusters offer customizable audit logging for tracking database operations. However, this functionality requires explicit configuration to publish logs to CloudWatch Logs. Without this configuration, security events remain siloed within the database instance, making comprehensive security monitoring impossible. Attackers could exploit this misconfiguration to remain undetected, potentially leading to data breaches or unauthorized modifications.

The impact of this misconfiguration is a lack of visibility into database activity, significantly increasing the risk of successful attacks going unnoticed. Centralized logging in CloudWatch Logs enables efficient security monitoring, threat detection, and forensic analysis, ultimately improving security posture and reducing response times to security incidents. This best practice facilitates compliance requirements and simplifies security auditing.

To mitigate this, explicitly enable audit logs within the Aurora MySQL DB cluster settings and configure the cluster to publish these logs to a designated CloudWatch Logs log group. Regularly review the CloudWatch Logs for suspicious activity. Establish monitoring alerts for critical security events within the logs to facilitate prompt response to potential threats.

### Remediation

To create a custom parameter group if the cluster has only the default parameter group use the following steps:

1. Sign in to the AWS Management Console
2. Select the specific region from the region drop-down in the top right corner, for which the alert is generated
3. In the Navigation Panel on the left, Select 'All services' and under 'Database', select 'RDS'
4. In the navigation pane, choose 'Parameter groups'
5. Choose 'Create parameter group'
6. The Create parameter group window appears

   6a. In the 'Parameter group name' box, enter the name of the new DB cluster parameter group.

   6b. In the 'Description' box, enter a description for the new DB cluster parameter group.

   6c. In the 'Engine type' drop-down, select the engine type (Aurora MySQL)

   6d. In the 'Parameter group family' list, select a DB parameter group family

   6e. In the Type list, select 'DB cluster Parameter Group'.
7. Choose 'Create'

To modify the custom DB cluster parameter group to enable audit logging, follow the below steps:

1. Sign in to the AWS Management Console
2. Select the specific region from the region drop-down in the top right corner, for which the alert is generated
3. In the Navigation Panel on the left, Select 'All services' and under 'Database', select 'RDS'
4. In the navigation pane, choose 'Parameter groups'
5. In the list, choose the above-created parameter group or the reported resource custom parameter group that you want to modify.
6. Choose 'Actions', and then choose 'Edit' to modify your Parameter group.
7. Change the value of the 'server\_audit\_logging' parameter to '1' in the value drop-down and click 'Save Changes' for enabling audit logs.

To modify an AWS Aurora MySQL DB Cluster to use the custom parameter group, follow the below steps:

1. Sign in to the AWS Management Console
2. Select the specific region from the region drop-down in the top right corner, for which the alert is generated
3. In the Navigation Panel on the left, Select 'All services' and under 'Database', select 'RDS'
4. In the navigation pane, choose 'Databases'
5. Choose the reported cluster that you want to associate your parameter group with. Choose 'Modify' to modify your cluster
6. Under 'Additional configuration', select the above-created cluster parameter group from the 'DB cluster parameter group' dropdown
7. Choose 'Continue' and check the summary of modifications
8. Under the 'Schedule modifications' section, select 'Apply during the next scheduled maintenance window' or 'Apply immediately' based on your requirements for when to apply modifications
9. Choose 'Modify cluster' to save your changes

To modify an AWS Aurora MySQL DB Cluster for enabling export logs to cloudwatch, follow the below steps:

1. Sign in to the AWS Management Console
2. Select the specific region from the region drop-down in the top right corner, for which the alert is generated
3. In the Navigation Panel on the left, Select 'All services' and under 'Database', select 'RDS'
4. In the navigation pane, choose 'Databases'
5. Choose the reported cluster that you want to associate your parameter group with. Choose 'Modify' to modify your cluster
6. In the 'Log exports' section, choose the 'Audit log' to start publishing to CloudWatch Logs
7. Choose 'Continue' and check the summary of modifications
8. Under the 'Schedule modifications' section, select 'Apply during the next scheduled maintenance window' or 'Apply immediately' based on your requirements for when to apply modifications
9. Choose 'Modify cluster' to save your changes


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-aurora-mysql-db-cluster-does-not-publish-audit-logs-to-cloudwatch-logs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
