Description

Ensure that Classic Load Balancers are configured with only HTTPS or SSL listeners, rather than plaintext HTTP or TCP listeners, so that traffic between clients and the load balancer is always encrypted in transit.

Rationale

A plaintext HTTP or TCP listener transmits request and response data, including headers, cookies, authentication tokens, and application payloads, unencrypted over the network, exposing it to interception by anyone able to observe the network path between the client and the load balancer. Requiring HTTPS or SSL listeners ensures that all data in transit to and from the load balancer is encrypted using TLS.

Impact

  • Protects data in transit between clients and the load balancer from interception

  • Aligns the load balancer's exposed listeners with modern security expectations for public and internal traffic

  • Requires a valid TLS/SSL certificate to be associated with each HTTPS/SSL listener, and clients must support HTTPS/SSL connections

Default Value

There is no restriction by default; a Classic Load Balancer can be created with any combination of HTTP, HTTPS, TCP, or SSL listeners.

Pre-Requisites

  • An ACM or IAM-uploaded SSL/TLS certificate matching the load balancer's domain name(s)

  • IAM permissions to update load balancer listeners (elasticloadbalancing:CreateLoadBalancerListeners, elasticloadbalancing:DeleteLoadBalancerListeners)

Test Plan

  1. Sign in to the AWS Management Console at https://console.aws.amazon.com.

  2. Navigate to EC2 > Load Balancers and select the Classic Load Balancer to review.

  3. Open the Listeners tab.

  4. Verify that every listener uses HTTPS or SSL as the protocol, and that no listener uses plain HTTP or TCP.

  5. If a plaintext HTTP or TCP listener exists, follow the implementation steps.

Implementation Steps

  1. Sign in to the AWS Management Console at https://console.aws.amazon.com.

  2. Navigate to AWS Certificate Manager and request or import a certificate matching the load balancer's domain, if one is not already available.

  3. Navigate to EC2 > Load Balancers and select the Classic Load Balancer to update.

  4. Open the Listeners tab and select Add listener, configuring it as HTTPS (or SSL for TCP-based traffic) and selecting the certificate.

  5. Verify clients can connect successfully over the new HTTPS/SSL listener.

  6. Select and delete the previous plaintext HTTP or TCP listener once traffic has migrated.

Backout Plan

  1. Sign in to the AWS Management Console at https://console.aws.amazon.com.

  2. Navigate to EC2 > Load Balancers and select the affected Classic Load Balancer.

  3. Open the Listeners tab and select Add listener, configuring it as HTTP or TCP, if reverting is required.

Reference