🛡️ Azure Storage Blob Containers Soft Delete is not enabled🟢
- Contextual name: 🛡️ Blob Containers Soft Delete is not enabled🟢
- ID:
/ce/ca/azure/storage/blob-containers-soft-delete - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
RELIABILITY,SECURITY
Stats
not available
Logic
Similar Policies
- Cloud Conformity: Enable Soft Delete for Azure Blob Storage
- Internal:
dec-x-a8281d05
Similar Internal Rules
| Rule | Policies | Flags |
|---|---|---|
| ✉️ dec-x-a8281d05 | 2 |
Description
Description
Azure Storage containers can contain data such as ePHI or financial records, which can be sensitive or personal. Data that is modified or deleted in error by an application or other storage account user can cause data loss or unavailability.
It is recommended that Blob Storage containers be made recoverable by enabling the soft delete for containers configuration. This saves and recovers data when containers are deleted.
Rationale
Containers can be deleted incorrectly. An attacker or malicious user may do this deliberately to cause disruption. Deleting a container causes immediate data loss. Enabling this configuration for Azure Storage ensures that even if containers are deleted from the storage account, those containers are recoverable for a defined retention period.
Impact
Additional storage costs may be incurred as snapshots are retained.
Audit
This policy flags an Azure Storage Account as
INCOMPLIANTif theContainer Retention Policy Stateis not set to Enabled, or ifContainer Retention Policy Daysis empty.... see more
Remediation
Remediation
From Azure Portal
- Go to
Storage Accounts.- For each Storage Account, under
Data management, go toData protection.- Check the box next to
Enable soft delete for containers.- Set the retention period to a sufficient length for your organization.
- Click
Save.From Azure CLI
Update container retention with the following command:
az storage account blob-service-properties update \
--enable-container-delete-retention true \
--container-delete-retention-days {{retention-days}} \
--account-name {{storage-account-name}} \
--resource-group {{resource-group-name}}