Immutable Backups Against Ransomware: What Actually Stops an Attacker Deleting Them
In most ransomware attacks we see, the attackers spend days inside the network before they encrypt anything, and one of the things they do in that time is find the backups and delete them. When the encryption starts, the business discovers that the backup server, the NAS and the backup copies on the domain are gone or encrypted too.
An immutable backup is the answer to that: a copy that cannot be changed or deleted until its retention period ends, even by someone with administrator rights. This guide explains the main ways to get one, the gaps that attackers use to get around them, and how to check that yours would really survive.
The main ways to make a backup immutable
A hardened Linux repository. Veeam Backup & Replication can write backups to a Linux server configured as a hardened repository, where each backup file is locked with the Linux immutable flag for a set number of days. The Veeam server cannot delete or change those files during that time, so stealing the Veeam administrator password is not enough.
Object lock in cloud or S3-compatible storage. Backups written to object storage with object lock switched on cannot be deleted before the lock expires. In compliance mode nobody can shorten the lock, not even the account owner; in governance mode a user with special rights can, which makes it weaker against an attacker who has those rights.
NAS snapshots. Some NAS systems, such as Synology from DSM 7.2, can make snapshots immutable for a set period. That protects the shares on the NAS itself, including against ransomware running on a PC that encrypts them over the network.
Offline copies. A tape or disk that is removed and kept unplugged is immutable in the simplest way: nothing on the network can reach it. It is slower to restore from and depends on someone rotating it, but it does not depend on any software setting being right.
How attackers get around immutability
Immutability protects the files, not the machine they sit on. If the attackers can log in to the hardened repository itself as root, through SSH left open, a reused password, or the server's remote management card (iDRAC, iLO, IPMI), they can wipe the disks or reinstall the server, and the locks go with it. A hardened repository should have SSH switched off, its own local accounts, and no domain membership.
Time is another way in. Immutability periods are measured by the clock, so a repository whose time can be pushed forward by a compromised time server may release its locks early. The storage underneath can also be deleted outside the backup software: a SAN volume, a virtual disk on a hypervisor the attackers control, or a cloud account whose main login was stolen. And immutability that is too short does not help if the attack goes unnoticed for longer than the retention period.
How to check that yours would survive
Ask, for each backup copy: which accounts could delete it, and are any of them domain accounts or the same passwords used elsewhere? Could someone with full control of the Windows domain reach the repository, its management card or its storage? How many days does the lock last, and is that longer than an attack could go unnoticed?
Then test it. Try to delete a locked backup with the backup administrator account and confirm that it fails, and restore a full server and a database from the immutable copy at least twice a year, timing how long it takes. A copy that cannot be deleted is only useful if it also restores.
When the backups were reached anyway
If the attack has already happened and the backups were encrypted or partly deleted, the data is not necessarily lost. Ransomware often encrypts large backup files only in part, and backup files can be read directly when the backup software will not open them. In one case we rebuilt a 466 GB server disk from an Akira-encrypted 43 GB Veeam backup. Deleted backup files on a repository's disks can also sometimes be recovered, if nothing has been written over them.
Questions and answers
What is an immutable backup?
A backup copy that cannot be changed or deleted until its retention period ends, even by an administrator. It is the main protection against ransomware attackers who delete backups before encrypting.
Is a backup on a NAS immutable?
Not by default. A NAS share that the backup server or users can write to can be encrypted or deleted like any other share. Immutable snapshots, where the NAS supports them, or a copy the network cannot reach, are needed.
Can attackers delete an immutable backup?
Not through the backup software, but they can if they get control of the server or storage underneath: root access to the repository, its remote management card, the storage system or the cloud account. Those have to be protected as well.
How long should backups stay immutable?
Longer than an attack could go unnoticed in your network. Many businesses use at least 14 to 30 days for the immutable copy, with longer retention on an offline copy.
Backup and recovery services →
Facing this problem? Contact us now.
We have already solved 656+ ransomware and data recovery cases: encrypted and corrupted SQL Server, Oracle and MySQL databases, Tally, Busy and Marg ERP data, Veeam backups, VMware and Hyper-V virtual machines, RAID and NAS. Send us the details and we tell you what we can recover.
- ✓ Free assessment before you pay anything
- ✓ No data, no charge
- ✓ NDA on request
Email: info [at] asittech.com · Mon–Fri, 9:00–18:00 IST