> 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/ibm-cloud-virtual-private-cloud-vpc-subnet-has-public-gateways-attached.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# IBM Cloud Virtual Private Cloud (VPC) Subnet has public gateways attached

### Synopsis

| Field               | Value                                                                     |
| ------------------- | ------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                 |
| Finding Type        | IBM Cloud Virtual Private Cloud (VPC) Subnet has public gateways attached |
| Finding ID          | 60000760                                                                  |
| Generates a Finding | This detection rule also generates a finding                              |
| Severity            | Medium                                                                    |
| Category            | CONFIGURATION                                                             |
| Cloud Providers     | IBM\_CLOUD                                                                |
| Platform Module     | CSPM                                                                      |
| Asset Types         | IBM\_NETWORKING\_SUBNET                                                   |
| ATT\&CK Tactic      | TA0001 (TA0001)                                                           |
| ATT\&CK Technique   | T1190 (T1190)                                                             |

### Description

An IBM Cloud VPC subnet carries no route to the internet by default. Attaching a public gateway gives every instance in that subnet outbound internet connectivity using network address translation, without requiring each instance to hold its own floating IP address. The attachment is recorded as a public gateway reference on the subnet.

This policy identifies VPC subnets that have a public gateway attached. The check reads the public gateway reference on each subnet and reports those where one is present.

A public gateway grants unrestricted outbound internet access to every workload in the subnet at once, including resources such as database tiers and internal services that should have no route off the private network. That egress path is what a compromised workload uses to reach command and control infrastructure, download additional tooling and transfer data outward, so its presence converts an otherwise contained intrusion into one that can be operated remotely. Because the gateway applies at subnet scope, the exposure is granted collectively rather than per workload.

As a remediation, detach the public gateway from subnets whose workloads do not require outbound internet access, and place resources that genuinely need egress in a dedicated subnet. Where controlled egress is required, route it through a NAT or proxy tier that logs and filters the traffic rather than granting direct access.

### Remediation

**Manual steps:**

IBM Networking Subnet - Manual remediation steps:

1. Log in to the IBM Cloud Console
2. Click on 'Menu Icon' and navigate to 'VPC Infrastructure' and then 'Public Gateways'
3. Select the 'Public Gateway' reported in the alert
4. From the drop down select Detach
5. Safely detach the public gateway and then delete the public gateway


---

# 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/ibm-cloud-virtual-private-cloud-vpc-subnet-has-public-gateways-attached.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.
