> 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-server-allow-access-to-any-azure-internal-resources.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure SQL Server allow access to any Azure internal resources

### Synopsis

| Field               | Value                                                         |
| ------------------- | ------------------------------------------------------------- |
| Rule Type           | Detection                                                     |
| Finding Type        | Azure SQL Server allow access to any Azure internal resources |
| Finding ID          | 60000084                                                      |
| 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                                            |
| ATT\&CK Tactic      | TA0112 (TA0112)                                               |
| ATT\&CK Technique   | T1685 (T1685)                                                 |

### Description

Azure SQL Servers allowing access from any Azure internal resource presents a significant security risk. This misconfiguration exposes the database to unauthorized access from any Azure resource, regardless of its origin or purpose.

Azure SQL Server's firewall settings control network access. A configuration with both start and end IP addresses set to '0.0.0.0' effectively disables the firewall, granting access from all Azure internal networks. This opens the database to potential attacks from compromised or malicious resources within the Azure environment, leading to data breaches or unauthorized modifications.

The impact of this misconfiguration is severe, potentially exposing sensitive data to unauthorized access and modification. Restricting access to only trusted IP addresses or Virtual Networks is crucial to maintaining data integrity and confidentiality. It significantly reduces the attack surface and minimizes the risk of data breaches.

Mitigation involves configuring Azure SQL Server firewall rules to allow access only from specific IP addresses or Virtual Networks. Implement Virtual Network rules to further restrict access to authorized resources only. Regularly review and update these rules to ensure they align with security best practices and reflect current needs.

### Remediation

**Manual steps:**

Azure SQL Server - Manual remediation steps:

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. Unselect 'Allow Azure services and resources to access this server' under Exceptions if selected.
6. Remove any firewall rule which allows access to 0.0.0.0 in startIpAddress and endIpAddress if any.
7. 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-server-allow-access-to-any-azure-internal-resources.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.
