| name | cis-azure-foundations-6.1.1.4 |
| description | Ensure that logging for Azure Key Vault is 'Enabled' |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","logging","monitoring","key-vault","diagnostic-settings"] |
| cis_id | 6.1.1.4 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | ["cis-azure-foundations-6.1.4"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure that logging for Azure Key Vault is 'Enabled'
Description
Enable AuditEvent logging for key vault instances to ensure interactions with key vaults are logged and available.
Rationale
Monitoring how and when key vaults are accessed, and by whom, enables an audit trail of interactions with confidential information, keys, and certificates managed by Azure Key Vault. Enabling logging for Key Vault saves information in a user provided destination of either an Azure storage account or Log Analytics workspace. The same destination can be used for collecting logs for multiple Key Vaults.
Impact
None identified.
Audit Procedure
Using Azure Portal
- Go to
Key vaults.
- For each Key vault, under
Monitoring, go to Diagnostic settings.
- Click
Edit setting next to a diagnostic setting.
- Ensure that a destination is configured.
- Under
Category groups, ensure that audit and allLogs are checked.
Using Azure CLI
List all key vaults:
az keyvault list
For each keyvault id:
az monitor diagnostic-settings list --resource <id>
Ensure that storageAccountId reflects your desired destination and that categoryGroup and enabled are set as follows:
"logs": [
{
"categoryGroup": "audit",
"enabled": true,
},
{
"categoryGroup": "allLogs",
"enabled"