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

# GCP IAM Service account has admin privileges

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | GCP IAM Service account has admin privileges |
| Finding ID          | 60000146                                     |
| 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                   |
| ATT\&CK Tactic      | TA0004 (TA0004)                              |
| ATT\&CK Technique   | T1078.004 (T1078.004)                        |

### Description

Unnecessarily granting 'roles/owner' or equivalent broad permissions to Google Cloud Platform (GCP) service accounts presents a significant security risk. Service accounts, while automating tasks, should possess only the minimum necessary privileges. Excessive permissions increase the potential impact of compromise.

The GCP IAM service account's elevated privileges ('roles/owner') allow the service account to perform any action within the project. An attacker gaining access to this service account could achieve complete control of the project's resources, including data exfiltration, deployment of malicious code, or modification of infrastructure. This risk is amplified if the service account credentials are not securely managed.

Compromised service accounts with 'roles/owner' privileges can lead to data breaches, unauthorized resource modifications, and complete project takeover. Restricting permissions to only those required by the application minimizes the potential damage from a successful attack. This principle of least privilege is crucial for maintaining a secure cloud environment.

To mitigate this misconfiguration, implement the principle of least privilege. Grant only the specific permissions required for the service account's designated tasks. Regularly review and audit service account permissions to ensure they remain appropriate and identify any unnecessary privileges. Employ strong access controls and utilize secrets management to safeguard service account credentials.

### Remediation

**Manual steps:**

Google Cloud IAM Member - Manual remediation steps:

1. Login to GCP Portal
2. Goto IAM & admin (Left panel)
3. Choose the reported member and click on the edit icon
4. Delete the Admin role and provide appropriate role according to requirement.
5. Click Save


---

# 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-service-account-has-admin-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.
