Control: 4 Ensure CloudTrail log file validation is enabled
Description
This control checks whether log file integrity validation is enabled on a CloudTrail trail.
CloudTrail log file validation creates a digitally signed digest file that contains a hash of each log that CloudTrail writes to Amazon S3. You can use these digest files to determine whether a log file was changed, deleted, or unchanged after CloudTrail delivered the log.
Security Hub recommends that you enable file validation on all trails. Log file validation provides additional integrity checks of CloudTrail logs.
Remediation
To remediate this issue, update your CloudTrail trail to enable log file validation.
To enable CloudTrail log file validation
- Open the CloudTrail console.
- Choose
Trails
. - Under
Name
, choose the name of a trail to edit. - Under
General details
, chooseEdit
. - Under
Additional settings
, for Log file validation, chooseEnabled
. - Choose
Save changes
.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.foundational_security_cloudtrail_4
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.foundational_security_cloudtrail_4 --share
SQL
This control uses a named query:
cloudtrail_trail_validation_enabled