Ransomware does not delete your files. It overwrites them, encrypted, and asks you to pay for the key. If your storage keeps only the latest version of everything, the overwrite is the whole story. If it keeps history, the attack loses most of its leverage - the previous versions are sitting there, from before the malware arrived.
Why sync makes it worse before versioning makes it better
A sync client cannot tell a legitimate edit from a malicious one; propagating changes is its entire job. When malware encrypts a synced folder, the client sees thousands of modified files and uploads them all, replacing the good copies with ciphertext at the speed of your connection. People discover this the hard way: the cloud copy they were counting on is a faithful mirror of the damage.
Version history changes the ending. The upload of an encrypted file becomes a new version, and the clean version it replaced is retained rather than destroyed. The attack that was going to cost you everything now costs you a tedious afternoon of restoring.
The same mechanism, on an ordinary Tuesday
Ransomware makes the dramatic case, but versioning earns its keep on mundane failures, which are far more frequent:
The overwrite. You saved the wrong document over the right one, or an export replaced an original. The previous version is one click back.
The bad edit discovered late. A spreadsheet quietly broken three weeks ago, noticed today. History lets you walk back to the last good state instead of reconstructing it.
The collaborative collision. Two people, one file, second save wins. With versions, “wins” stops meaning the other person’s work is gone.
We keep prior versions when a file is overwritten, and deleted files go to a recoverable trash rather than vanishing - restoring either is a click in the file’s history, not a support ticket.
Versions and trash are different protections
It is worth being precise, because providers blur them.
Versioning protects against bad changes: the file still exists, the current contents are wrong.
Trash protects against deletion: the file is gone from its folder, recoverable for a window.
A ransomware incident involves both - files overwritten, sometimes originals deleted - so you want both, and you want to know each one’s retention window before the day you need it. Discovering the window was seven days on day eight is a bad way to learn it.
What to check in whatever you use today
Five minutes of honest audit, for any storage or backup product:
Does it version at all, or only mirror the latest state? A mirror inherits every failure above.
How far back can you go? A retention window shorter than your time-to-notice is a window that will miss. Three weeks is a realistic time-to-notice for a quiet corruption.
Can you restore in bulk? Recovering one file is a click; recovering forty thousand through a one-at-a-time interface is not a plan. This is the question ransomware specifically stresses.
Is history protected from the client? If malware with your local credentials can purge versions through the same channel it used to encrypt, the history was decoration. Deliberate separation here - versions managed server-side, not deletable by a sync client - is what makes the undo real.
Would you notice? An audit trail showing a burst of thousands of modifications is how you spot the start time of an incident, which tells you which version to restore.
Versioning is one layer, not the plan
History undoes bad changes to files the storage holds. It does not help with files that never had a second copy, and it is weaker comfort if the account itself is compromised - which is why it sits alongside, not instead of, a genuinely separate backup copy and the unglamorous account hygiene that prevents the common attacks: two-factor authentication, unique passwords, and scoped credentials for anything automated.
But of all the layers, versioning is the one that costs you nothing on the day you set it up and pays for everything on the day something goes wrong. If your current storage keeps only the present tense, that is the gap to close first.
Frequently asked questions
Does cloud storage protect against ransomware?
Plain sync does not, because the client uploads the encrypted files like any other change. Storage that keeps version history does help: the clean copies from before the attack remain available to restore.
What is file versioning in cloud storage?
When a file is overwritten, the previous state is kept rather than destroyed, so you can step back to an earlier version. It undoes overwrites, bad edits and ransomware damage alike.
How do I recover files after a ransomware attack?
Clean the infected machine first, then restore versions from before the attack started. An audit trail showing the burst of modifications tells you the exact time to restore to.