AWS Classic ELB cipher policies need review

Remove weak ciphers from the TLS policy applied to the listener.

Description

Remove weak ciphers such as RC4 and DES from the policy attached to the Classic Load Balancer HTTPS or SSL listener.

Potential impact

Clients can negotiate any weak cipher the policy still permits. A replacement cipher incompatible with the certificate or client can prevent a connection.

Remediation

Attach a supported policy that matches the certificate. Test that intended clients can connect and that the listener rejects disallowed ciphers.

Examples

The excerpts define a custom policy. Configure the load balancer, listener and certificate separately.

Before

hcl
resource "aws_load_balancer_policy" "elb_ssl_policy" {
  load_balancer_name = aws_elb.wu_tang.name
  policy_name        = "wu-tang-ssl"
  policy_type_name   = "SSLNegotiationPolicyType"

  policy_attribute {
    name  = "RC4-SHA"
    value = "true"
  }
}

After

hcl
resource "aws_load_balancer_policy" "elb_ssl_policy" {
  load_balancer_name = aws_elb.wu_tang.name
  policy_name        = "wu-tang-ssl"
  policy_type_name   = "SSLNegotiationPolicyType"

  policy_attribute {
    name  = "ECDHE-ECDSA-AES128-GCM-SHA256"
    value = "true"
  }

  policy_attribute {
    name  = "Protocol-TLSv1.2"
    value = "true"
  }
}

The second policy replaces RC4-SHA with TLS 1.2 and ECDHE-ECDSA-AES128-GCM-SHA256. For that suite, upload an ECDSA certificate to IAM for the Classic Load Balancer. With an RSA certificate, choose an RSA-compatible suite.

References