Skip to main content

Triage and Remediation

Remediation

Using Console

To remediate the unsafe TLS version supported misconfiguration in Azure using the Azure console, follow these steps:
  1. Log in to the Azure portal (https://portal.azure.com/).
  2. Navigate to the resource group that contains the affected resource.
  3. Select the affected resource.
  4. Click on the “Networking” tab.
  5. Under the “Settings” section, click on “SSL/TLS settings”.
  6. In the “Minimum TLS version” dropdown, select the recommended version (TLS 1.2 or higher).
  7. Save the changes by clicking on the “Save” button.
Once the changes are saved, the affected resource will only allow connections using the recommended TLS version (TLS 1.2 or higher), which will ensure that the communication is secure and encrypted.

To remediate the “Unsafe TLS Version Supported” misconfiguration for AZURE using AZURE CLI, follow these steps:
  1. Open the AZURE CLI and login to your AZURE account using the command az login.
  2. Once you are logged in, run the following command to list all the available App Services in your AZURE account: az webapp list --query "[].{name:name, resourceGroup:resourceGroup}" This command will list all the available App Services in your AZURE account along with their resource group.
  3. Choose the App Service for which you want to remediate the “Unsafe TLS Version Supported” misconfiguration and note down its name and resource group.
  4. Run the following command to update the TLS version for the chosen App Service: az webapp config set --name <app-name> --resource-group <resource-group> --min-tls-version 1.2 Replace <app-name> with the name of your chosen App Service and <resource-group> with its resource group. This command will set the minimum TLS version to 1.2 for the chosen App Service, which is the recommended version for secure communication.
  5. Verify that the TLS version has been updated successfully by running the following command: az webapp config show --name <app-name> --resource-group <resource-group> --query "minTlsVersion" This command will return the minimum TLS version set for the chosen App Service. If it returns “1.2”, then the remediation is successful.
By following these steps, you can remediate the “Unsafe TLS Version Supported” misconfiguration for an App Service in AZURE using AZURE CLI.
To remediate the “Unsafe TLS Version Supported” misconfiguration in AZURE using Python, you can follow the below steps:Step 1: Identify the affected resources
  • Use the Azure Security Center to identify the affected resources that have unsafe TLS versions enabled.
Step 2: Update the TLS Version
  • Use the Azure Python SDK to update the TLS version for the affected resources.
  • Install the Azure Python SDK using the following command: pip install azure
  • Use the following code to update the TLS version for an App Service:
Step 3: Verify the remediation
  • Use the Azure Security Center to verify that the unsafe TLS versions have been disabled for the affected resources.
  • You can also use the Azure Python SDK to verify the TLS version for an App Service:
This should remediate the “Unsafe TLS Version Supported” misconfiguration for Azure using Python.
If this is a Linux App Service, use azurerm_linux_web_app with the same site_config { minimum_tls_version = "1.2" } block.This change is an in-place update and does not force replacement of the App Service.After updating your configuration, terraform plan should show a single in-place update on the web app resource with minimum_tls_version changing from its previous value (for example "1.0" or "1.1") to "1.2".