> 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-iam-users-have-overly-permissive-service-account-privileges.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP IAM Users have overly permissive service account privileges

### Synopsis

| Field               | Value                                                           |
| ------------------- | --------------------------------------------------------------- |
| Rule Type           | Detection                                                       |
| Finding Type        | GCP IAM Users have overly permissive service account privileges |
| Finding ID          | 60000149                                                        |
| Generates a Finding | This detection rule also generates a finding                    |
| Severity            | Medium                                                          |
| Category            | CONFIGURATION                                                   |
| Cloud Providers     | GCP                                                             |
| Platform Module     | CSPM                                                            |
| Asset Types         | GOOGLE\_CLOUD\_IAM\_MEMBER                                      |

### Description

Overly permissive service account privileges assigned to GCP IAM users present a significant security risk. A single user possessing both 'Service Account Admin' and 'Service Account User' roles enables them to create, delete, manage, and utilize service accounts, facilitating unauthorized access and actions.

The 'Service Account Admin' role grants extensive control over service accounts, allowing for their creation and modification. The 'Service Account User' role permits assigning these accounts to applications and compute instances. Combining these roles allows a malicious actor to create a service account with excessive privileges, then utilize it for lateral movement or data exfiltration. This circumvents typical access controls and increases the attack surface.

Compromise of a user with these combined roles could result in complete control over GCP resources, leading to data breaches, unauthorized resource usage, and significant financial losses. Separating these duties limits the potential damage from any single compromised account, improving the overall security posture.

To mitigate this risk, ensure no single user possesses both 'Service Account Admin' and 'Service Account User' roles. Implement least privilege access, assigning only the necessary permissions to each user. Regularly review and audit IAM roles, promptly removing any unnecessary or overly permissive assignments. Employ multi-factor authentication (MFA) for all IAM users to enhance security.

### Remediation

1. Login to GCP Portal
2. Go to IAM & Admin (Left Panel)
3. Select IAM
4. From the list of users, choose the reported IAM user
5. Click on Edit permissions pencil icon
6. For member having 'Service Account admin' and 'Service Account User' roles granted/assigned, Click on the Delete Bin icon to remove the role from a member


---

# 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-iam-users-have-overly-permissive-service-account-privileges.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.
