> 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-application-gateway-web-application-firewall-waf-policy-rule-for-remote-command.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Application Gateway Web application firewall (WAF) policy rule for Remote Command...

### Synopsis

| Field               | Value                                                                                                         |
| ------------------- | ------------------------------------------------------------------------------------------------------------- |
| Rule Name           | Azure Application Gateway Web application firewall (WAF) policy rule for Remote Command Execution is disabled |
| Rule Type           | Detection                                                                                                     |
| Finding Type        | Azure Application Gateway Web application firewall (WAF) policy rule for Remote Command Execution is disabled |
| Finding ID          | 60000636                                                                                                      |
| Generates a Finding | This detection rule also generates a finding                                                                  |
| Severity            | Medium                                                                                                        |
| Category            | CONFIGURATION                                                                                                 |
| Cloud Providers     | AZURE                                                                                                         |
| Platform Module     | CSPM                                                                                                          |
| Asset Types         | AZURE\_APPLICATION\_GATEWAY\_WAF\_POLICY                                                                      |

### Description

Azure Application Gateways with disabled 'Remote Command Execution' WAF rules present a significant security risk. Disabling this crucial rule leaves applications vulnerable to remote command execution attacks.

Application Gateways utilize Web Application Firewalls (WAFs) to filter malicious traffic. The 'Remote Command Execution (944240)' rule within managed rules is specifically designed to detect and block attempts to execute commands remotely on the server. Disabling this rule bypasses a critical layer of protection, allowing attackers to potentially compromise the gateway and underlying infrastructure.

A successful attack could lead to data breaches, service disruptions, and complete system compromise. Maintaining this rule enabled is vital for mitigating the risk of remote command execution attacks and protecting the confidentiality, integrity, and availability of application resources.

Enable the 'Remote Command Execution (944240)' rule within your Azure Application Gateway WAF policies. Regularly review and update WAF rules to incorporate the latest security updates and address emerging threats.

### Remediation

1. Log in to the Azure portal
2. Select 'All services' > 'Web Application Firewall policies (WAF)'
3. Click on the reported Web Application Firewall policies (WAF) policy
4. Click on the 'Managed rules' from the left panel
5. Search for '944240' in Managed rule sets and Select rule
6. Click on the 'Enable' to enable rule
7. Click on 'Save' to save your changes


---

# 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-application-gateway-web-application-firewall-waf-policy-rule-for-remote-command.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.
