Description:

Enable sensitive data encryption at rest using Customer Managed Keys rather than Microsoft Managed keys.


Rationale:

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.


Impact:

If the key expires by setting the 'activation date' and 'expiration date' of the key, the user must rotate the key manually. Using Customer Managed Keys may also incur additional man-hour requirements to create, store, manage, and protect the keys as needed.


Default Value:

By default, the Encryption type is set to Microsoft Managed Keys.


Audit:

  1. Go to Storage Accounts

  2. For each storage account, go to Encryption

  3. Ensure that Encryption type is set to Customer Managed Keys

Remediation:

Pre-Requisites:

  1. Azure Account

  2. At least one storage account in Azure

Implementation Steps:

  1. Go to Storage Accounts

  2. For each storage account, go to Encryption

  3. Set Customer-Managed Keys

  4. Select the Encryption key and enter the appropriate setting value

  5. Click Save


Backout Plan:

  1. Go to Storage Accounts

  2. For each storage account, go to Encryption

  3. Ensure that Encryption type is set to Microsoft Managed Keys(how we can revoke the changes)


References:

  1. https://docs.microsoft.com/en-us/azure/storage/common/storage-service- encryption

  2. https://docs.microsoft.com/en-us/azure/security/fundamentals/data-encryption- best-practices#protect-data-at-rest

  3. https://docs.microsoft.com/en-us/azure/storage/common/storage-service- encryption#azure-storage-encryption-versus-disk-encryption