Skip to main content

More Info:

Enable FTPS-only access for your Microsoft Azure App Services web applications.

Risk Level

Medium

Address

Security

Compliance Standards

CISAZURE, CBP

Triage and Remediation

Remediation

Using Console

To enable FTPS-only access for App Services in Azure, you can follow these steps:
  1. Open the Azure Portal and navigate to the App Service that you want to configure.
  2. Click on the “Networking” tab in the left-hand menu.
  3. Under “FTP Access,” select “FTPS Only” from the drop-down menu.
  4. Click “Save” to apply the changes.
Note: Enabling FTPS-only access will disable standard FTP and SFTP access.Additionally, you can also configure the SSL/TLS settings for FTPS by following these steps:
  1. Under “SSL/TLS settings,” select “Require SSL/TLS” from the drop-down menu.
  2. Under “FTP Access,” select “FTPS Only” from the drop-down menu.
  3. Click “Save” to apply the changes.
These steps will ensure that only FTPS is enabled for your App Service, and that SSL/TLS encryption is required for all FTPS connections.

To remediate the misconfiguration “Enable FTPS-Only Access For App Services” for Azure using Azure CLI, you can follow the below steps:Step 1: Open the Azure CLI and login to your Azure account using the command “az login”.Step 2: Once you are logged in, you need to select the subscription that contains the App Service you want to remediate. You can use the command “az account set —subscription <subscription-id>” to set the subscription.Step 3: Now, you need to enable FTPS-Only Access for the App Service. You can use the following command to do this:
In the above command, replace <resource-group-name> with the name of the resource group that contains the App Service you want to remediate, and replace <app-service-name> with the name of the App Service.Step 4: Once you run the above command, it will enable FTPS-Only Access for the App Service. You can verify this by going to the Azure portal and checking the FTPS settings for the App Service.By following the above steps, you can successfully remediate the misconfiguration “Enable FTPS-Only Access For App Services” for Azure using Azure CLI.
To remediate the misconfiguration “Enable FTPS-Only Access for App Services” in Azure using Python, you can follow the below steps:Step 1: Install the Azure SDK for Python using the below command:
Step 2: Connect to the Azure subscription using the below code:
Step 3: Get the FTPS state of the web app using the below code:
Step 4: If the FTPS state is not ‘FtpsOnly’, then update the FTPS state using the below code:
Step 5: Verify that the FTPS state has been updated to ‘FtpsOnly’ using the below code:
This should remediate the misconfiguration “Enable FTPS-Only Access for App Services” in Azure using Python.