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 EnableLogFileValidation: 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
Configure the referenced log bucket and its access policy separately.
Before
yaml
Resources:
Trail:
Type: AWS::CloudTrail::Trail
Properties:
S3BucketName: !Ref LogBucket
IsLogging: true
IsMultiRegionTrail: true
EnableLogFileValidation: false
After
yaml
Resources:
Trail:
Type: AWS::CloudTrail::Trail
Properties:
S3BucketName: !Ref LogBucket
IsLogging: true
IsMultiRegionTrail: true
EnableLogFileValidation: true