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

# GCP IAM user have overly permissive Cloud KMS roles

### Synopsis

| Field               | Value                                               |
| ------------------- | --------------------------------------------------- |
| Rule Type           | Detection                                           |
| Finding Type        | GCP IAM user have overly permissive Cloud KMS roles |
| Finding ID          | 60000141                                            |
| 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 Cloud KMS roles assigned to GCP IAM users create a significant security risk. These roles grant excessive access to encryption keys, potentially enabling unauthorized data manipulation or exfiltration.

Cloud KMS roles such as 'Cloud KMS Admin' and 'Cloud KMS CryptoKey Encrypter/Decrypter' offer extensive control over encryption keys. Granting these roles without adhering to the principle of least privilege increases the attack surface. An attacker gaining access to an account with such permissions could decrypt sensitive data, modify encryption keys, or disrupt critical services.

The impact of this misconfiguration includes data breaches, service disruption, and regulatory non-compliance. Following the principle of least privilege by assigning only necessary roles minimizes the potential damage from compromised credentials. Restricting access to sensitive resources reduces the blast radius of a successful attack.

Mitigate this risk by implementing role-based access control (RBAC) and following the principle of least privilege. Grant only the minimum necessary permissions to each IAM user. Regularly review and audit IAM roles to identify and revoke excessive permissions. Employ multi-factor authentication (MFA) for all accounts with access to Cloud KMS.

### 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 'Cloud KMS Admin' and any of the 'Cloud KMS CryptoKey Encrypter/Decrypter', 'Cloud KMS CryptoKey Encrypter', 'Cloud KMS CryptoKey Decrypter' or any CryptoKey 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-user-have-overly-permissive-cloud-kms-roles.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.
