> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-app-services-ftp-deployment-is-all-allowed.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure App Services FTP deployment is All allowed

### Synopsis

| Field               | Value                                            |
| ------------------- | ------------------------------------------------ |
| Rule Type           | Detection                                        |
| Finding Type        | Azure App Services FTP deployment is All allowed |
| Finding ID          | 60000498                                         |
| Generates a Finding | This detection rule also generates a finding     |
| Severity            | Medium                                           |
| Category            | CONFIGURATION                                    |
| Cloud Providers     | AZURE                                            |
| Platform Module     | CSPM                                             |
| Asset Types         | AZURE\_APP\_SERVICE                              |
| ATT\&CK Tactic      | TA0001 (TA0001)                                  |
| ATT\&CK Technique   | T1133 (T1133)                                    |

### Description

Azure App Services with FTP deployment set to 'All allowed' are vulnerable to unauthorized access. Attackers could intercept FTP credentials transmitted in clear text over unencrypted networks, gaining control of application code.

Azure App Services offer FTP deployment as a feature, enabling code updates via FTP. However, using 'All allowed' for FTP deployment creates a significant security risk. Unencrypted FTP traffic is easily intercepted, exposing credentials and allowing attackers to modify or steal application code, potentially leading to data breaches or service disruptions.

The impact of this misconfiguration is significant; unauthorized code changes could introduce malware, compromise sensitive data, or disrupt service availability. Restricting FTP access is crucial for maintaining application integrity and preventing unauthorized modifications. A robust security posture requires limiting access only to trusted sources.

Mitigate this risk by restricting FTP deployment access to specific IP addresses or virtual networks. Consider migrating to FTPS for secure FTP connections, encrypting sensitive data in transit. If FTP is unnecessary, completely disable FTP deployment to eliminate this attack vector.

### Remediation

**Manual steps:**

Azure App Service - Manual remediation steps:

Following recommendation steps are for resources hosted in App Service, Premium and Windows Consumption plans,

1. Log in to the Azure Portal
2. Select 'App Services' from the left pane
3. Select the reported App Services
4. Go to 'Configurations' under 'Settings'
5. Click on 'General settings'
6. Select 'FTPS only' or 'Disabled' for 'FTP state' under 'Platform settings'
7. Click on 'Save'

If Function App Hosted in Linux using Consumption (Serverless) Plan follow below steps

Azure CLI Command

FTP Disable - "az functionapp config set --ftps-state Disabled --name MyFunctionApp --resource-group MyResourceGroup"

FTPS only - "az functionapp config set --ftps-state FtpsOnly --name MyFunctionApp --resource-group MyResourceGroup"


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-app-services-ftp-deployment-is-all-allowed.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
