> 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-sqs-queue-encryption-using-default-kms-key-instead-of-cmk.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS SQS queue encryption using default KMS key instead of CMK

### Synopsis

| Field               | Value                                                         |
| ------------------- | ------------------------------------------------------------- |
| Rule Type           | Detection                                                     |
| Finding Type        | AWS SQS queue encryption using default KMS key instead of CMK |
| Finding ID          | 60000246                                                      |
| Generates a Finding | This detection rule also generates a finding                  |
| Severity            | Medium                                                        |
| Category            | CONFIGURATION                                                 |
| Cloud Providers     | AWS                                                           |
| Platform Module     | CSPM                                                          |
| Asset Types         | SQS\_QUEUE\_ATTRIBUTES                                        |
| ATT\&CK Tactic      | TA0009 (TA0009)                                               |
| ATT\&CK Technique   | T1530 (T1530)                                                 |

### Description

AWS SQS queues encrypted with the default KMS key instead of a customer-managed key (CMK) pose a significant security risk. Using the default KMS key means the AWS service has access to your encryption keys, reducing your control over sensitive data.

Amazon SQS offers server-side encryption using AWS-managed keys or customer-managed keys. The default KMS key provides less control than a CMK. An attacker gaining access to the default KMS key could decrypt all messages encrypted with it, leading to data breaches and potential compliance violations.

Data breaches resulting from this misconfiguration can expose sensitive information, leading to financial loss, reputational damage, and legal penalties. Using CMKs ensures that only authorized users with appropriate permissions, specifically 'kms:Decrypt', have access to decryption keys, providing stronger control over sensitive data within SQS queues.

To mitigate this, encrypt all SQS queues using a dedicated CMK. Regularly rotate the CMK keys to further strengthen security. Implement robust access controls to limit who can access and manage these keys.

### Remediation

**Manual steps:**

SQS Queue Attributes - Manual remediation steps:

1. Sign in to the AWS console
2. Select the region, from the region drop-down, in which the alert is generated
3. Navigate to Simple Queue Service (SQS) dashboard
4. Choose the reported Simple Queue Service (SQS)
5. Click on 'Queue Actions' and Choose 'Configure Queue' from the dropdown
6. On 'Configure' popup, Under 'Server-Side Encryption (SSE) Settings' section; Choose an 'AWS KMS Customer Master Key (CMK)' from the drop-down list or copy existing key ARN instead of (Default) alias/aws/sqs key.
7. 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-sqs-queue-encryption-using-default-kms-key-instead-of-cmk.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.
