Documentation
README
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
Descriptiontab scroll down to theAttributessection - Confirm
Access logsis set to Enabled. - If status options reads
Disabledrefer 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
Descriptiontab scroll down to theAttributessection - 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
Create this location for me - Click
Save - Scroll down under the description tab and confirm that the Access logs are set as described above.
- Repeat steps 3-11 for each Load balancer created and used with Elastic Beanstalk environment within the current region.
- Then repeat the remediation process for all other regions identified in the Audit.
Using AWS CLI
N/A - This control is manual and console-based.
Default Value
Access logs are disabled by default on Load Balancers.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 8.2 Collect Audit Logs | X | X | X |
| v7 | 6.2 Activate audit logging | X | X | X |
Profile
Level 1 | Manual