More Info:
For higher availability and reliability, ELBs should work with cross zone nodes.Risk Level
LowAddress
Reliability, SecurityCompliance Standards
- APRA CPS 234 (Australia)
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- DPDPA
- Digital Operational Resilience Act (EU)
- GDPR
- HITRUST CSF
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST
- NIST CSF
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- Reserve Bank of India (RBI) Master Direction – Information Technology Framework
- SOC2
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
Sure, here are the step-by-step instructions to remediate the ELBs should have cross-zone enabled misconfiguration for AWS using the AWS Console:
- Open the AWS Management Console and navigate to the EC2 Dashboard.
- From the left-hand menu, select “Load Balancers”.
- Select the ELB that you want to remediate.
- Click on the “Attributes” tab.
- Scroll down to the “Cross-Zone Load Balancing” section and click on the “Edit” button.
- Select “Yes” for the “Enable Cross-Zone Load Balancing” option.
- Click on the “Save” button to save the changes.
Using CLI
Using CLI
To remediate the misconfiguration “ELBs should have cross-zone enabled” in AWS using AWS CLI, follow these steps:Replace Replace Replace
- Open the AWS CLI on your local machine.
- Run the following command to enable cross-zone load balancing for all existing ELBs in the current region:
<ELB_NAME> with the name of the ELB that needs to be remediated.- Run the following command to enable cross-zone load balancing for all new ELBs created in the current region:
<ELB_NAME> with the name of the ELB that needs to be remediated.- Verify that cross-zone load balancing is enabled for the ELB by running the following command:
<ELB_NAME> with the name of the ELB that was remediated.- Repeat these steps for all ELBs in the current region that require remediation.
Using Python
Using Python
To remediate the misconfiguration of ELBs not having cross-zone enabled in AWS using Python, you can follow the below steps:By following these steps, you can remediate the misconfiguration of ELBs not having cross-zone enabled in AWS using Python.
- Import the necessary libraries:
- Create an AWS client for Elastic Load Balancing:
- Get the list of all the ELBs:
- Loop through each ELB and check if cross-zone load balancing is enabled. If not, enable it:
- Verify that cross-zone load balancing is enabled for all the ELBs:
Using Terraform
Using Terraform
terraform plan an in-place update with cross_zone_load_balancing or enable_cross_zone_load_balancing changing from false (or null) to true.
