> 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-database-for-mysql-flexible-server-firewall-rule-allow-access-to-all-ipv4-address.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Database for MySQL flexible server firewall rule allow access to all IPv4 address

### Synopsis

| Field               | Value                                                                                   |
| ------------------- | --------------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                               |
| Finding Type        | Azure Database for MySQL flexible server firewall rule allow access to all IPv4 address |
| Finding ID          | 60000991                                                                                |
| Generates a Finding | This detection rule also generates a finding                                            |
| Severity            | High                                                                                    |
| Category            | CONFIGURATION                                                                           |
| Cloud Providers     | AZURE                                                                                   |
| Platform Module     | CSPM                                                                                    |
| Asset Types         | AZURE\_MY\_SQL\_FLEXIBLE\_SERVER                                                        |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                                         |
| ATT\&CK Technique   | T1685 (T1685)                                                                           |

### Description

Azure Database for MySQL flexible servers with firewall rules permitting access from all IPv4 addresses are misconfigured, increasing the attack surface.

Azure Database for MySQL flexible servers utilize firewall rules to control network access. A rule allowing access from 0.0.0.0 to 255.255.255.255 grants unrestricted internet access. This exposes the database to unauthorized connections and potential data breaches, ranging from data exfiltration to complete server compromise by malicious actors.

The impact of this misconfiguration is significant, potentially leading to data loss, service disruption, and regulatory non-compliance. Restricting access enhances security by limiting potential entry points for attackers, reducing the risk of successful exploits. Only trusted IP addresses should be allowed.

Implement least privilege by creating firewall rules allowing access only from specific, trusted IP addresses or IP ranges. Regularly review and update these rules to reflect changes in network infrastructure and application requirements. Monitor for unauthorized access attempts and suspicious activity.

### Remediation

**Manual steps:**

Azure MySQL Flexible Server - Manual remediation steps:

1. Log in to Azure Portal
2. Navigate to Azure Database for MySQL flexible servers dashboard
3. Click on reported MySQL server
4. Under 'Settings', click on 'Networking'.
5. Under 'Firewall rules' section, delete the rule which has 'Start IP' as 0.0.0.0 and 'End IP' as 255.255.255.255. Add specific IPs as per your business requirement.
6. Click on 'Save'

NOTE: These settings take effect immediately after they're applied. You might experience connection loss if you don't meet the requirements for each setting.


---

# 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-database-for-mysql-flexible-server-firewall-rule-allow-access-to-all-ipv4-address.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.
