Control: 9.3 Ensure web app is using the latest version of TLS encryption
Description
The TLS(Transport Layer Security) protocol secures transmission of data over the internet using standard encryption technology. Encryption should be set with the latest version of TLS. App service allows TLS 1.2 by default, which is the recommended TLS level by industry standards, such as PCI DSS.
It is highly recommended to use the latest TLS 1.2 version for web app secure connections. App service currently allows the web app to set TLS versions 1.0, 1.1 and 1.2.
As default, TLS Version feature will be set to 1.2.
Remediation
From Console
- Login to Azure Portal and go to
App Services
. - Click on each App.
- Under
Settings
section, click onTLS/SSL settings
. - Under
Protocol Settings
, setMinimum TLS Version
to1.2
.
From Command Line
To set TLS Version for an existing app, run the following command:
az webapp config set --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME> --min-tls-version 1.2
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v130_9_3
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v130_9_3 --share
SQL
This control uses a named query:
appservice_web_app_latest_tls_version