> 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/azure-sql-server-tde-protector-is-not-encrypted-with-byok-use-your-own-key.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure SQL server TDE protector is not encrypted with BYOK (Use your own key)

### Synopsis

| Field               | Value                                                                        |
| ------------------- | ---------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                    |
| Finding Type        | Azure SQL server TDE protector is not encrypted with BYOK (Use your own key) |
| Finding ID          | 60000383                                                                     |
| Generates a Finding | This detection rule also generates a finding                                 |
| Severity            | Medium                                                                       |
| Category            | CONFIGURATION                                                                |
| Cloud Providers     | AZURE                                                                        |
| Platform Module     | CSPM                                                                         |
| Asset Types         | AZURE\_SQL\_SERVER                                                           |
| ATT\&CK Tactic      | TA0040 (TA0040)                                                              |
| ATT\&CK Technique   | T1486 (T1486)                                                                |

### Description

Azure SQL servers lacking encryption of Transparent Data Encryption (TDE) protectors with Bring Your Own Key (BYOK) represent a significant security risk. Untrusted entities could potentially gain access to sensitive data if the default encryption key is compromised.

Transparent Data Encryption (TDE) protects data at rest using a Database Encryption Key (DEK). However, relying on Microsoft-managed keys for protecting the DEK introduces a single point of failure and reduces organizational control. An attacker gaining access to the Microsoft-managed key could decrypt the entire database.

A successful compromise could result in unauthorized access to sensitive customer data, leading to data breaches, regulatory fines, and reputational damage. Implementing BYOK ensures that the organization retains complete control and management of the encryption keys, minimizing the risk of unauthorized access. This strengthens the overall security posture and enhances data sovereignty.

To mitigate this risk, enforce the use of BYOK for all Azure SQL server TDE protectors. Regularly audit and monitor key management practices to ensure compliance. Implement strong access controls to the Key Vault containing the customer-managed keys, restricting access to only authorized personnel.

### Remediation

**Manual steps:**

Azure SQL Server - Manual remediation steps:

1. Log in to the Azure Portal
2. Navigate to 'SQL servers' dashboard, and select the SQL server instance you want to modify
3. In the left menu under 'Security', select 'Transparent data encryption'
4. Select Customer-managed key > Select a key > Change key

   In Key vault, select an existing key vault or create new key vault

   In Key, select an existing key or create a new key

   In Version, select an existing version or create new version

   OR

   Select Customer-managed key > Enter a key identifier

   In Key identifier add key vault URI, if URI is already noted.
5. Click on 'Save'


---

# 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/azure-sql-server-tde-protector-is-not-encrypted-with-byok-use-your-own-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.
