> 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-primitive-roles-are-in-use.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP IAM primitive roles are in use

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | GCP IAM primitive roles are in use           |
| Finding ID          | 60000076                                     |
| 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

GCP projects using primitive IAM roles ('owner', 'editor') exhibit a significant security misconfiguration.

These primitive roles grant overly broad access to resources, unlike predefined roles offering granular control. Using primitive roles increases the attack surface, allowing unauthorized access and privilege escalation if compromised. An attacker gaining access with 'owner' or 'editor' privileges could perform destructive actions across the entire project.

The impact of this misconfiguration is extensive, potentially leading to data breaches, unauthorized resource modification, and service disruptions. Employing predefined roles significantly reduces the blast radius of a compromised account, limiting the damage from a potential breach. Using predefined roles adheres to the principle of least privilege, a critical security best practice.

Mitigate this risk by replacing primitive roles ('owner', 'editor') with predefined roles granting only necessary permissions. Regularly review and audit IAM assignments, revoking unnecessary access. Leverage IAM's predefined roles to enforce least privilege, enhancing security posture and minimizing potential impact from compromised accounts.

### Remediation

**Manual steps:**

Google Cloud IAM Member - Manual remediation steps:

Review the projects / resources that have Primitive roles assigned to them and replace them with equivalent Predefined roles.

Note: This policy alerts for Service agents which are Google-managed service accounts. Service Agents are by default assigned with some roles by Google cloud and these roles shouldn't be revoked.

Reference: <https://cloud.google.com/iam/docs/service-agents>

Do not revoke the roles that are granted to service agents. If you revoke these roles, some Google Cloud services will no longer work.


---

# 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-primitive-roles-are-in-use.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.
