Cortex CloudApplication Security
Key vault does not enable soft-delete misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AZURE_111
Category - Subcategory
Storage - Backups
Provider
AZURE
Severity
LOW
Framework
ARM, Bicep, Terraform, Terraform Plan
Impact
Deleting a key vault without soft delete enabled permanently deletes all secrets, keys, and certificates stored in the key vault. Accidental deletion of a key vault can lead to permanent data loss. Soft delete allows you to recover an accidentally deleted key vault for a configurable retention period.
How to Fix
Resource: azurerm_key_vault
Arguments: soft_delete_retention_days - (Optional) The number of days that items should be retained for once soft-deleted.
This value can be between 7 and 90 (the default) days. [source,go]
resource "azurerm_key_vault" "example" { ...
soft_delete_retention_days = 7 }
PreviousAzure Key Vault Purge protection is not enabled misconfiguration detected in code
NextKey vault key is not backed by HSM misconfiguration detected in code
Last updated
Was this helpful?
