> 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/ibm-cloud-mysql-database-disk-encryption-is-not-enabled-with-customer-managed-keys.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# IBM Cloud MySQL Database disk encryption is not enabled with customer managed keys

### Synopsis

| Field               | Value                                                                              |
| ------------------- | ---------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                          |
| Finding Type        | IBM Cloud MySQL Database disk encryption is not enabled with customer managed keys |
| Finding ID          | 60000772                                                                           |
| Generates a Finding | This detection rule also generates a finding                                       |
| Severity            | Medium                                                                             |
| Category            | CONFIGURATION                                                                      |
| Cloud Providers     | IBM\_CLOUD                                                                         |
| Platform Module     | CSPM                                                                               |
| Asset Types         | IBM\_MYSQL\_DEPLOYMENT                                                             |
| ATT\&CK Tactic      | TA0040 (TA0040)                                                                    |
| ATT\&CK Technique   | T1486 (T1486)                                                                      |

### Description

IBM Cloud Databases for MySQL encrypts stored data at rest by default with keys that IBM manages. A deployment can instead use a customer managed root key held in Key Protect or Hyper Protect Crypto Services, whose CRN is then recorded in the deployment's platform options.

This policy identifies MySQL deployments whose disk encryption key CRN is empty, meaning disk encryption is not backed by a customer managed key. The check reports deployments where no key CRN is present.

Without a customer managed key, the account owner cannot revoke access to the stored data independently of the provider, cannot impose their own rotation schedule on the key protecting the database, and cannot produce a key usage audit trail under their own control. If the data must be made unreadable at short notice, there is no key the owner can disable to accomplish it. Regulated workloads commonly require that the tenant hold sole authority over the key protecting personal or financial records, and provider-managed encryption cannot meet that requirement.

As a remediation, create a root key in Key Protect or Hyper Protect Crypto Services, grant the Databases for MySQL service authorisation to use it, and provision a new deployment with that key supplied as the disk encryption key, since the key cannot be attached to an existing deployment. Restore from backup into the new deployment and then retire the original.

### Remediation

**Manual steps:**

IBM MySQL Deployment - Manual remediation steps:

MySQL database disk encryption can be enabled with Customer managed keys only at the time of creation.

Please use below link to provide MySQL service to KMS service authorization if not authorized already;

<https://cloud.ibm.com/docs/cloud-databases?topic=cloud-databases-key-protect\\&interface=ui#granting-service-auth>

Please use below link to provision a KMS instance with a key to use for encryption if not provisioned:

<https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial#create-keys>

Please follow below steps to create a new MySQL deployment from backup of vulnerable MySQL deployment:

1. Log in to the IBM Cloud Console
2. Click on 'Menu Icon' and navigate to 'Resource list', from the list of resources select MySQL database reported in the alert.
3. In the left navigation pane, navigate to 'Backups and restore', under 'Available Backups' section click on 'Create backup' to get latest backup of the database.
4. Under 'Available Backups' tab, click on three dots on the right corner of a row containing latest backup and click on 'Restore backup'.
5. On create a new Database for MySQL from backup page, select all the configuration as per the requirement.
6. Under 'Encryption' section, under 'KMS Instance' please select a KMS instance and a key from the instance to use for encryption.
7. Click on 'Restore backup'.

Please follow below steps to delete the reported database deployment :

1. Log in to the IBM Cloud Console
2. Click on 'Menu Icon' and navigate to 'Resource list'.
3. Select your deployment. Next, by using the stacked three-dot menu icon , choose Delete from the drop list.


---

# 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/ibm-cloud-mysql-database-disk-encryption-is-not-enabled-with-customer-managed-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.
