Check provider logo

CloudTrail trail has log file validation enabled

cloudtrail_log_file_validation_enabled

Severitymedium
Servicecloudtrail
by Prowler

AWS CloudTrail trails are evaluated for log file integrity validation being enabled (LogFileValidationEnabled).

When enabled, CloudTrail generates signed digest files to verify that S3-delivered log files remain unchanged.

Risk

Without validation, adversaries can alter, forge, or delete audit entries without detection, compromising log integrity and non-repudiation.

This impairs investigations, enables alert evasion, and obscures unauthorized changes across regions or accounts.

Run this check with Prowler CLI

prowler aws --checks cloudtrail_log_file_validation_enabled

Recommendation

Enable log file integrity validation on all trails (LogFileValidationEnabled=true).

Enforce least privilege on the logs bucket, retain and protect digest files (e.g., S3 Object Lock/MFA Delete), and monitor validation results to support defense in depth.

Remediation

CLI

aws cloudtrail update-trail --name <trail_name> --enable-log-file-validation

Native IaC
Terraform
Other
  1. Open the AWS Console and go to CloudTrail
  2. Click Trails and select <trail_name>
  3. Click Edit
  4. In Additional/Advanced settings, check Enable log file validation
  5. Click Save changes

Source Code

Resource Type

AwsCloudTrailTrail

References