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

# Azure Network Security Group with overly permissive outbound rule

### Synopsis

| Field               | Value                                                             |
| ------------------- | ----------------------------------------------------------------- |
| Rule Type           | Detection                                                         |
| Finding Type        | Azure Network Security Group with overly permissive outbound rule |
| Finding ID          | 60000135                                                          |
| Generates a Finding | This detection rule also generates a finding                      |
| Severity            | Medium                                                            |
| Category            | CONFIGURATION                                                     |
| Cloud Providers     | AZURE                                                             |
| Platform Module     | CSPM                                                              |
| Asset Types         | AZURE\_SECURITY\_GROUP                                            |
| ATT\&CK Tactic      | TA0004 (TA0004)                                                   |
| ATT\&CK Technique   | T1078.004 (T1078.004)                                             |

### Description

Overly permissive outbound rules in Azure Network Security Groups (NSGs) allow unauthorized outgoing network traffic, increasing the risk of data breaches and lateral movement within the cloud environment.

Azure NSGs control network traffic flow based on rules defining source/destination IP addresses, ports, and protocols. An NSG with an outbound rule permitting traffic from 'any' source or a broad public IP range bypasses intended security controls. Attackers could exploit this misconfiguration to exfiltrate sensitive data or establish command-and-control channels undetected.

The impact of this misconfiguration is significant, enabling attackers to easily bypass security measures. Restricting outbound traffic to known, trusted sources and specific ports minimizes the attack surface and limits the potential damage from a compromise. This is crucial for maintaining data confidentiality and integrity.

To mitigate this, enforce least privilege by creating NSGs with highly specific outbound rules. Only allow outbound traffic to necessary destinations and ports. Regularly review and update NSG rules, removing outdated or overly permissive entries.

### Remediation

**Manual steps:**

Azure Security Group - Manual remediation steps:

1. Sign in to the Azure Portal
2. On left Navigation, Click on All services
3. Under NETWORKING, click on Network security groups
4. Choose the reported resource
5. Under SETTINGS, Click on Outbound security rules
6. Identify the row which matches conditions mentioned below:
   1. Source: Any, public IPs
   2. Destination: Any
   3. Action: Allow
7. Select the rule you need to modify, and edit it to allow specific IP addresses OR set the 'Action' to 'Deny' OR 'Delete' the rule based on your requirement.


---

# 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-network-security-group-with-overly-permissive-outbound-rule.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.
