π AWS CloudTrail Log File Validation is not enabled π’
- Contextual name: π Log File Validation is not enabled π’
- ID:
/ce/ca/aws/cloudtrail/log-file-validation
- Located in: π AWS CloudTrail
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
RELIABILITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-b1e1a494
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-b1e1a494 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
CloudTrail log file validation creates a digitally signed digest file containing a hash of each log that CloudTrail writes to S3. These digest files can be used to determine whether a log file was changed, deleted, or unchanged after CloudTrail delivered the log. It is recommended that file validation be enabled on all CloudTrails.
Rationaleβ
Enabling log file validation will provide additional integrity checking of CloudTrail logs.
Auditβ
Perform the following on each trail to determine if log file validation is enabled:
From Consoleβ
Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/cloudtrail.
Click on
Trails
on the left navigation pane.For Every Trail:
- Click on a trail via the link in the
Name
column.- Under the
General details
section, ensureLog file validation
is set toEnabled
.From Command Lineβ
List all trails:
aws cloudtrail describe-trails
Ensure
LogFileValidationEnabled
is set totrue
for each trail.Default Valueβ
... see more
Remediationβ
Remediationβ
Perform the following to enable log file validation on a given trail:
From Consoleβ
- Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/cloudtrail.
- Click on
Trails
on the left navigation pane.- Click on target trail.
- Within the
General details
section clickedit
.- Under the
Advanced settings
section.- Check the enable box under
Log file validation
.- Click
Save changes
.From Command Lineβ
Enable log file validation on a trail:
aws cloudtrail update-trail --name <trail_name> --enable-log-file-validation
Note: periodic validation of logs using these digests can be performed by running the following command:
aws cloudtrail validate-logs --trail-arn <trail_arn> --start-time <start_time> --end-time <end_time>