| name | cis-azure-database-3.5 |
| description | Ensure critical data is encrypted with customer-managed keys (CMK) |
| category | cis-azure-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","cosmos-db","nosql"] |
| cis_id | 3.5 |
| cis_benchmark | CIS Microsoft Azure Database Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
3.5 Ensure critical data is encrypted with customer-managed keys (CMK) (Manual)
Profile Applicability
Description
Customer-managed keys introduce additional depth to security by providing control over encryption keys. Where required, and organizational capacity allows, sensitive data at rest can be encrypted using customer-managed keys.
While it is possible to automate the assessment of this recommendation, the assessment status remains "Manual" due to ideally limited scope. The scope of application should be carefully considered to account for organizational capacity, and targeted to workloads with specific need for CMK.
Rationale
Customer-managed keys provide greater control over the creation, rotation, and revocation of encryption keys, supporting strict security and compliance requirements.
Impact
Implementing customer-managed keys introduces additional administrative effort to create, rotate, monitor, and secure encryption keys.
Audit Procedure
Audit from Azure Portal
- Go to
Azure Cosmos DB.
- Select the name of an Azure Cosmos DB account.
- Under Settings, select Data Encryption.
- Ensure
Encryption Key Type is set to Customer-managed key.
- Repeat steps 1-4 for each account.
Audit from Azure CLI
Run the following command to list Azure Cosmos DB accounts:
az cosmosdb list
For each account, run the following command to get the Key Vault key URI:
az cosmosdb show --resource-group <resource-group> --name <cosmos-db> --query keyVaultKeyUri
Ensure an Azure Key Vault key URI is returned.
Audit from PowerShell
Run the following command to get Azure Cosmos DB accounts for a given resource group:
Get-AzCosmosDBAccount -ResourceGroupName <resource-group>
Run the following command to get the account with a given name:
$cosmosdb = Get-AzCosmosDBAccount -ResourceGroupName <resource-group> -Name <cosmos-db>
Run the following command to get the Key Vault key URI:
$cosmosdb.KeyVaultKeyUri
Ensure an Azure Key Vault key URI is returned.
Repeat for each account.
Audit from Azure Policy
- - 'Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest'