> 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-postgresql-database-flexible-server-configured-with-overly-permissive-network-access.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure PostgreSQL database flexible server configured with overly permissive network access

### Synopsis

| Field               | Value                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                                  |
| Finding Type        | Azure PostgreSQL database flexible server configured with overly permissive network access |
| Finding ID          | 60000701                                                                                   |
| Generates a Finding | This detection rule also generates a finding                                               |
| Severity            | High                                                                                       |
| Category            | CONFIGURATION                                                                              |
| Cloud Providers     | AZURE                                                                                      |
| Platform Module     | CSPM                                                                                       |
| Asset Types         | AZURE\_POSTGRE\_SQL\_FLEXIBLE\_SERVER                                                      |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                                            |
| ATT\&CK Technique   | T1685 (T1685)                                                                              |

### Description

Azure PostgreSQL flexible servers with public network access are susceptible to unauthorized connections. Publicly accessible servers increase the attack surface, exposing them to malicious actors who can exploit misconfigurations and gain unauthorized access to sensitive data.

Azure PostgreSQL flexible servers should ideally be configured with private access using VNet integration or a firewall. Without these restrictions, any IP address can connect to the database server. This misconfiguration could allow attackers to perform reconnaissance, data breaches, or even take complete control of the server, leading to significant data loss and service disruption.

The impact of this misconfiguration is extensive, ranging from unauthorized data access and modification to complete server compromise. Restricting network access to only trusted IPs or VNets is crucial for mitigating risks and ensuring data security. A well-defined perimeter significantly reduces the likelihood of successful attacks.

To remediate this, configure your Azure PostgreSQL flexible server with private endpoint connectivity via VNet integration. Alternatively, use firewall rules to limit access to specific IP addresses or address ranges that are explicitly trusted. Regularly review and update these rules to reflect changes in your network infrastructure and security policies.

### Remediation

**Manual steps:**

Azure PostgreSQL Flexible Server - Manual remediation steps:

If the PostgreSQL flexible server is intended to be accessed by authorized public IPs, restrict IP addresses to a known list and make sure the IP range 0.0.0.0 - 255.255.255.255 is not in the firewall rules.

To add or to remove IPs refer below URL:

<https://docs.microsoft.com/en-gb/azure/postgresql/flexible-server/how-to-manage-firewall-portal#manage-existing-firewall-rules-through-the-azure-portal>

To create new PostgreSQL database flexible server with Private access (VNet Integration), refer below URL:

<https://docs.microsoft.com/en-gb/azure/postgresql/flexible-server/quickstart-create-server-portal>

Note: Once PostgreSQL database flexible server is created; You can't change the connectivity method after. For example, if you select Public access (allowed IP addresses) when you create the server, you can't change to Private access (VNet Integration) after the server is created.


---

# 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-postgresql-database-flexible-server-configured-with-overly-permissive-network-access.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.
