> 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-virtual-machine-nic-has-ip-forwarding-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Virtual machine NIC has IP forwarding enabled

### Synopsis

| Field               | Value                                               |
| ------------------- | --------------------------------------------------- |
| Rule Type           | Detection                                           |
| Finding Type        | Azure Virtual machine NIC has IP forwarding enabled |
| Finding ID          | 60000506                                            |
| Generates a Finding | This detection rule also generates a finding        |
| Severity            | Medium                                              |
| Category            | CONFIGURATION                                       |
| Cloud Providers     | AZURE                                               |
| Platform Module     | CSPM                                                |
| Asset Types         | AZURE\_NETWORK\_INTERFACE                           |

### Description

Azure Virtual Machines with IP forwarding enabled on their Network Interface Cards (NICs) present a significant security risk. IP forwarding allows the VM to act as a router, potentially exposing internal network resources to untrusted sources.

The 'IP forwarding' setting on an Azure Virtual Machine NIC enables the VM to route network traffic. Enabling this without careful planning creates a potential attack vector. An attacker could exploit this misconfiguration to bypass network security controls, pivot within the network, or launch attacks from a seemingly legitimate IP address.

A compromised Virtual Machine with IP forwarding enabled could lead to data breaches, network disruptions, and lateral movement within the organization's infrastructure. Disabling IP forwarding unless explicitly required significantly reduces the attack surface and improves network security posture.

To mitigate this risk, only enable IP forwarding on Azure Virtual Machine NICs when absolutely necessary. Strictly review and document the justification for each instance. Regularly audit the configuration of all Virtual Machines to ensure IP forwarding remains appropriately configured and only used by trusted entities. Consider using network segmentation and other security controls to further reduce risk.

### Remediation

1.Login to Azure Portal 2.Click on 'All services' on left Navigation 3.Click on 'Network interfaces' under 'Networking' 4.Click on reported resource 5.Click on 'IP configurations' under Settings 6.Select 'Disabled' for 'IP forwarding' 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-virtual-machine-nic-has-ip-forwarding-enabled.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.
