Description
Secure Sockets Layer (SSL) policies determine what port Transport Layer Security (TLS) features clients are permitted to use when connecting to load balancers. To prevent usage of insecure features, SSL policies should use (a) at least TLS 1.2 with the MODERN profile; or (b) the RESTRICTED profile, because it effectively requires clients to use TLS 1.2 regardless of the chosen minimum TLS version; or (3) a CUSTOM profile that does not support any of the following features:
TLS_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_256_GCM_SHA384
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_RSA_WITH_AES_256_CBC_SHA
TLS_RSA_WITH_3DES_EDE_CBC_SHA
Rationaleβ
Load balancers are used to efficiently distribute traffic across multiple servers. Both SSL proxy and HTTPS load balancers are external load balancers, meaning they distribute traffic from the Internet to a GCP network. GCP customers can configure load balancer SSL policies with a minimum TLS version (1.0, 1.1, or 1.2) that clients can use to establish a connection, along with a profile (Compatible, Modern, Restricted, or Custom) that specifies permissible cipher suites. To comply with users using outdated protocols, GCP load balancers can be configured to permit insecure cipher suites. In fact, the GCP default SSL policy uses a minimum TLS version of 1.0 and a Compatible profile, which allows the widest range of insecure cipher suites. As a result, it is easy for customers to configure a load balancer without even knowing that they are permitting outdated cipher suites.
Impactβ
Creating more secure SSL policies can prevent clients using older TLS versions from establishing a connection.
Auditβ
From Google Cloud Consoleβ
-
See all load balancers by visiting https://console.cloud.google.com/net-services/loadbalancing/loadBalancers/list.
-
For each load balancer for
SSL (Proxy)
orHTTPS
, click on its name to go theLoad balancer details
page. -
Ensure that each target proxy entry in the
Frontend
table has anSSL Policy
configured. -
Click on each SSL policy to go to its
SSL policy details
page. -
Ensure that the SSL policy satisfies one of the following conditions:
β’ has a
Min TLS
set toTLS 1.2
andProfile
set toModern
profile, orβ’ has
Profile
set toRestricted
. Note that a Restricted profile effectively requires clients to use TLS 1.2 regardless of the chosen minimum TLS version, orβ’ has
Profile
set toCustom
and the following features are all disabled:TLS_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_256_GCM_SHA384
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_RSA_WITH_AES_256_CBC_SHA
TLS_RSA_WITH_3DES_EDE_CBC_SHA
From Google Cloud CLIβ
-
List all TargetHttpsProxies and TargetSslProxies.
gcloud compute target-https-proxies list
gcloud compute target-ssl-proxies list -
For each target proxy, list its properties:
gcloud compute target-https-proxies describe TARGET_HTTPS_PROXY_NAME
gcloud compute target-ssl-proxies describe TARGET_SSL_PROXY_NAME -
Ensure that the
sslPolicy
field is present and identifies the name of the SSL policy:sslPolicy:
https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/sslPolicies/SSL_POLICY_NAMEIf the
sslPolicy
field is missing from the configuration, it means that the GCP default policy is used, which is insecure. -
Describe the SSL policy:
gcloud compute ssl-policies describe SSL_POLICY_NAME
-
Ensure that the policy satisfies one of the following conditions:
β’ has
Profile
set toModern
andminTlsVersion
set toTLS_1_2
, orβ’ has
Profile
set toRestricted
, orβ’ has
Profile
set toCustom
andenabledFeatures
does not contain any of the following values:TLS_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_256_GCM_SHA384
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_RSA_WITH_AES_256_CBC_SHA
TLS_RSA_WITH_3DES_EDE_CBC_SHA
Default Valueβ
The GCP default SSL policy is the least secure setting: Min TLS 1.0 and Compatible profile