Triage and Remediation
Remediation
Using Console
Using Console
To remediate the TLS Protocol Latest Version misconfiguration in Azure using the Azure console, follow the steps below:Step 1: Log in to the Azure portal and navigate to the virtual machine that needs to be remediated.Step 2: Open the virtual machine and click on the “Networking” tab.Step 3: Under “Settings”, click on “Network Security Group”.Step 4: Click on the Network Security Group that is associated with the virtual machine.Step 5: Click on “Inbound security rules” and then click on “Add”.Step 6: In the “Add inbound security rule” page, enter the following details:
- Name: A name for the rule (e.g. “TLS Latest Version”)
- Priority: A priority number for the rule (e.g. 100)
- Source: Any
- Source port ranges: *
- Destination: Any
- Destination port ranges: 443
- Protocol: TCP
- Action: Allow
- Priority: 100
Using CLI
Using CLI
To remediate the TLS protocol version misconfiguration in Azure using Azure CLI, you can follow the below steps:
- Open the Azure CLI on your local machine or Azure Cloud Shell.
-
Run the following command to check the TLS protocol version:
This command will list the TLS protocol version of the specified App Service.
-
If the TLS protocol version is not the latest version, you can update it by running the following command:
This command will update the TLS protocol version to the latest version (TLSv1.2).
-
After running the above command, you can verify the TLS protocol version again by running the first command mentioned above.
This command should now display the updated TLS protocol version.
Using Python
Using Python
To remediate the TLS Protocol Latest Version misconfiguration in AZURE using Python, follow these steps:
-
Identify the resources that are affected by the misconfiguration. This can be done by using the Azure CLI command
az resource list
. -
For each affected resource, check if the TLS protocol version is up to date. This can be done by using the
requests
library in Python to make a test request to the resource using theTLSv1_2
protocol. If the request succeeds, then the TLS protocol version is up to date. If the request fails, then the TLS protocol version is not up to date. - If the TLS protocol version is not up to date, update the resource to use the latest TLS protocol version. This can be done by using the Azure Python SDK to update the resource’s configuration. The specific steps will depend on the type of resource that is affected.
- After updating the resource, verify that the TLS protocol version is up to date by repeating step 2.