# 3.4 Ensure that server access logging is enabled on the CloudTrail S3 bucket (Manual)

- Source: https://support.icompaas.com/support/solutions/articles/62000234247-3-4-ensure-that-server-access-logging-is-enabled-on-the-cloudtrail-s3-bucket-manual-
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS Amazon Web Services Foundations Benchmark v5.0.0](https://support.icompaas.com/support/solutions/62000112684) › [CIS AWS Benchmarks](https://support.icompaas.com/support/solutions/folders/62000169233)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

#### **Profile Applicability**

-   **Level 1**

#### Description:

CloudTrail logs are stored in an S3 bucket, and server access logging allows tracking of requests made to this S3 bucket. Enabling server access logging on the S3 bucket where CloudTrail logs are stored ensures that all requests to access these logs are captured. This is important for security auditing and detecting unauthorized access to CloudTrail logs.

Server access logs provide detailed information about the requests made to the S3 bucket, including the requester’s identity, request time, request type, and the status of the request. Enabling this feature enhances the integrity and availability of the CloudTrail logs.

#### Rationale:

Server access logging for S3 buckets provides the following benefits:

-   Auditability: Tracks every request made to the S3 bucket where CloudTrail logs are stored, allowing for accountability and detailed logging of access.  
    
-   Security monitoring: Helps detect unauthorized or suspicious access to CloudTrail logs, such as attempts to delete or modify log data.
    
-   Compliance: Meets regulatory requirements for logging and audit trail integrity.  
    

Without server access logging, you lose visibility into the access patterns for CloudTrail logs, increasing the risk of unauthorized tampering or data exposure.

#### Impact:

Failure to enable server access logging on the S3 bucket for CloudTrail logs can result in:

-   Lack of visibility into who is accessing CloudTrail logs.  
    
-   Delayed detection of unauthorized access to log data.  
    
-   Potential tampering with or deletion of CloudTrail logs without detection.  
    

Enabling server access logging ensures that all access to CloudTrail logs is captured and monitored for suspicious activity.

#### Default Value:

By default, server access logging is not enabled for S3 buckets storing CloudTrail logs. You need to manually enable it for each CloudTrail log bucket.

#### Pre-Requisites:

-   AWS CLI installed and configured  
    
-   IAM permissions:  
    
    -   s3:GetBucketLogging  
        
    -   s3:PutBucketLogging  
        
    -   cloudtrail:DescribeTrails  
        
-   CloudTrail should be enabled and logs should be stored in an S3 bucket  
    

#### Remediation:

##### Test Plan:

Using AWS Console:

1.  Go to the [S3 Console](https://console.aws.amazon.com/s3/).  
    
2.  Verify that Server access logging is enabled for the S3 bucket where CloudTrail logs are stored.
    
3.  Go to the [CloudTrail Console](https://console.aws.amazon.com/cloudtrail/) and ensure that logs are being stored in the S3 bucket and that server access logging is enabled for it.
    

Using AWS CLI:

aws s3api get-bucket-logging --bucket <bucket-name> --query "LoggingEnabled" --output table

To verify if CloudTrail is using the correct S3 bucket:

aws cloudtrail describe-trails --query "TrailList\[?S3BucketName!=null\].{TrailName:Name, S3BucketName:S3BucketName}" --output table

##### Implementation Plan:

Using AWS Console:

1.  Enable server access logging for CloudTrail S3 bucket:  
    
    -   Go to the [S3 Console](https://console.aws.amazon.com/s3/).  
        
    -   Select the S3 bucket where CloudTrail logs are stored.  
        
    -   Under the Properties tab, go to Server access logging.  
        
    -   Enable logging and specify the Target bucket (you can use a separate S3 bucket to store the log files).
        
2.  Verify CloudTrail logging configuration:  
    
    -   Go to the [CloudTrail Console](https://console.aws.amazon.com/cloudtrail/).  
        
    -   Ensure CloudTrail is configured to store logs in the specified S3 bucket.  
        

Using AWS CLI:

1.  Enable server access logging for CloudTrail S3 bucket:  
    

aws s3api put-bucket-logging --bucket <bucket-name> --bucket-logging-status '{"LoggingEnabled": {"TargetBucket": "<log-bucket-name>", "TargetPrefix": "logs/"}}'

  

2.  Verify CloudTrail logs:  
    

aws cloudtrail describe-trails --query "TrailList\[?S3BucketName!='null'\].{TrailName:Name, S3BucketName:S3BucketName}" --output table

#### Backout Plan:

Using AWS Console:

1.  If server access logging causes excessive log volume or performance issues:  
    
    -   Go to the [S3 Console](https://console.aws.amazon.com/s3/).  
        
    -   Disable Server access logging for the S3 bucket storing CloudTrail logs.
        
2.  Modify CloudTrail settings to change the S3 bucket for log storage or exclude specific types of logs if needed.
    

Using AWS CLI:

1.  Temporarily disable server access logging:  
    

aws s3api put-bucket-logging --bucket <bucket-name> --bucket-logging-status '{}'

2.  Stop CloudTrail logging if necessary:
    

aws cloudtrail stop-logging --name <trail-name>

3.  Re-enable server access logging once issues are resolved:
    

aws s3api put-bucket-logging --bucket <bucket-name> --bucket-logging-status '{"LoggingEnabled": {"TargetBucket": "<log-bucket-name>", "TargetPrefix": "logs/"}}'
aws cloudtrail start-logging --name <trail-name>

#### References:

-   [AWS CloudTrail Documentation  
    ](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html)
    
-   [AWS S3 Documentation  
    ](https://docs.aws.amazon.com/AmazonS3/latest/userguide/LoggingUsingCloudTrail.html)
    
-   [AWS CloudWatch Documentation  
    ](https://docs.aws.amazon.com/cloudwatch/latest/monitoring/)
    

#### CIS Controls Mapping:

<table style="border:none;border-collapse:collapse"><tbody><tr style="height:39.25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">CIS Control Version</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">Control ID</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;text-align:justify;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:700;font-family:&quot;Helvetica Neue&quot;">Control Description</span></span></span></p></td></tr><tr style="height:39.25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v8</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">4.9</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">Perform Continuous Security Monitoring and Incident Detection</span></span></span></p></td></tr><tr style="height:25pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">6.3</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">Monitor Security Configurations for Compliance</span></span></span></p></td></tr><tr style="height:39.25pt"><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">CIS v7</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word;font-family:&quot;Helvetica Neue&quot;;font-size:14px"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;font-family:&quot;Helvetica Neue&quot;;font-size:14px;text-align:justify"><span style="font-size:14px"><span style="font-family:Helvetica Neue"><span style="color:rgb(0, 0, 0);font-weight:400;font-family:&quot;Helvetica Neue&quot;">5.2</span></span></span></p></td><td style="padding:5pt;overflow:hidden;overflow-wrap:break-word"><p dir="ltr" style="line-height:1.38;margin-bottom:0pt;text-align:justify"><span style="font-size:14px;font-family:&quot;Helvetica Neue&quot;;color:rgb(0, 0, 0);font-weight:400">Securely Manage and Monitor Cloud Accounts and Services</span></p></td></tr></tbody></table>

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
