AWS Elastic Load Balancing (ELB)
  1. Knowledge Base
  2. AWS Knowledge Base
  3. AWS Elastic Load Balancing (ELB)

ELB Deletion Protection Not Configured

Risk Level: Medium

Description: 

This plugin guarantees that elastic load balancers have deletion protection enabled. To avoid the unintentional deletion of live resources in production environments, elastic load balancers should be configured with deletion protection.

PingSafe strongly recommends updating ELBv2 load balancers to use deletion protection to prevent accidental deletion.

About the Service :

The Amazon ECS service may be configured to employ Elastic Load Balancing to uniformly distribute traffic among your service's jobs. The transport layer (TCP/SSL) or the application layer (HTTP/HTTPS) are where a Classic Load Balancer makes routing choices. A fixed relationship between the load balancer port and the container instance port is presently required by traditional load balancers.

Impact : 

The absence of this plugin may result in the accidental deletion of live resources in production environments.

Steps to reproduce :

  1. Login to your AWS Management Console.
  2. Navigate to the EC2 console.
    https://ap-south-1.console.aws.amazon.com/ec2/ 
  3. Click on Load Balancers under Load Balancing.
  4. Select the load balancer that you want to examine.
  5. In the Description tab, scroll down and navigate to the Attributes tab and check if the Deletion Protection is set to enabled. If it is set to disable, that suggests that the deletion protection is not configured.
  6. Repeat steps for other EC2 load balancers as well. 

Steps for remediation :

  1. Login to your AWS Management Console.
  2. Navigate to the EC2 console.
    https://ap-south-1.console.aws.amazon.com/ec2/ 
  3. Click on Load Balancers under Load Balancing.
  4. Select the load balancer that you want to examine.
  5. In the Description tab, scroll down and navigate to the Attributes tab and check if the Deletion Protection is set to enabled. If it is set to disable, that suggests that the deletion protection is not configured.
  6. Click on Edit Attributes and then select enable and click Save.
  7. Repeat steps for other EC2 load balancers as well.

References: