Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Amazon Web Services Foundations v7.0.0 · 4.2

CloudTrail trails should have log file validation turned on

  • Level 2

This check looks at each CloudTrail trail and whether log file integrity validation is enabled. The safe setting is on, so CloudTrail signs digest files that let you prove delivered log files were not changed or removed.

Why it matters

CloudTrail logs are the record of who did what in an AWS account. They are only useful as evidence if you can trust that nobody edited or deleted them after delivery. When log file integrity validation is on, CloudTrail creates a hash for every log file it delivers. Every hour it also writes a digest file that lists the last hour's log files with their hashes and signs it with a private key; you verify with the public key later. AWS says this makes it computationally infeasible to change, delete or forge log files without detection.

It also lets you state that no log files were delivered during a given period, which matters in an investigation. Digest files go to the same S3 bucket as the logs, in a separate folder, so existing log processing keeps working.

Source: Validating CloudTrail log file integrity in the AWS documentation.

How to check it yourself

In the CloudTrail console open Trails, select a trail and look at Log file validation in the general details; it should read Enabled. Check every trail, including those in other Regions.

Read-only AWS CLI:

aws cloudtrail describe-trails --include-shadow-trails --query "trailList[].{Name:Name,Validation:LogFileValidationEnabled}"

Each trail should show true. To test that validation works on a trail that already has it, run this read-only command, which reads digest and log files from S3:

aws cloudtrail validate-logs --trail-arn <trail-arn> --start-time 2026-11-01T00:00:00Z

How to fix it

In the console, open the trail, choose Edit in the general details, switch on Log file validation and save. Or use the CLI:

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

AWS notes that enabling this only starts digest delivery; it does not check files by itself, so schedule the validate-logs command or an equivalent when you need proof. Validation also covers only files in the place CloudTrail delivered them. ConfigCobra itself never changes your AWS account; run these changes yourself.

What changes when you fix it

Nothing changes for the people and services that use the account. CloudTrail starts to deliver an extra hourly digest file to the trail's S3 bucket, in its own folder, so the bucket holds slightly more objects. Teams that read the bucket with lifecycle rules, access policies or log tools should confirm those do not block or misread the digest folder. Digest files only start from the moment of enabling, so earlier logs stay unverifiable. AWS suggests S3 MFA Delete as an extra safeguard for the stored digest files.

Included in

BenchmarkCIS IDProfile
CIS Amazon Web Services Foundations v7.0.04.2Level 2

Check this on your AWS

ConfigCobra runs this check with every other control of the CIS Amazon Web Services Benchmarks, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial