> 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-kubernetes-engine-clusters-not-configured-with-private-nodes-feature.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP Kubernetes Engine Clusters not configured with private nodes feature

### Synopsis

| Field               | Value                                                                    |
| ------------------- | ------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                |
| Finding Type        | GCP Kubernetes Engine Clusters not configured with private nodes feature |
| Finding ID          | 60000258                                                                 |
| Generates a Finding | This detection rule also generates a finding                             |
| Severity            | Medium                                                                   |
| Category            | CONFIGURATION                                                            |
| Cloud Providers     | GCP                                                                      |
| Platform Module     | CSPM                                                                     |
| Asset Types         | GOOGLE\_KUBERNETES\_ENGINE\_CONTAINER\_CLUSTER                           |

### Description

GKE clusters lacking the private nodes feature expose master nodes and worker nodes to the public internet, increasing the risk of unauthorized access and compromise.

The Google Kubernetes Engine (GKE) private nodes feature isolates cluster nodes from the public internet by removing public IP addresses. Without this, attackers can potentially scan for and exploit publicly exposed Kubernetes APIs or directly access worker nodes, leading to data breaches, unauthorized deployments, or complete cluster takeover.

A misconfiguration exposing GKE nodes publicly increases the attack surface and exposes the cluster to various threats, including unauthorized access, malware injection, and data exfiltration. Implementing private nodes significantly reduces this risk by limiting network access to only trusted internal networks.

To mitigate this, ensure all GKE clusters are configured with the private nodes feature enabled. Regularly scan for and remediate any clusters lacking this setting. Utilize network segmentation and least privilege access controls to further enhance security.

### Remediation

GCP Kubernetes private node feature can be enabled at the time of cluster creation. So to fix this alert, Create a new cluster with a private node feature enabled on it and migrate all required data from reported cluster to the newly created cluster and delete reported Kubernetes engine cluster.

To create new Kubernetes engine cluster with private node feature enabled, perform the following:

1. Login to GCP Portal
2. Go to Kubernetes Engine (Left Panel)
3. Select Kubernetes clusters
4. Click on CREATE CLUSTER button
5. Click on 'Advanced options'
6. Under the Networking section, Check the 'Enable VPC-native (using alias IP)' option
7. Choose the required Network, Node subnet parameters
8. From Network security, select the Private cluster check box.
9. To create a master that is accessible from authorized external IP ranges, keep the 'Access master using its external IP address' checkbox selected.
10. Set 'Master IP range' to as per your required IP range
11. Click on 'Create'

NOTE: When you create a private cluster, you must specify a /28 CIDR range for the VMs that run the Kubernetes master components.

To delete reported Kubernetes engine cluster, perform the following:

1. Login to GCP Portal
2. Go to Kubernetes Engine (Left Panel)
3. Select Kubernetes clusters
4. Click on reported Kubernetes cluster
5. Click on the DELETE button
6. On 'Delete a cluster' popup dialog, Click on DELETE to confirm the deletion of the cluster.


---

# 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-kubernetes-engine-clusters-not-configured-with-private-nodes-feature.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.
