> 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/aws-iam-policy-allows-decryption-actions-on-all-kms-keys.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS IAM policy allows decryption actions on all KMS keys

### Synopsis

| Field               | Value                                                    |
| ------------------- | -------------------------------------------------------- |
| Rule Type           | Detection                                                |
| Finding Type        | AWS IAM policy allows decryption actions on all KMS keys |
| Finding ID          | 60000568                                                 |
| Generates a Finding | This detection rule also generates a finding             |
| Severity            | Medium                                                   |
| Category            | CONFIGURATION                                            |
| Cloud Providers     | AWS                                                      |
| Platform Module     | CSPM                                                     |
| Asset Types         | AWS\_IAM\_POLICY                                         |

### Description

An AWS IAM policy granting 'kms:Decrypt' and 'kms:ReEncryptFrom' access to all KMS keys presents a significant security risk. This broad access allows unauthorized decryption of sensitive data should an attacker compromise a user with such permissions.

The AWS KMS service manages encryption keys, and the 'kms:Decrypt' and 'kms:ReEncryptFrom' permissions control access to decryption functionality. Granting these permissions broadly allows any user with the policy to decrypt any data protected by the KMS keys, irrespective of their role or need-to-know basis. This misconfiguration exposes sensitive data to unauthorized access and potential data breaches.

Such excessive permissions increase the impact of a compromised account. A successful attack could lead to the exfiltration of highly sensitive data, causing significant financial losses, reputational damage, and regulatory non-compliance. Implementing the principle of least privilege mitigates this risk by limiting access to only necessary keys and actions.

To remediate this, implement granular access control. Identify the minimum set of KMS keys required for each user and role. Grant only the required 'kms:Decrypt' and 'kms:ReEncryptFrom' permissions for those specific keys. Regularly review and update these permissions to ensure they remain aligned with the user's responsibilities and minimize the attack surface.

### Remediation

To allow a user to encrypt and decrypt with any CMK in a specific AWS account; refer following example: <https://docs.aws.amazon.com/kms/latest/developerguide/customer-managed-policies.html#iam-policy-example-encrypt-decrypt-one-account>

To allow a user to encrypt and decrypt with any CMK in a specific AWS account and Region; refer following example: <https://docs.aws.amazon.com/kms/latest/developerguide/customer-managed-policies.html#iam-policy-example-encrypt-decrypt-one-account-one-region>

To allow a user to encrypt and decrypt with specific CMKs; refer following example: <https://docs.aws.amazon.com/kms/latest/developerguide/customer-managed-policies.html#iam-policy-example-encrypt-decrypt-specific-cmks>


---

# 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/aws-iam-policy-allows-decryption-actions-on-all-kms-keys.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.
