rules/findings/azure/storage/azure-storage-account-soft-delete-for-blob-not-enabled.json
|
{
"provider": "Azure", "serviceType": "Storage Accounts", "serviceName": "Storage", "displayName": "Ensure that 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.<br/><br/>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.", "remediation": { "text": "Remediate from Azure Portal 1. Go to Storage Accounts. 2. For each Storage Account with blob storage, under Data management, go to Data protection. 3. Check the box next to Enable soft delete for blobs. 4. Set the retention period to a sufficient length for your organization. 5. Click Save.", "code": { "powerShell": null, "iac": null, "terraform": null, "other": null } }, "recommendation": null, "references": [ "https://learn.microsoft.com/en-us/azure/storage/blobs/soft-delete-blob-overview" ], "compliance": [ { "name": "CIS Microsoft Azure Foundations", "version": "5.0.0", "reference": "9.2.1", "profile": [ "Level 1" ] } ], "level": "low", "tags": [], "rule": { "path": "az_storage_accounts", "subPath": null, "selectCondition": { }, "query": [ { "filter": [ { "conditions": [ [ "dataProtection.deleteRetentionPolicy.enabled", "eq", "False" ], [ "eq", "dataProtection.deleteRetentionPolicy.days" ] ], "operator":"or" } ] } ], "shouldExist": null, "returnObject": null, "removeIfNotExists": null }, "output": { "html": { "data": { "properties": { "id": "id", "name": "name", "location": "Location", "dataProtection.deleteRetentionPolicy.enabled": "Soft Delete", "dataProtection.deleteRetentionPolicy.days": "Retention Days" }, "expandObject": null }, "table": "default", "decorate": [], "emphasis": [], "actions": { "objectData": { "properties": [ "id", "name", "dataProtection" ], "expandObject": null, "limit": null }, "showGoToButton": "True", "showModalButton": "True", "directLink": null } }, "text": { "data": { "properties": { "id": "id", "name": "name", "location": "Location", "dataProtection.properties.deleteRetentionPolicy.enabled": "Soft Delete", "dataProtection.properties.deleteRetentionPolicy.days": "Retention Days" }, "expandObject": null }, "status": { "keyName": ["name"], "message": "Ensure that soft delete for blobs on Azure Blob Storage storage accounts is Enabled for {name}", "defaultMessage": "Ensure that soft delete for blobs on Azure Blob Storage storage accounts is Enabled" }, "properties": { "resourceName": "name", "resourceId": "id", "resourceType": "AzureStorageAccount" }, "onlyStatus": false } }, "idSuffix": "azure_storage_soft_delete_blob_not_enabled", "notes": [], "categories": [], "immutable_properties": [ "id" ], "id": "azure_storage_004" } |