| name | cis-azure-foundations-9.2.1 |
| description | Ensure soft delete for blobs on Azure Blob Storage storage accounts is Enabled |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","blob-storage","storage","soft-delete","data-protection"] |
| cis_id | 9.2.1 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Ensure soft delete for blobs on Azure Blob Storage storage accounts is Enabled
Description
Blobs in Azure storage accounts may contain sensitive or personal data, such as ePHI or financial information. Data that is erroneously modified or deleted by an application or a user can lead to data loss or unavailability.
It is recommended that soft delete be enabled on Azure storage accounts with blob storage to allow for the preservation and recovery of data when blobs or blob snapshots are deleted.
Rationale
Blobs can be deleted incorrectly. An attacker or malicious user may do this deliberately in order to cause disruption. Deleting an Azure storage blob results in immediate data loss. Enabling this configuration for Azure storage accounts ensures that even if blobs are deleted from the storage account, the blobs are recoverable for a specific period of time, which is defined in the "Retention policies," ranging from 7 to 365 days.
Impact
All soft-deleted data is billed at the same rate as active data. Additional costs may be incurred for deleted blobs until the soft delete period ends and the data is permanently removed.
Audit Procedure
Audit from Azure Portal
- Go to
Storage Accounts.
- For each Storage Account with blob storage, under
Data management, go to Data protection.
- Ensure that
Enable soft delete for blobs is checked.
- Ensure that the retention period is a sufficient length for your organization.
Audit from Azure CLI
Run the following command to list storage accounts:
az storage account list
Run the following command to determine if a storage account has containers:
az storage container list --account-name <storage-account>
For each storage account with containers, ensure that the output of the below command contains "enabled": true and days is not null:
az storage blob service-properties delete-policy show --account-name <storage-account>
Expected Result
Soft delete for blobs should be enabled with "enabled": true and days set to an appropriate retention period.
Remediation
Remediate from Azure Portal
- Go to
Storage Accounts.
- For each Storage Account with blob storage, under , go to .