> 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-cluster-nodes-have-default-service-account-for-project-access.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP Kubernetes Engine Cluster Nodes have default Service account for Project access

### Synopsis

| Field               | Value                                                                               |
| ------------------- | ----------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                           |
| Finding Type        | GCP Kubernetes Engine Cluster Nodes have default Service account for Project access |
| Finding ID          | 60000116                                                                            |
| 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

Default Kubernetes Engine cluster node service accounts grant excessive project access, increasing the risk of unauthorized actions and data breaches. This misconfiguration allows attackers to leverage elevated privileges within the project, potentially compromising sensitive data or resources.

The Compute Engine default service account provides broad project-level access to Kubernetes Engine nodes. Restricting this access is crucial. Failure to use a least-privileged service account or limit the default account's scopes creates a significant attack surface. Attackers could exploit this to perform actions beyond the intended operational scope of the nodes.

A compromised node with excessive permissions allows attackers to access and manipulate sensitive data, applications, and infrastructure. Using a least-privileged service account with only necessary scopes greatly reduces the impact of a potential compromise by limiting the scope of potential damage.

Mitigate this misconfiguration by creating and assigning a dedicated service account with only the necessary 'roles' and 'permissions' for your Kubernetes Engine cluster nodes. Alternatively, if using the default service account, strictly limit its scopes to only those absolutely required for cluster operation. Regularly review and update these permissions to maintain a strong security posture.

### Remediation

GCP Kubernetes Clusters Service account can be chosen only at the time of creation of clusters. So to fix this alert, create a new cluster with the least privileged Service account and then migrate all required cluster node data from the reported cluster to this new cluster.

To create the cluster with new Service account which has privileges as you needed, perform following steps:

1. Login to GCP Portal
2. Click on 'CREATE CLUSTER'
3. Choose required name/value for cluster fields
4. Click on 'More'
5. Choose 'Service account' which has the least privilege under Project access section, Instead of default 'Compute Engine default service account'

   NOTE: The Compute Engine default service account by default, has devstorage.read\_only, logging.write, monitoring, service.management.readonly, servicecontrol, and trace.append privileges/scopes.

   You can configure a service account with more restrictive privileges and assign the same.
6. Click on 'Create'


---

# 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-cluster-nodes-have-default-service-account-for-project-access.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.
