Benchmark: Key Vault
Description
This section contains recommendations for configuring Key Vault resources.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-azure-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select Key Vault.
Run this benchmark in your terminal:
powerpipe benchmark run azure_compliance.benchmark.all_controls_keyvault
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run azure_compliance.benchmark.all_controls_keyvault --share
Controls
- Azure Key Vault should have firewall enabled
- Key Vault keys should have an expiration date
- Resource logs in Key Vault should be enabled
- Resource logs in Azure Key Vault Managed HSM should be enabled
- Azure Key Vault Managed HSM should have purge protection enabled
- Key vaults should have deletion protection enabled
- Enable Role Based Access Control for Azure Key Vault
- Key Vault secrets should have an expiration date
- Key vaults should have soft delete enabled
- Azure Key Vaults should use private link
- Azure Key Vault should disable public network access
- Ensure the key vault is recoverable
- Key Vault should use a virtual network service endpoint
- Ensure that the Expiration Date is set for all Keys in Non-RBAC Key Vaults
- Ensure that the Expiration Date is set for all Secrets in Non-RBAC Key Vaults
- Ensure that the Expiration Date is set for all Keys in RBAC Key Vaults
- Ensure that the Expiration Date is set for all Secrets in RBAC Key Vaults