| name | cis-aws-compute-10.3 |
| description | Ensure access logs are enabled |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","elastic-beanstalk","access-logs","load-balancer","logging"] |
| cis_id | 10.3 |
| cis_benchmark | CIS AWS Compute Services Benchmark v1.1.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-compute-10.1","cis-aws-compute-10.2","cis-aws-compute-10.4"] |
| prerequisites | [] |
| severity_boost | {} |
10.3 Ensure access logs are enabled (Manual)
Description
When you enable load balancing, your AWS Elastic Beanstalk environment is equipped with an Elastic Load Balancing load balancer to distribute traffic among the instances in your environment.
Rationale
For security reasons it is important to have a record of all the access logs and this is enabled within the Load Balancer assigned to the Elastic Beanstalk environments.
Impact
N/A
Audit Procedure
Using AWS Console
- Login to AWS Console using https://console.aws.amazon.com/ec2
- On the left hand scroll down to Load Balancing and click on
Load Balancers
- Click on the Load balancer associated with the Elastic Beanstalk Environment
Typically they have AWSEB in the name.
If you utilized Elastic Beanstalk to create the Load balancer the Source
Security Group listed in the Description will reference `Elastic Beanstalk`
- Under the
Description tab scroll down to the Attributes section
- Confirm
Access logs is set to Enabled.
- If status options reads
Disabled refer to the remediation below.
- Repeat steps 3-8 for each environment within the current region.
- Then repeat the Audit process for all other regions.
Using AWS CLI
N/A - This control is manual and console-based.
Expected Result
Access logs is set to Enabled under the Attributes section on the Load Balancer Description tab.
Remediation
Using AWS Console
- Login to AWS Console using https://console.aws.amazon.com/ec2
- On the left hand scroll down to Load Balancing and click on
Load Balancers
- Click on the Load balancer associated with the Elastic Beanstalk Environment
Typically they have AWSEB in the name.
If you utilized Elastic Beanstalk to create the Load balancer the Source
Security Group listed in the Description will reference `Elastic Beanstalk~`
- Under the
Description tab scroll down to the Attributes section
- Under Access logs - Disabled click on Configure access logs.
- Click the check box next to
Enable access logs.
- Enter the S3 bucket name you have setup for the Elastic Beanstalk access logs.
**Note - if you don't have a S3 bucket already created enter an organization name in accordance with policy and have it identify with Elastic Beanstalk. Then click the check box next to