> 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-cosmos-db-allows-traffic-from-public-azure-datacenters.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Cosmos DB allows traffic from public Azure datacenters

### Synopsis

| Field               | Value                                                        |
| ------------------- | ------------------------------------------------------------ |
| Rule Type           | Detection                                                    |
| Finding Type        | Azure Cosmos DB allows traffic from public Azure datacenters |
| Finding ID          | 60000601                                                     |
| Generates a Finding | This detection rule also generates a finding                 |
| Severity            | Medium                                                       |
| Category            | CONFIGURATION                                                |
| Cloud Providers     | AZURE                                                        |
| Platform Module     | CSPM                                                         |
| Asset Types         | AZURE\_COSMOS\_DB                                            |
| ATT\&CK Tactic      | TA0112 (TA0112)                                              |
| ATT\&CK Technique   | T1685 (T1685)                                                |

### Description

Azure Cosmos DB instances permitting traffic from public Azure datacenters present a significant security risk. This misconfiguration allows connections from a broad range of IP addresses, effectively bypassing intended firewall restrictions.

Azure Cosmos DB's 'Accept connections from within public Azure datacenters' setting allows connections from any IP address within Azure's public infrastructure. Bypassing granular IP address control increases the attack surface, making the database susceptible to unauthorized access from malicious actors within the Azure cloud. Untrusted IPs can easily exploit this broad access.

The impact of this misconfiguration is extensive, potentially leading to data breaches, unauthorized data modification, and service disruption. Restricting access to authorized IP addresses ensures that only trusted clients can interact with the database, significantly reducing the risk of compromise. This best practice enhances the security posture by minimizing the attack surface.

To mitigate this risk, disable the 'Accept connections from within public Azure datacenters' setting for all Azure Cosmos DB instances. Instead, explicitly define allowed IP addresses using the firewall settings, limiting access to only trusted sources. Regularly review and update the allowed IP list to maintain a strong security posture.

### Remediation

**Manual steps:**

Azure Cosmos DB - Manual remediation steps:

1. Log in to the Azure Portal
2. Go to Azure Cosmos DB service
3. Select the reported Azure Cosmos DB account
4. Click on 'Firewall and virtual networks' under 'Settings'
5. Unselect 'Accept connections from within public Azure datacenters' option under 'Exceptions'
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-cosmos-db-allows-traffic-from-public-azure-datacenters.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.
