Control: 4.11 Ensure Storage for Critical Data are Encrypted with Customer Managed Keys
Description
Enable sensitive data encryption at rest using Customer Managed Keys (CMK) 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. If you want to control and manage this encryption key yourself, however, 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.
While it is possible to automate the assessment of this recommendation, the assessment status for this recommendation remains 'Manual.' This is because the recommendation pertains to storage accounts that store critical data and is therefore not applicable to all storage accounts.
Remediation
From Azure Portal
- Go to
Storage Accounts
. - For each storage account, under
Security + networking
, go toEncryption
. - Set
Encryption type
toCustomer-managed keys
. - Select an encryption key or enter a key URI.
- Click
Save
.
Default Value
By default, Encryption type is set to Microsoft Managed Keys.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v300_4_11
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v300_4_11 --share
SQL
This control uses a named query:
storage_account_encryption_at_rest_using_cmk