> 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-having-inbound-rule-overly-permissive-to-all-traffic-on-any-protocol.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Network Security Group having Inbound rule overly permissive to all traffic on any protocol

### Synopsis

| Field               | Value                                                                                             |
| ------------------- | ------------------------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                                         |
| Finding Type        | Azure Network Security Group having Inbound rule overly permissive to all traffic on any protocol |
| Finding ID          | 60000137                                                                                          |
| 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 inbound rules in Azure Network Security Groups (NSGs) allow unauthorized network traffic, potentially leading to significant security breaches. NSGs control inbound and outbound network traffic to Azure Virtual Machines based on rules specifying source/destination IP addresses, ports, and protocols. Failing to restrict traffic appropriately exposes Virtual Machines to attacks from untrusted IP addresses using any protocol and port.

Network Security Groups with overly permissive inbound rules lack essential network segmentation. This misconfiguration exposes Virtual Machines to various attacks, including port scanning, unauthorized access, and data breaches. Attackers can exploit this to gain unauthorized access, potentially leading to data exfiltration, malware infections, or complete system compromise.

The impact of this misconfiguration is severe, ranging from data breaches and service disruptions to complete system compromise. Restricting inbound traffic to only authorized sources, protocols, and ports minimizes the attack surface and significantly improves security posture. This best practice ensures that only legitimate network traffic reaches Virtual Machines, preventing unauthorized access and protecting sensitive data.

To mitigate this, implement the principle of least privilege. Configure NSGs with highly restrictive rules, only allowing necessary inbound traffic from trusted IP addresses and specifying the exact protocols and ports. Regularly review and update NSG rules to adapt to evolving security needs and remove any obsolete or overly permissive rules. Monitor network traffic for suspicious activity.

### Remediation

**Manual steps:**

Azure Security Group - Manual remediation steps:

Before making any changes, please check the impact to your applications/services. Evaluate whether you want to edit the rule and limit access to specific users, hosts, and services only, deny access, or delete the rule completely.

1. Log in to the Azure Portal.
2. Select 'All services'.
3. Select 'Network security groups', under NETWORKING.
4. Select the Network security group you need to modify.
5. Select 'Inbound security rules' under Settings.
6. Select the rule you need to modify, and edit it to allow specific IP addresses and Port ranges OR set the 'Action' to 'Deny' OR 'Delete' the rule based on your requirement.
7. 'Save' your changes.


---

# 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-having-inbound-rule-overly-permissive-to-all-traffic-on-any-protocol.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.
