Control: 3.9 Ensure storage for critical data are encrypted with Customer Managed Key
Description
Enable sensitive data encryption at rest using Customer Managed Keys rather than Microsoft Managed keys.
By default, data in the storage account is encrypted using Microsoft Managed Keys at rest. All Azure Storage resources are encrypted, including blobs, disks, files, queues, and tables. All object metadata is also encrypted. However, if you want to control and manage this encryption key yourself, you can specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. You can also choose to automatically update the key version used for Azure Storage encryption whenever a new version is available in the associated Key Vault.
Remediation
From Console
- Login to Azure Storage Accounts
- For each storage account, go to Encryption under
Security + networking
- Set Customer Managed Keys
- Select the Encryption key and enter the appropriate setting value as documented here
- Click Save
Note: By default, Encryption type is set to Microsoft Managed Keys.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v130_3_9
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v130_3_9 --share
SQL
This control uses a named query:
storage_account_encryption_at_rest_using_cmk