RDS Cluster audit logging for MySQL engine is disabled misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AWS_325
Category - Subcategory
Logging - Disabled or missing
Provider
AWS
Severity
LOW
Framework
Terraform, Terraform Plan
Impact
This rule verifies if audit logging is enabled for RDS Clusters running the MySQL engine in AWS (Amazon Web Services). Audit logging is vital because it helps in tracking and examining activities within the database. If audit logging is not enabled, it could lead to a lack of visibility which is crucial for identifying suspicious activities or understanding the cause of unexpected changes or errors. Consequently, it can pose serious risks, including data breaches and hinder compliance-related responsibilities.
How to Fix
Resource: aws_rds_cluster
Arguments: enabled_cloudwatch_logs_exports
To fix this issue, you should enable audit logging for your RDS Cluster which is using the MySQL engine. Audit logging helps in recording actions and events that are happening in the AWS environment and reviewing these logs enables identification of patterns and spotting unusual activities. [source,go]
resource "aws_rds_cluster" "pass" { master_username = "username" master_password = "password"
enabled_cloudwatch_logs_exports = ["audit"] iam_database_authentication_enabled = true }
Last updated
Was this helpful?
