> 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-rds-database-not-encrypted-using-customer-managed-key.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS RDS database not encrypted using Customer Managed Key

### Synopsis

| Field               | Value                                                     |
| ------------------- | --------------------------------------------------------- |
| Rule Type           | Detection                                                 |
| Finding Type        | AWS RDS database not encrypted using Customer Managed Key |
| Finding ID          | 60000219                                                  |
| Generates a Finding | This detection rule also generates a finding              |
| Severity            | Medium                                                    |
| Category            | CONFIGURATION                                             |
| Cloud Providers     | AWS                                                       |
| Platform Module     | CSPM                                                      |
| Asset Types         | RDS\_DATABASE\_INSTANCE                                   |
| ATT\&CK Tactic      | TA0040 (TA0040)                                           |
| ATT\&CK Technique   | T1486 (T1486)                                             |

### Description

Amazon Relational Database Service (RDS) instances lacking encryption with customer-managed keys present a significant security risk. Databases encrypted with default AWS-managed keys leave encryption key control with AWS, potentially hindering incident response and data recovery.

AWS RDS offers server-side encryption using either AWS-managed or customer-managed keys. Using default keys simplifies initial setup but relinquishes control over the encryption keys, increasing the risk of data breaches and unauthorized access. An attacker gaining access to the AWS account could easily decrypt the database.

Failure to use customer-managed keys for RDS encryption could lead to data loss, regulatory non-compliance, and reputational damage. Maintaining control of encryption keys ensures organizations can independently manage key rotation, access control, and lifecycle, reducing the blast radius of a compromise.

Implement a policy mandating encryption of all RDS instances with customer-managed keys. Regularly review and audit key usage, access, and rotation. Employ strong key management practices, including proper key permissions and multi-factor authentication for key administrators.

### Remediation

**Manual steps:**

RDS Database Instance - Manual remediation steps:

Because you can set AWS RDS database encryption only during database creation, the process for resolving this alert requires you to create a new RDS database with a customer managed key for encryption, migrate the data from the reported database to this newly created database, and delete the RDS database identified in the alert.

To create a new RDS database with encryption using a customer managed key:

1. Log in to the AWS console.
2. Select the region for which the alert was generated.
3. Navigate to the Amazon RDS Dashboard.
4. Select 'Create database'.
5. On the 'Select engine' page, select 'Engine options' and 'Next'.
6. On the 'Choose use case' page, select 'Use case' of database and 'Next'.
7. On the 'Specify DB details' page, specify the database details you need and click 'Next'.

   Note: Amazon RDS encryption has some limitation on region and type instances. For Availability of Amazon RDS Encryption refer to: <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Encryption.html#Overview.Encryption.Availability>
8. On the 'Configure advanced settings' page, Under 'Encryption', select 'Enable encryption' and select the customer managed key \[i.e. Other than (default)aws/rds] from 'Master key' dropdown list].
9. Select 'Create database'.

To delete the RDS database that uses the default KMS keys, which triggered the alert:

1. Log in to the AWS console
2. Select the region for which the alert was generated.
3. Navigate to the Amazon RDS Dashboard.
4. Click on Instances, and select the reported RDS database.
5. Select the 'Instance actions' drop-down and click 'Delete'.
6. In the 'Delete' dialog, select the 'Create final snapshot?' checkbox, if you want a backup. Provide a name for the final snapshot, confirm deletion and select 'Delete'.


---

# 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-rds-database-not-encrypted-using-customer-managed-key.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.
