Ensure that your Microsoft Azure activity log storage container is encrypted with a Customer-Managed Key (CMK) in order to protect your activity log data at rest with a key from your own Azure key vault. By default, activity log data is encrypted using Microsoft managed keys. TrendAI Vision One™ Cloud Risk Management strongly recommends that you use Customer-Managed Keys for encrypting all activity log data stored on Azure storage containers.
The Customer-Managed Key (CMK) support for the activity log storage container encryption allows user control of the encryption keys and restricts who can access these keys and when. This provides additional confidentiality controls on your activity log data as the user that requires access to this data must have 1) read permission on the corresponding storage account and 2) must be granted decrypt permission by the Customer-Managed Key (CMK). With CMK, the container encryption key is protected by an asymmetric key stored in the Azure Key Vault - a cloud-based external key management system developed by Microsoft Azure. The asymmetric key is set at the storage account level and inherited by all containers created on that storage account.
Audit
To determine if Customer-Managed Keys (CMKs) are used for activity log storage container encryption, perform the following actions:
Note: The following audit and remediation steps use the updated Diagnostic Settings feature in Azure, which replaces the legacy Log Profiles feature. It is recommended to migrate away from using Log Profiles and move towards using Diagnostic Settings. For more information on managing the legacy Log Profiles feature, see here.Remediation / Resolution
To encrypt your exported activity log data using your own Customer-Managed Key (CMK), perform the following actions:
References
- Azure Official Documentation
- Azure Storage encryption for data at rest
- Overview of Azure platform logs
- Configure anonymous public read access for containers and blobs
- CIS Microsoft Azure Foundations
- Azure Command Line Interface (CLI) Documentation
- az monitor diagnostic-settings subscription list
- az monitor diagnostic-settings subscription show
- az storage account show
- az keyvault create
- az keyvault key create
- az keyvault set-policy
- az storage account update