In short
When ransomware has encrypted or deleted Veeam backups, or compromised the backup server, the damage pattern decides the next step. If copies survive on a hardened repository, immutable object storage or tape, recovery runs through a new, clean backup server that imports those backups. If the repository files themselves (.vbk, .vib, .vrb) are encrypted or the volume was wiped, backup chains or parts of them can sometimes be reconstructed at file system and disk level – provided no jobs or retention runs overwrite what is left.
The situation in one sentence
Once ransomware has hit your Veeam environment, the first question is not "How do I restore?" but "What still exists – and am I about to destroy it myself?". This page walks through the typical damage patterns around Veeam Backup & Replication and the options each one leaves open. The fundamentals – choosing a clean restore point, clean rooms and restart order – are covered in Backup recovery after ransomware and are not repeated here.
Why attackers go straight for the Veeam server
For an attacker, the backup server is not a side target. It is the lever for extortion, for four reasons.
1. The credentials store. Veeam keeps credentials for hypervisors, servers, repositories and cloud storage in its configuration database. CVE-2023-27532 allowed an unauthenticated user on the backup infrastructure network to obtain encrypted credentials from that database via the service on TCP port 9401.
2. Code execution on the backup server. CVE-2024-40711 is a critical remote code execution flaw (CVSS 9.8) in Veeam Backup & Replication up to build 12.1.2.172, fixed in version 12.2.
3. Deleting rather than encrypting. Whoever controls the console needs no malware to wipe backups. Veeam itself warns that administrator rights on the backup server allow an attacker to erase most production data, backups and replicas.
4. Domain membership. A backup server joined to the production domain falls with Active Directory. Veeam therefore recommends a separate management domain in its own AD forest for larger environments and a separate workgroup for smaller ones.
Which damage pattern are you looking at?
Before touching anything, be clear about what exactly is affected. Veeam stores backups as file chains: .vbk files are full backups, .vib and .vrb are forward and reverse incrementals, .vbm holds metadata. If one link in the chain is missing, you cannot roll back to the restore points that depend on it.
Backup files in the repository encrypted
The repository folder holds files with an unfamiliar extension next to a ransom note. This is typical for Windows repositories, SMB shares and NAS targets that were writable from the compromised network. How the files were encrypted matters: many families encrypt large files only in sections, and Frag, for instance, requires an encryption percentage at launch.
Restore points or jobs deleted
The console shows fewer restore points than expected, jobs are missing, or entire backups have vanished. The files were deleted through Veeam or directly in the file system. As long as nothing new has been written to the volume, the data is often still on disk.
Repository volume deleted or formatted
The volume is empty or reformatted, the partition is gone, or on a NAS the storage volume was removed. That is not automatically total loss: a quick format usually overwrites only management structures, not the payload data.
Configuration database destroyed, backups intact
The backup server is encrypted or rebuilt, but the repository is untouched. This is the best of the bad cases – the backups can be imported on a new server (see below).
Backups intact, backup server compromised
Everything appears to be there, but the attackers had access to the server. Treat every stored credential as burned, and assume retention, encryption settings or jobs may have been tampered with. The server is evidence, not a foundation for the rebuild.
Copies out of reach survived
A hardened repository, object storage with active immutability, a backup copy at another site or tapes in a safe are often untouched. That only holds if the protection actually worked – check it, do not assume it.
First steps – and what not to do
Short, in this order, and agreed with your incident response team:
- Delete nothing, clean up nothing. Do not remove encrypted files, do not run "Delete from disk", do not purge orphaned backups.
- Stop the jobs. Every successful run applies retention and removes the earliest restore point.
[10] If attackers shortened retention, the next run deletes exactly the old, clean points. Veeam itself notes that when a job runs after a long pause, all older points are removed down to the minimum of three. [10] - Mind background retention. Veeam also runs background retention every day at 00:30, and it can delete orphaned backups entirely based on their last known settings.
[11] Whether services or the server are stopped is the IR team's call – volatile evidence matters too. - Do not rebuild the backup server on top of the original volumes. No reinstall on a server whose disks also hold the repository. No initialising, formatting or repartitioning. If you need a new server, use new hardware or a new VM with new disks.
- No maintenance on the repository. No rescans, compacting, health checks or file system repairs (
chkdsk,xfs_repair) before images exist. Anything that writes to the repository or changes the catalogue can overwrite traces. - Secure the configuration backup. The
.bcofiles from the configuration backup sit in a repository. Copy them away read-only before retention removes them. Only encrypted configuration backups contain the stored credentials.[17] - Check immutable copies – do not touch them. On a hardened repository, backup files cannot be modified or deleted during the immutability period, but they can be copied.
[12] Check when immutability expires and whether that leaves enough time until the planned restore. - Image the disks. For encrypted or wiped repositories, sector-level images come first, analysis second. More in Forensic evidence preservation after a cyberattack.
Which route fits your situation?
Hardened repository, object storage and tape in context
Hardened repository (Linux). Veeam sets an immutability attribute on the Linux host, managed by a dedicated service running as root.
Object storage with immutability. For S3, S3-compatible storage, Azure, Google Cloud and other targets, immutability blocks deletion by retention and by manual action, and Veeam explicitly lists the case of an attacker shortening retention.
Four-eyes authorization. With four-eyes authorization enabled, deleting backups, removing repositories and shortening immutability need a second approval. Veeam notes, however, that this does not help once the backup server itself is compromised.
Tape. Tapes from the safe are often the last untouched copy. WORM tapes cannot be overwritten.
Restoring when backups are intact
If backup files or immutable copies are undamaged, the path is fairly clear – but not via the old server.
- New backup server: on fresh hardware or in an isolated environment, outside the production domain, on a current, patched build.
- Bring back the configuration: Veeam's documented route after a backup server failure is to reinstall and restore the configuration from the configuration backup.
[16] After an attack, weigh whether to adopt a configuration the attackers may have altered. Stored credentials must be rotated either way. - Import backups: Without a configuration, backups can be brought in via "Import Backup" – fastest via the
.vbmfile, otherwise via the.vbk. All incremental files must sit in the same folder as the full backup.[18] - Without a Veeam server: The Extract Utility recovers machines directly from backup files on Windows and Linux, with no Veeam Backup & Replication required.
[19] - Check restore points: Secure Restore scans restore points for malware before restoring – depending on version with Veeam Threat Hunter, an antivirus engine or YARA rules – for operations including Instant Recovery and Entire VM Restore.
[20] If something is found, Veeam either aborts or restores with restrictions, depending on settings. [21] A clean scan proves nothing, though: no signature scanner flags a rogue account like "point". The forensic timeline determines which point predates the initial compromise. - Restore in isolation: first into a separate network, never straight into production.
Reconstruction when backups are encrypted or deleted
This is where data recovery starts. What is possible depends on the damage pattern and on the file system beneath the repository.
Partially encrypted backup files
If a .vbk is encrypted only in sections, the rest stays readable. From the unencrypted regions it may be possible to recover virtual disks, file systems and individual files of the protected machines. If the full backup is completely encrypted, the dependent incrementals alone are usually of limited use. Checking whether a decryptor exists for the ransomware family still belongs at the start – see Ransomware decryption.
Deleted backup files and volumes
- NTFS: Deleted files can often be mapped via remnants of the Master File Table and free space, as long as nothing has been overwritten.
- ReFS: Windows repositories often use ReFS with block cloning, which Veeam calls "Fast Clone".
[22] Synthetic full backups reference the same data blocks as older files. That saves space but makes reconstruction harder, because blocks belong to several files. - XFS: Linux repositories, including hardened repositories, require XFS with reflink for Fast Clone.
[22] After deletion or reformatting, metadata and extents can sometimes be partially restored. - RAID and NAS underneath: If the repository sits on RAID or a NAS, the array must first be reconstructed virtually – no rebuild on the original. For NAS repositories, see NAS data recovery after ransomware.
At file system level, DATA REVERSE offers recovery of operating and file systems such as NTFS, ReFS and XFS (in German) (external link); for complete server and RAID systems, server data recovery (in German) (external link).
Tapes
Damaged, partially overwritten or no longer catalogable tapes can sometimes be read at drive level. That is a specialist field with dedicated hardware; DATA REVERSE offers magnetic tape data recovery (in German) (external link).
Damage pattern → option
| Damage pattern | First option | If that fails |
|---|---|---|
| Configuration database gone, repository intact | New server, configuration backup or Import Backup | Extract Utility directly on the backup files |
| Backup server compromised, backups intact | Preserve server as evidence, new server, rotate credentials | Pick restore point from the timeline, Secure Restore, isolated restore |
| Hardened repository / object lock untouched | Check immutability expiry, import copies | Review host access; if in doubt, recover the primary copy in parallel |
.vbk/.vib/.vrb partially encrypted | Check for a decryptor, image the repository | Reconstruct unencrypted blocks and guest file systems |
| Restore points deleted | Stop jobs and retention, image disks | File system reconstruction (NTFS, ReFS, XFS) |
| Repository volume formatted or deleted | No further writes, image disks | Reconstruct partition, file system and RAID/NAS if present |
| Only tapes left | Catalogue tapes on a new server | Specialist reading of damaged tapes |
When Veeam is only part of the problem
An attack on Veeam rarely comes alone. Hypervisors and databases are usually hit as well:
- Encrypted VHDX files and Cluster Shared Volumes: Hyper-V data recovery after ransomware
- Proxmox VE and Proxmox Backup Server: Proxmox data recovery after ransomware
- VMware: Ransomware on VMware ESXi
- SQL Server, Exchange and line-of-business applications: Database recovery after ransomware
How data recovery, decryptors and backups fit together is shown in the ransomware data recovery overview. The families that exploited Veeam flaws are profiled in the database: Akira and Fog.
Request an analysis
If your Veeam backups are encrypted or deleted and no immutable copy is left, an analysis of the repository disks shows what can still be reconstructed. DATA REVERSE handles data recovery from servers, RAID, NAS, file systems and tapes; containment and forensics belong to incident response.
Data recovery by system
- NAS Encrypted by Ransomware: Data Recovery for NAS Systems
- QNAP NAS Encrypted by Ransomware: Data Recovery and First Steps
- Synology NAS Encrypted by Ransomware: Data Recovery and First Steps
- Hyper-V After Ransomware: Recovering Encrypted VHDX Files and VMs
- Proxmox VE after Ransomware: Recovering VMs, ZFS and Backups
- Recovering SQL Server, Exchange & Databases After Ransomware
- DATEV Data Encrypted by Ransomware: Recovery and First Steps
- Ransomware on VMware ESXi: Attack Paths, First Response and Recovery
- Ransomware on Servers, NAS, RAID or VMware: What Can Be Recovered?
Frequently asked questions
Can ransomware encrypt Veeam backups?
Yes, if the repository is reachable and writable for the attackers, for example a Windows volume on the backup server, an SMB share or a NAS. The backup files are then encrypted like any other file. Copies with active immutability, such as a hardened repository or immutable object storage, and tapes stored offsite are protected as long as those safeguards were not bypassed.
How do I get my backups back if the Veeam backup server itself is encrypted?
Backup files do not depend on the backup server. On a freshly installed, clean server you can import backups or restore the configuration from a configuration backup. Veeam's Extract Utility can also recover machines straight from backup files without Veeam Backup & Replication. All of this requires the backup files themselves to be intact.
Why should backup jobs stop running after the attack?
Every job run applies the retention policy and removes older restore points. If attackers shortened retention, a single run can delete exactly the restore points created before the compromise. Veeam also runs a daily background retention. Whether jobs, services or the whole server are stopped should be agreed with the incident response team.
Can deleted .vbk files be recovered?
Sometimes. If backup files were only deleted or the volume was quick-formatted, the data blocks often remain until they are overwritten. Whether a usable backup chain can be rebuilt depends on the file system (NTFS, ReFS, XFS), any RAID or NAS underneath and how much has been written since. Only an analysis of disk images can answer that.
Is the last restore point before encryption safe?
Not automatically. Attackers are often in the network for days or weeks beforehand, so backdoors or rogue accounts may have been backed up too. The right restore point follows from the forensic timeline, and the first restore should happen in an isolated environment with a malware scan.
Does a hardened repository reliably protect against ransomware?
It protects backup files from modification and deletion for the configured period, even if the backup server is compromised, because the credentials for the repository are not stored there. Protection ends if attackers gain root on the Linux host itself or if the immutability period was too short. A hardened repository therefore does not replace an offline copy.
Related ransomware profiles
Read next
- Backups after Ransomware: Why “We Have a Backup” Does Not Mean “We Can Recover”
- Getting Immutable Backups Right: What Immutable Storage Does Against Ransomware – and What It Doesn't
- Ransomware on VMware ESXi: Attack Paths, First Response and Recovery
- Forensic Evidence Preservation after a Cyberattack: Secure the Evidence Before It Disappears
Sources and further reading
- [1]Veeam KB4424 – CVE-2023-27532 (Veeam Backup & Replication) veeam.com
- [2]Veeam KB4649 – Security Bulletin September 2024 (including CVE-2024-40711) veeam.com
- [3]CISA – #StopRansomware: Akira Ransomware (AA24-109A) cisa.gov
- [4]BleepingComputer – Akira and Fog ransomware now exploiting critical Veeam RCE flaw (10/2024) bleepingcomputer.com
- [5]Sophos X-Ops – Veeam exploit seen used again with a new ransomware: Frag sophos.com
- [6]BleepingComputer – Cuba ransomware uses Veeam exploit against critical US organizations (08/2023) bleepingcomputer.com
- [7]Veeam Help Center – Securing Backup Infrastructure helpcenter.veeam.com
- [8]Veeam Help Center – General Security Considerations helpcenter.veeam.com
- [9]Veeam Help Center – Backup Chain (VBK, VIB, VRB, VBM file types) helpcenter.veeam.com
- [10]Veeam Help Center – Short-Term Retention Policy helpcenter.veeam.com
- [11]Veeam Help Center – Background Retention helpcenter.veeam.com
- [12]Veeam Help Center – Hardened Repository helpcenter.veeam.com
- [13]Veeam Help Center – How Immutability Works (Hardened Repository) helpcenter.veeam.com
- [14]Veeam Help Center – Immutability for Object Storage Repositories helpcenter.veeam.com
- [15]Veeam Help Center – Four-Eyes Authorization helpcenter.veeam.com
- [16]Veeam Help Center – Managing Configuration Database helpcenter.veeam.com
- [17]Veeam Help Center – Creating Encrypted Configuration Backups helpcenter.veeam.com
- [18]Veeam Help Center – Importing Backups Manually helpcenter.veeam.com
- [19]Veeam Help Center – Extract Utility helpcenter.veeam.com
- [20]Veeam Help Center – Secure Restore helpcenter.veeam.com
- [21]Veeam Help Center – How Secure Restore Works helpcenter.veeam.com
- [22]Veeam Help Center – Fast Clone helpcenter.veeam.com
- [23]Veeam Help Center – Cataloging Tapes helpcenter.veeam.com
- [24]Veeam Help Center – WORM Tapes helpcenter.veeam.com