Other Articles

App Service – Enforce Secure FTPS State

This check ensures that Azure Web Applications enforce a secure FTP state by allowing FTPS only or disabling FTP completely to protect data during file transfers.

Check Details

  • Resource: Azure App Service (Web App)
  • Check: Ensure Secure FTP State Is Enforced
  • Risk: Allowing unencrypted FTP connections may expose credentials and sensitive data to interception. Enforcing FTPS only or disabling FTP ensures secure file transfer over encrypted channels.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal dashboard
  2. Navigate to App Services and select the affected Web App. Azure App Services list
  3. In the left-hand menu, select Configuration. Web App configuration menu
  4. Under the General settings tab, locate FTP state.
  5. Set FTP state to:
    • FTPS Only (Recommended)
    • or Disabled
    FTP state configuration in Azure Web App
  6. Click Save to apply the configuration.

Remediation via Azure CLI

  1. Open Azure Cloud Shell or a local terminal with Azure CLI installed. Azure Cloud Shell
  2. Enforce FTPS only:

    az webapp config set \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --ftps-state FtpsOnly
    
  3. Alternatively, disable FTP completely:

    az webapp config set \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --ftps-state Disabled
    
  4. Verify the configured FTP state:

    az webapp config show \
     --resource-group <resource-group> \
     --name <web-app-name> \
     --query ftpsState
    

Replace <resource-group> and <web-app-name> with your actual values.