Ensure that AuditEvent logging is enabled for all Azure Key Vault instances in order to record any interactions with your vaults for enhancing data protection and compliance within your Azure cloud account. With Azure Key Vault, you can safeguard encryption keys and application secrets like passwords using keys stored in Hardware Security Modules (HSMs).
This rule resolution is part of the Conformity Security & Compliance tool for Azure.
Monitoring how and when your Azure Key Vaults are accessed, and by whom, enables an audit trail of interactions with private information, encryption keys and certificates managed by the Azure Key Vault service. Enabling logging for Key Vault saves information to an Azure storage account that you provide during setup.
Audit
To determine if the AuditEvent logging is enabled for your Azure Key Vaults, perform the following actions:
Remediation / Resolution
By default, AuditEvent logging is not enabled for Microsoft Azure Key Vault instances. To enable and configure AuditEvent logging for your Azure Key Vaults, perform the following actions:
References
- Azure Official Documentation
- Azure Key Vault logging
- Azure Command Line Interface (CLI) Documentation
- az monitor log-profiles
- az keyvault list
- az monitor diagnostic-settings list
- az monitor diagnostic-settings create