🛡️ Azure Storage Blob Soft Delete is not enabled🟢
- Contextual name: 🛡️ Blob Soft Delete is not enabled🟢
- ID:
/ce/ca/azure/storage/blob-soft-delete - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
RELIABILITY,SECURITY
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 blobs 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 Azure Storage blobs be made recoverable by enabling the soft delete for blobs configuration. This saves and recovers data when blobs or blob snapshots are deleted.
Rationale
Blobs can be deleted incorrectly. An attacker or malicious user may do this deliberately to cause disruption. Deleting a blob causes immediate data loss. Enabling this configuration for Azure Storage ensures that deleted blobs and blob snapshots are recoverable for a defined retention period.
Impact
Additional storage costs may be incurred as deleted blobs and snapshots are retained.
Audit
This policy flags an Azure Storage Account as
INCOMPLIANTif theBlob Retention Policy Stateis not set to Enabled, or ifBlob Retention Policy Daysis empty.Default Value
... 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 blobs.- Set the retention period to a sufficient length for your organization.
- Click
Save.From Azure CLI
Update blob retention with the following command:
az storage account blob-service-properties update \
--enable-delete-retention true \
--delete-retention-days {{retention-days}} \
--account-name {{storage-account-name}} \
--resource-group {{resource-group-name}}