For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/azr-i96-fmv.md. A documentation index is available at /llms.txt.

CloudTrail log file validation should be enabled

Description

AWS CloudTrail trails should have log file validation enabled. Log file validation creates a digitally signed digest file containing a hash of each log file CloudTrail delivers to Amazon S3, which lets you determine whether a log file was modified, deleted, or remains unchanged after delivery. A trail fails this check when LogFileValidationEnabled is not set to true.

Remediation

  1. In the CloudTrail console, open Trails, select the target trail, click Edit in the General details section, check Enable under Log file validation in Advanced settings, and click Save changes. Alternatively, run aws cloudtrail update-trail --name <trail_name> --enable-log-file-validation as described in the AWS CLI update-trail reference.
  2. Periodically validate delivered logs with aws cloudtrail validate-logs --trail-arn <trail_arn> --start-time <start_time> --end-time <end_time>, as described in the CloudTrail log file integrity validation guide.

References