< Back to rules searchS3 bucket access logging is enabled on the CloudTrail S3 bucket
Description
S3 Bucket Access Logging generates a log that contains access records for each request made to your S3 bucket. An access log record contains details about the request, such as the request type, the resources specified in the request worked, and the time and date the request was processed. It is recommended that bucket access logging be enabled on the CloudTrail S3 bucket.
Rationale
By enabling S3 bucket logging on target S3 buckets, it is possible to capture all events which may affect objects within any target buckets. Configuring logs to be placed in a separate bucket allows access to log information which can be useful in security and incident response workflows.
From the console
- Sign in to the AWS Management Console and open the S3 console at https://console.aws.amazon.com/s3.
- Under All Buckets click on the target S3 bucket
- Click on Properties in the top right of the console
- Under Bucket: <s3_bucket_for_cloudtrail> click on Logging
- Configure bucket logging and click on the Enabled checkbox
- Select Target Bucket from list and enter a Target Prefix
- Click Save
Default value
Logging is disabled.
References
- CCE-78918-0
- https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerLogs.html
CIS controls
Version 7
6.2 - Activate audit logging: Ensure that local logging has been enabled on all systems and networking devices.
14.9 Enforce Detail Logging for Access or Changes to Sensitive Data: Enforce detailed audit logging for access to sensitive data or changes to sensitive data (utilizing tools such as File Integrity Monitoring or Security Information and Event Monitoring).