Check ID: cloudstorage_bucket_versioning_enabled
Provider: GCP
Service: cloudstorage
Severity: MEDIUM
Categories: resilience
Resource type: storage.googleapis.com/Bucket

What this check verifies

Cloud Storage buckets with Object Versioning keep prior object generations. The finding indicates whether the bucket’s versioning setting is enabled.

Risk

Without Object Versioning, deleted or overwritten objects can’t be restored, reducing availability and integrity. Compromised credentials or faulty processes can irreversibly delete or corrupt data, enabling ransomware-style destruction, accidental loss, and weakening forensic reconstruction.

Recommendation

Enable Object Versioning on buckets holding important data. Pair with lifecycle rules to expire noncurrent versions and control cost. Enforce least privilege for delete/overwrite actions, and add bucket retention policies or object holds for defense-in-depth and auditability.

Remediation

gcloud storage buckets update gs://<BUCKET_NAME> —versioning

References

Where this check fires

This check runs on every scheduled scan against your GCP account. Findings appear at Cloud Security → Findings filterable by Check ID = cloudstorage_bucket_versioning_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