Description
While log file validation is enabled, CloudTrail delivers signed digests containing hashes of the log files it delivers.
Potential impact
Periods when validation was off have no digests to check for changed or deleted logs.
Remediation
Set enable_log_file_validation = true. Keep the logs and digests at their original S3 location. To verify a period, run aws cloudtrail validate-logs for the trail and time range.
Examples
Before
hcl
resource "aws_cloudtrail" "example" {
name = "example"
s3_bucket_name = "bucketlog1"
}
After
hcl
resource "aws_cloudtrail" "example" {
name = "example"
s3_bucket_name = "bucketlog1"
enable_log_file_validation = true
}