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

# GCP VM instances have IP Forwarding enabled

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | GCP VM instances have IP Forwarding enabled  |
| Finding ID          | 60000144                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | Informational                                |
| Category            | CONFIGURATION                                |
| Cloud Providers     | GCP                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | GOOGLE\_COMPUTE\_ENGINE\_VM\_INSTANCE        |
| ATT\&CK Tactic      | TA0112 (TA0112)                              |
| ATT\&CK Technique   | T1685 (T1685)                                |

### Description

GCP Virtual Machine instances with IP forwarding enabled pose a significant security risk, allowing unintended network traffic and potential exploitation.

IP forwarding, a Virtual Machine setting, enables instances to route network traffic beyond their intended destination. Disabling this feature ensures that a Virtual Machine only processes traffic directly destined for it. Failure to disable IP forwarding creates a misconfiguration, exposing the instance to attacks like IP spoofing and man-in-the-middle attacks by allowing the Virtual Machine to forward traffic from untrusted sources.

The impact of this misconfiguration could be severe, resulting in data breaches, unauthorized access, and lateral movement within the cloud environment. Enforcing this best practice helps prevent unintended network exposure and enhances the overall security posture by limiting the attack surface.

To mitigate this risk, ensure IP forwarding is disabled on all GCP Virtual Machine instances unless explicitly required for a specific, well-defined purpose. Regularly review and audit Virtual Machine configurations to identify and remediate any instances with IP forwarding enabled. Implement strong network segmentation and access control lists to further restrict network traffic.

### Remediation

**Manual steps:**

Google Compute Engine VM Instance - Manual remediation steps:

GCP VM instances IP forwarding feature cannot be updated. After an instance is created, the IP forwarding field becomes read-only. So to fix this alert, Create a new VM instance with IP forwarding disabled, migrate all required data from reported VM to newly created and delete the VM instance reported.

To create a new VM Instance with IP forwarding disabled:

1. Login to GCP Portal
2. Go to Computer Engine (Left Panel)
3. Go to VM instances
4. Click the CREATE INSTANCE button
5. Specify other instance parameters as you desire
6. Click Management, disk, networking, SSH keys
7. Click Networking
8. Click on the specific Network interfaces
9. Set IP forwarding to Off
10. Click on Done
11. Click on Create button

To Delete VM instance which has IP forwarding enabled:

1. Login to GCP Portal
2. Go to Computer Engine (Left Panel)
3. Go to VM instances
4. From the list of VMs, choose the reported VM
5. Click on Delete button


---

# 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/gcp-vm-instances-have-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.
