More Info:
Improve the reliability of the applications behind your app-tier ELBs by using the appropriate health check configuration.Risk Level
LowAddress
ReliabilityCompliance 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)
- HIPAA
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate the misconfiguration “Right Health Check Configurations Should Be Used For App-Tier ELBs” for AWS using AWS console, follow these steps:
- Open the AWS Management Console and navigate to the EC2 dashboard.
- Click on the “Load Balancers” option in the left-hand menu.
- Select the Application Load Balancer that you want to remediate.
- In the “Listeners” tab, click on the “View/edit rules” button for the listener that you want to remediate.
- In the “Rules” section, click on the “Edit” button for the rule that you want to remediate.
- In the “Edit Rule” dialog box, click on the “Add Condition” button.
- In the “Add Condition” dialog box, select “Health Check” from the drop-down menu and configure the health check settings as per your requirements.
- Click on the “Save” button to save the changes.
- Repeat steps 5-8 for all the rules that you want to remediate.
- Once you have remediated all the rules, click on the “Save” button in the “Listeners” tab to save the changes.
Using CLI
Using CLI
To remediate the misconfiguration “Right Health Check Configurations Should Be Used For App-Tier ELBs” for AWS using AWS CLI, follow these steps:Note: Replace Note: Replace This will ensure that the right health check configurations are used for the app-tier ELBs in AWS.
- Open the AWS CLI and run the following command to describe the load balancer:
<load_balancer_name> with the name of your load balancer.- Check the health check configuration of the load balancer. The health check configuration includes the ping target, port, and timeout settings. To view the health check configuration, run the following command:
- If the health check configuration is incorrect, update it by running the following command:
<load_balancer_name> with the name of your load balancer. You can modify the health check configuration as per your requirement.- After updating the health check configuration, verify it by running the following command:
Using Python
Using Python
To remediate the misconfiguration “Right Health Check Configurations Should Be Used For App-Tier ELBs” in AWS using Python, you can follow these steps:
- Import the necessary libraries: boto3 and json.
- Create a connection to the AWS resource using the boto3 library.
- Get all the load balancers in the region.
- Loop through the load balancers and check if they are application load balancers.
- If the load balancer is an application load balancer, get its ARN.
- Get the current health check configuration for the load balancer.
- Check if the health check configuration is correct.
- If the health check configuration is incorrect, update it to the correct configuration.
- Print a message to confirm that the health check configuration has been updated.
- The final code will look like this:
Using Terraform
Using Terraform
health_check parameters on a Classic ELB is an in‑place update and does not force resource replacement, but it can affect backend availability if mis-tuned; adjust values if your application requires different timings.For verification, terraform plan should show an in-place update (~ change) on the aws_elb.APP_TIER_ELB resource, modifying only the health_check block fields interval, timeout, healthy_threshold, and unhealthy_threshold (with target remaining the same as your existing configuration).
