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

# AWS KMS Key policy overly permissive

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | AWS KMS Key policy overly permissive         |
| Finding ID          | 60000521                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | Low                                          |
| Category            | CONFIGURATION                                |
| Cloud Providers     | AWS                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | AWS\_KMS\_KEY\_ROTATION\_STATUS              |

### Description

Overly permissive AWS KMS key policies enable unauthorized access to sensitive data encrypted with those keys. These policies grant excessive permissions, potentially allowing malicious actors to decrypt data, modify key settings, or even delete keys entirely.

AWS KMS keys control access to encrypted data. A misconfigured key policy, granting permissions beyond what's necessary creates a significant security risk. Attackers exploiting this misconfiguration could gain unauthorized access to encrypted data, potentially leading to data breaches or operational disruptions.

The impact of this misconfiguration includes data breaches, unauthorized access to sensitive information, and disruption of services dependent on encrypted data. Following the principle of least privilege ensures that only authorized users and services with the necessary permissions can access the KMS key, minimizing the impact of potential compromises.

Implement least privilege by granting only the minimum necessary permissions in your KMS key policies. Regularly review and audit key policies to identify and remove unnecessary permissions. Use AWS Identity and Access Management (IAM) roles and policies to control access to KMS keys, rather than relying solely on overly permissive key policies.

### Remediation

1. Log in to the AWS console
2. In the console, select the specific region from region drop-down on the top right corner, for which the alert is generated
3. Navigate to Key Management Service (KMS)
4. Click on 'Customer managed keys' (Left Panel)
5. Select reported KMS Customer managed key
6. Click on the 'Key policy' tab
7. Click on 'Edit',

   Replace the 'Everyone' grantee (i.e. '\*') from the Principal element value with an AWS account ID or an AWS account ARN.

   OR

   Add a Condition clause to the existing policy statement so that the KMS key is restricted.
8. Click on 'Save Changes'


---

# 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-kms-key-policy-overly-permissive.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.
