π 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
- Located in: π Azure Storage
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
RELIABILITY
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-a8281d05
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-a8281d05 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
The Azure Storage blobs contain data like ePHI or Financial, which can be secret or personal. Data that is erroneously modified or deleted by an application or other storage account user will cause data loss or unavailability.
It is recommended that both Azure Containers with attached Blob Storage and standalone containers with Blob Storage be made recoverable by enabling the soft delete configuration. This is to save and recover data when blobs or blob snapshots are deleted.
Rationaleβ
Containers and Blob Storage data can be incorrectly deleted. An attacker/malicious user may do this deliberately in order to cause disruption. Deleting an Azure Storage blob causes immediate data loss. Enabling this configuration for Azure storage ensures that even if blobs/data were deleted from the storage account, Blobs/data objects are recoverable for a particular time which is set in the "Retention policies," ranging from 1 day to 365 days.
Impactβ
Additional storage costs may be incurred as snapshots are retained.
... 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
.- Check the box next to
Enable soft delete for containers
.- Set the retention period for both to a sufficient length for your organization.
- Click
Save
.From Azure CLIβ
Update blob storage retention days in below command:
az storage blob service-properties delete-policy update --days-retained <RetentionDaysValue> --account-name <StorageAccountName> --account-key <AccountKey> --enable true
Update container retention with the below command:
az storage account blob-service-properties update --enable-container-delete-retention true --container-delete-retention-days <days> --account-name <storageAccount> --resource-group <resourceGroup>