How to Protect Your Backups from Ransomware
Why ransomware targets backups first, and the specific steps to make your backup strategy ransomware-proof.
Modern ransomware does not just encrypt your files — it actively hunts for your backups. Connected external drives, mapped network shares and even some cloud sync folders are targeted before the main encryption begins. If your backups are not specifically protected, they are not protection at all.
How ransomware attacks backups
- Connected external drives — a USB backup drive that stays plugged in is just another drive letter. Ransomware encrypts it alongside your internal drive.
- Mapped network shares — NAS devices and shared folders that appear as drive letters are encrypted through the network.
- Cloud sync folders — if Dropbox or OneDrive syncs encrypted files up before you notice, the cloud copy is replaced with the encrypted version. (Most services keep versioning history, which helps — see below.)
- Shadow copies — many ransomware variants delete Windows Volume Shadow Copies (VSS) as one of their first actions, removing the built-in "Previous Versions" recovery option.
Seven steps to ransomware-proof your backups
1. Disconnect your backup drive after each backup
The simplest defence. If the drive is not connected, it cannot be encrypted. Plug it in, run the backup, unplug it. This single habit defeats the most common attack vector.
2. Use a cloud backup with versioning
Services like Backblaze, iDrive and Carbonite keep previous versions of your files. If ransomware encrypts a file and the encrypted version gets backed up, you can roll back to the last clean version. Check that your service retains versions for at least 30 days — some ransomware waits weeks before activating.
3. Keep one immutable or air-gapped copy
An immutable backup cannot be modified or deleted for a set retention period, even by an administrator. Cloud services like Backblaze B2 and AWS S3 offer Object Lock for this. At home, a disconnected external drive stored in a drawer serves the same purpose: it is air-gapped from your network.
4. Use backup software, not sync
Sync services (Dropbox, OneDrive, Google Drive) mirror changes — including encryption. Dedicated backup software creates versioned snapshots at scheduled times, so a clean version exists even after the working copy is compromised.
5. Enable Windows Controlled Folder Access
Windows Defender includes Controlled Folder Access, which blocks untrusted applications from modifying files in protected folders (Documents, Pictures, Desktop by default). It is not perfect, but it adds a layer of defence. Enable it in Windows Security → Virus and threat protection → Ransomware protection.
6. Separate your backup credentials
If your NAS or backup service uses the same username and password as your main account, ransomware that steals your credentials can access the backups too. Use a unique, strong password for your backup service, and enable two-factor authentication where available.
7. Test your restore process
A backup that is technically clean but takes three days to restore is cold comfort during a ransomware incident. Know exactly how to restore, how long it takes, and what you need (boot media, licence keys, credentials). Write it down and store the instructions with the backup.
What to do if ransomware hits
- Disconnect from the network immediately — unplug Ethernet, turn off Wi-Fi. This stops the spread.
- Do not pay the ransom. The NCSC and CISA both advise against it. Payment funds criminal operations and there is no guarantee of decryption.
- Check nomoreransom.org — law enforcement agencies maintain free decryption tools for many known ransomware families.
- Restore from your most recent clean backup. If you followed the steps above, you have one.