> 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-sql-servers-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 SQL Servers Firewall rule allow access to all IPV4 address

### Synopsis

| Field               | Value                                                            |
| ------------------- | ---------------------------------------------------------------- |
| Rule Type           | Detection                                                        |
| Finding Type        | Azure SQL Servers Firewall rule allow access to all IPV4 address |
| Finding ID          | 60000504                                                         |
| Generates a Finding | This detection rule also generates a finding                     |
| Severity            | High                                                             |
| Category            | CONFIGURATION                                                    |
| Cloud Providers     | AZURE                                                            |
| Platform Module     | CSPM                                                             |
| Asset Types         | AZURE\_SQL\_SERVER                                               |

### Description

Azure SQL Servers with firewall rules permitting access from all IPv4 addresses present a significant security risk. This misconfiguration exposes the SQL Server to unauthorized access and potential data breaches from any internet-connected device.

Azure SQL Server firewall rules control network access to the database. A rule allowing access from '0.0.0.0' to '255.255.255.255' effectively disables the firewall, bypassing all security controls. Attackers could exploit this to gain unauthorized access, leading to data exfiltration, modification, or deletion. Compromise of the SQL Server could also facilitate further attacks on the organization's infrastructure.

The impact of this misconfiguration could be severe, ranging from data breaches and financial losses to reputational damage and regulatory penalties. Restricting access to only trusted IP addresses is crucial for maintaining data security and preventing unauthorized access. This best practice minimizes the attack surface, reducing the risk of exploitation.

Implement a least privilege access model. Configure firewall rules to allow access only from explicitly trusted IP addresses or subnets. Regularly review and update these rules, removing any outdated or unnecessary entries. Consider using Azure Active Directory (Azure AD) authentication for enhanced security.

### Remediation

1. Log in to Azure Portal
2. Navigate to the 'SQL servers' dashboard
3. Click on the reported SQL server
4. Click on 'Networking' under Security
5. In 'Public access' tab, Under Firewall rules, Delete the rule which has 'Start IP' as 0.0.0.0 and 'End IP' as 255.255.255.255
6. Click on 'Save'


---

# 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-sql-servers-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.
