Check ID:
Provider: GCP
Service:
Severity: MEDIUM
Categories:
Resource type:
cloudstorage_bucket_soft_delete_enabledProvider: GCP
Service:
cloudstorageSeverity: MEDIUM
Categories:
resilienceResource type:
storage.googleapis.com/BucketWhat this check verifies
Google Cloud Storage buckets are assessed for Soft Delete being enabled with a non-zero retention window, meaning deleted objects are temporarily preserved and can be restored until the window expires.Risk
No Soft Delete makes object deletions immediate and irreversible, undermining data availability and integrity. Accidental removal, compromised credentials, wiper malware, or misconfigured lifecycle rules can erase datasets with no recovery path, breaking RPO/RTO and legal retention expectations.Recommendation
Enable Soft Delete with a retention window aligned to your RPO/RTO. Apply least privilege for delete/undelete actions and use defense in depth with object versioning and retention policies. Monitor deletion events and regularly test restore procedures to ensure recoverability.Remediation
- CLI
- Terraform
- Dashboard steps
References
- https://docs.cloud.google.com/storage/docs/soft-delete
- https://docs.cloud.google.com/storage/docs/use-soft-delete
Where this check fires
This check runs on every scheduled scan against your GCP account. Findings appear at Cloud Security → Findings filterable byCheck ID = cloudstorage_bucket_soft_delete_enabled. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to GCP checks