In short
When ransomware hits a Proxmox VE host or a Proxmox Backup Server, the recovery path depends on the storage backend: qcow2 and raw files on directory, NFS or SMB storage, zvols on ZFS, volumes on LVM-thin or Ceph. What matters most is to stop writing to the pools, pause garbage collection and pruning on the backup server, and reconstruct only from images. Whether deleted snapshots, chunks or encrypted disk images can still be used can only be established by analysis.
Proxmox and ransomware: what this page covers
Proxmox VE is a Debian-based virtualisation platform, and that is exactly why it interests ransomware operators. Once someone has root on a host, they don't need a hypervisor exploit. Ordinary Linux tools are enough to encrypt disk images, delete volumes and wipe snapshots. If the Proxmox Backup Server (PBS) is reachable as well, the backups go down with everything else.
CISA explicitly names hypervisors as a target of ransomware actors..qcow2 extension and encrypt them in place without shutting the VMs down first.
This page deals with the Proxmox-specific side of an incident: which storage backend produces which kind of damage, what must not happen after the attack, and how ZFS pools, LVM-thin volumes, qcow2 files and PBS datastores can be reconstructed. Attack paths and hypervisor hardening in general are covered in our guide to ransomware on VMware ESXi; the broader picture is on the ransomware data recovery page.
Storage backends: where your VMs actually live
The first question after an attack isn't "which ransomware?" but "which storage?". Proxmox VE keeps all storage definitions in a single file, /etc/pve/storage.cfg.
| Backend (type) | How VM disks are stored | Typical damage after ransomware | Reconstruction approach |
|---|---|---|---|
Directory (dir), e.g. local at /var/lib/vz | qcow2, raw or vmdk files under images/<VMID>/ | Files encrypted or renamed, as on any Linux file server | Analyse the file system (ext4, XFS, ZFS), extract unencrypted regions of the images |
LVM-thin (lvmthin), default local-lvm | Thin volumes as block devices in a thin pool | Volumes overwritten, removed (lvremove) or pool metadata destroyed | Reconstruct thin pool metadata and its copies, then the guest file systems |
ZFS (zfspool), e.g. local-zfs | zvols (vm-<VMID>-disk-N) for VMs, datasets for containers | zvols encrypted, snapshots removed with zfs destroy, pool destroyed | Exploit copy-on-write and older transaction states, work read-only |
NFS / SMB (nfs, cifs) | qcow2 or raw files on a network share | Encryption from the host or directly on the NAS or file server | Recover on the storage system itself, see NAS or server recovery |
| Ceph RBD / CephFS | Block or file objects distributed across several nodes | Images or pools deleted, objects encrypted | Analysis at OSD level, very labour-intensive; secure every node |
| iSCSI / FC (often with LVM on top) | SAN LUNs, frequently carrying an LVM volume group | LVs encrypted or removed, LUN overwritten | Image the LUN, reconstruct LVM metadata and guest file systems |
When the disk images sit on a NAS, the NAS itself is often where the real work is. See NAS data recovery after ransomware and our guide to ransomware on servers, NAS, RAID and VMware.
What an attacker with root typically does
With root on a Proxmox node, an attacker has the same commands you have as an admin. Common patterns:
- Encrypting disk files: qcow2 and raw files on directory, NFS or SMB storage are encrypted like any other file. Depending on the family, large images are often only encrypted in sections.
- Hitting block devices directly: zvols under
/dev/zvol/…and LVM volumes under/dev/<vg>/…are plain block devices to root and can simply be overwritten. - Wiping snapshots:
zfs destroyremoves snapshots, and with-ror-Rit does so recursively, dependants included.[12] On LVM-thin, lvremovedeletes volumes and snapshots and hands their blocks back to the pool.[13] - Deleting backups: Local vzdump archives live under
/var/lib/vz/dump/by default[3] and take seconds to delete. If the host holds PBS credentials with delete rights, backup snapshots on the backup server can go too. - Using the cluster as a lever: The configuration under
/etc/pveis replicated to every cluster node.[2] Root on one node usually means access to the whole cluster.
First steps after an attack on Proxmox
Short, and in this order. Every step should keep options open, not close them.
- Isolate, don't delete: Cut the management, cluster and storage networks off from the rest. Whether hosts get powered off is the incident response team's call: it stops ongoing encryption but destroys evidence held in memory.
[18] - Seal off the backup server: Disconnect PBS from the host network. Disable the hosts' credentials and API tokens on PBS as soon as the incident response team agrees.
- Pause garbage collection and pruning: Clear the GC schedule on PBS and disable prune jobs.
[6] Alternatively, put the datastore into read-only maintenance mode, which allows read operations only. [6] - Stop sync jobs: Sync jobs with "remove vanished" can carry deletions over to a second system.
[7] Pause them until the situation is clear. - Halt replication: Proxmox storage replication ships ZFS snapshots to other nodes, every 15 minutes by default.
[4] The target node may still hold older states. Stop replication before it pulls the encrypted state across. - Save the keys: If PBS encryption is enabled, the key sits on the host at
/etc/pve/priv/storage/<STORAGE-ID>.enc, and without it the backups are inaccessible.[1] Copy it (and the master key, if one exists) while you still can. - Save the configuration:
/var/lib/pve-cluster/config.dbholds the cluster configuration, VM definitions included.[2] A copy makes it much easier to rebuild VM settings later. - Record the state: Output of
zpool status,zfs list -t all,lvs -a,pvesm status, affected VMIDs, file extensions, ransom notes, time of the first anomaly. - Take images: Before anything is repaired, create sector-level images of every disk in the affected hosts and in PBS. From then on, work on copies only. Our guide to forensic evidence preservation explains how.
Don'ts: commands that destroy recoverable data
| Don't | Why |
|---|---|
zfs rollback on the original pool | Discards every change after the snapshot and destroys newer snapshots. Clone or replicate to a copy first. |
zpool upgrade | Enables new features; afterwards the pool is no longer accessible on systems without that support. |
zpool scrub on redundant pools "just to be safe" | On mirror, RAIDZ or dRAID pools a scrub repairs any damage it finds automatically, so it writes. |
zpool import -F, -X or -T on the original | Recovery mode irrevocably discards the last transactions; OpenZFS describes -X and -T as a last resort. |
lvconvert --repair on the thin pool | Writes new metadata and swaps it in, and it doesn't always succeed. |
qemu-img check -r on encrypted or damaged qcow2 files | Repairs rewrite the L1/L2 and refcount tables. Copies only. |
| Reinstalling Proxmox onto the same disks | The installer repartitions the target disks and creates new pools or volume groups. |
| Starting garbage collection on PBS | Permanently removes chunks that nothing references any more. |
| Restoring over the existing VM | Proxmox advises always restoring tests into a new guest, never over an existing one. |
If a ZFS pool has to be imported for inspection at all, do it read-only: setting the readonly=on property at import time brings the pool in read-only mode.-N option imports it without mounting any file systems.
Proxmox Backup Server: what ransomware does there
PBS stores backups deduplicated. A datastore is a directory on ext4, XFS or ZFS with a .chunks subdirectory in which data blocks are filed by checksum.
What PBS protects by design
PBS does not rewrite data for existing blocks, so a compromised Proxmox VE host cannot alter existing backups through the backup interface.Datastore.Backup privilege only allows creating backups, not deleting or modifying existing ones.
Where the protection ends
- Over-broad permissions: If the host's token has prune or modify rights, an attacker can use it to delete backup snapshots.
- Shared admin accounts: If PBS is managed with the same credentials as the hosts, or hangs off the same directory, one break-in covers both.
- Root on PBS itself: Whoever takes over the backup server can empty datastores, delete file systems or overwrite the disks. At that point only an independent second site or tape helps.
- Push sync with delete rights: For sync jobs in push direction, an account with
Remote.DatastoreModifycan remove entire namespaces on the target regardless of ownership.[7]
Prune, garbage collection and why timing matters
Pruning removes only a backup snapshot's metadata: manifest, indexes, blobs, log and notes. The chunks stay put until a garbage collection run removes them.
For recovery, this means: if backup snapshots have been deleted, their data blocks are still in .chunks for now. The next GC run may remove them. So clear the GC schedule, disable prune jobs or switch the datastore to read-only maintenance mode.
What actually helps in an incident
| Measure | Effect during an attack |
|---|---|
One API token per host or cluster, limited to Datastore.Backup on one namespace | A compromised host can write backups but not delete them |
| Pruning as a job on PBS rather than delete rights for clients | Deletion only happens server-side |
| Namespaces per cluster or tenant | Permissions can be scoped tightly |
| A second PBS at another site that pulls via sync, without "remove vanished" | Deletions on the primary are not mirrored |
| Tape backup as a second medium, tapes stored off-site | A copy beyond the reach of any network |
| Separate administration for PBS and Proxmox VE | One stolen admin account is not enough for both |
| Encryption key and master key kept elsewhere | Backups remain usable after losing the host |
| Regular test restores into new guests | Encrypted or incomplete backups show up early |
Immutability basics and common mistakes are covered in our guide to immutable backups; checks before a restore are covered in backup recovery after ransomware. If the PBS tapes themselves are damaged or unreadable, tape data recovery at DATA REVERSE (in German) (external link) is an option.
Reconstruction: what is technically possible
Without a clean backup, the actual data recovery starts from images. How far it gets depends heavily on the backend.
ZFS: copy-on-write and older transaction states
ZFS doesn't overwrite data in place; it writes changed blocks to new locations (copy-on-write).zpool import relies on when it discards the last few transactions to open an earlier consistent state.
That defines the approach: images of the pool disks are searched for older pool states that still reference destroyed snapshots, datasets or unencrypted zvol blocks. The more that was written after the attack, the more freed blocks have already been reused. A pool that kept running for days after the attack offers far less than one that was taken out of service immediately.
The RAID layer below matters too. Proxmox advises against running ZFS on a hardware RAID controller with its own cache management.
LVM-thin: the metadata is the key
A thin pool consists of a data volume and a metadata volume. The metadata tracks which data blocks are used by which thin volumes.<pool>_metaN, and each volume group keeps a spare metadata volume (pmspare).
qcow2 and raw: structure of the disk images
A qcow2 file starts with a fixed header, followed by a two-level table (L1/L2) that maps guest clusters to clusters in the file, plus refcount tables. Internal snapshots have their own L1 tables.
A second angle: if an encrypted copy was written as a new file and the original deleted, the original blocks may still be present in the underlying file system.
Ceph, NFS and iSCSI
With Ceph, every disk is spread across many objects on several nodes. Reconstruction needs images of every OSD disk involved and is correspondingly laborious. With NFS, SMB and iSCSI, the problem usually lives on the storage system itself, so the NAS, the file server or the SAN LUN is the starting point, not the Proxmox host.
Damage pattern and recovery path
| Damage pattern | First recovery path | Limits |
|---|---|---|
| qcow2/raw files partially encrypted | Extract unencrypted regions, rebuild qcow2 tables, recover guest file systems | Encrypted sections are lost without the key |
| qcow2/raw fully encrypted | Check for a decryptor, look for deleted originals in the host file system | Very limited without original remnants or the key |
| ZFS snapshots destroyed, zvols encrypted | Search images for older pool states, check replication targets | Depends on how much was written after the attack |
| ZFS pool destroyed or won't import | Rebuild the pool structure from images of all disks | No import experiments on the original |
| LVM-thin volumes removed | Analyse older metadata states and archive copies | Freed blocks may have been reused |
| PBS snapshots deleted, GC not yet run | Stop GC, reconstruct index and manifest files | Without indexes, chunks can't be mapped unambiguously |
| PBS datastore or disks destroyed | Check the remote sync target or tape, otherwise file system recovery on the datastore | Laborious without a second copy, outcome open |
| Encrypted PBS backups, key lost | Recover the key from host images, password manager or master key | Unreadable without a key |
When rebuilding VM definitions, the copy of config.db is useful. VM configurations live at /etc/pve/nodes/<node>/qemu-server/<VMID>.conf.
Proxmox compared with Hyper-V, ESXi and Veeam environments
Anyone running several platforms, or in the middle of a migration, often faces mixed damage. The approaches differ mainly at the storage layer:
- On VMware ESXi, VMDK files sit on VMFS. Attack paths and immediate steps are covered in our guide to ransomware on VMware ESXi.
- With Hyper-V, it is about VHDX files on NTFS or ReFS, often in a cluster with CSV. See Hyper-V after ransomware.
- If Proxmox VMs are also backed up with Veeam, the repository and backup server are targets in their own right. See Veeam backup after ransomware.
The common rule: images first, repairs later. DATA REVERSE has general information on recovering virtual systems (in German) (external link) and on Linux data recovery (in German) (external link).
Incident response and data recovery in Proxmox incidents
A compromised Proxmox cluster is almost never an isolated problem. The attacker needed root on the host, whether through stolen credentials, a web interface exposed in the wrong network, a compromised admin workstation or a connected directory login. Those questions belong to incident response: attack path, affected accounts, data exfiltration, a safe restart.
Data recovery runs in parallel on pools, volume groups, disk images and PBS datastores. The two need to coordinate: images taken for recovery also serve the forensic work, and containment steps must not destroy recoverable data. A new cluster should only go into production once the attack path is closed.
Which route fits your situation?
What to provide for an analysis
- Images or disks of every affected node, boot disks included (keys,
config.db, logs) - Images or disks of PBS if affected, and whether GC or pruning ran after the attack
- The contents of
/etc/pve/storage.cfg, or a description of the storage backends - Pool layout (mirror, RAIDZ, hardware RAID), disk order and controller
- A list of critical VMs with VMID and disk format
- Ransom note and a few encrypted sample files
- A log of everything done so far, including failed import or repair attempts
DATA REVERSE reconstructs encrypted and damaged server storage, file systems and virtual machines. The work starts with an analysis of the images, followed by a transparent assessment of what can be recovered.
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
- Veeam Backups Encrypted or Deleted by Ransomware: What Can Still Be Recovered
- Hyper-V After Ransomware: Recovering Encrypted VHDX Files and VMs
- 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
Is there ransomware that specifically targets Proxmox?
Proxmox VE is built on Debian Linux, and many ransomware groups ship Linux encryptors. CISA and Bleeping Computer report, for example, that Linux variants of Akira encrypt qcow2 files, a disk format Proxmox VE also uses. What determines the damage is less the family than whether the attacker had root on the host or the backup server.
Can I roll back a ZFS snapshot to save the encrypted VMs?
Not directly on the original pool. A rollback discards every change made after the snapshot and destroys newer snapshots, and it wipes out the post-attack state the forensic team needs. It is safer to clone the snapshot or replicate it to a separate system and check there whether it is clean.
The attackers destroyed all ZFS snapshots. Is the data gone?
Not necessarily. ZFS is copy-on-write, and freed blocks are only reused by later writes. Whether older states can still be reconstructed depends on how much has been written since. That is why the pool should not be written to again and should only be examined read-only or as an image.
Why should I stop garbage collection on Proxmox Backup Server?
When attackers delete backup snapshots, only the index files and metadata go at first. The actual data chunks are removed by a later garbage collection run once nothing references them. Pausing garbage collection keeps those chunks available for a possible reconstruction.
Is Proxmox Backup Server enough protection against ransomware?
Only if it is secured independently of the Proxmox VE hosts. If a host holds credentials with delete rights, or the backup server is managed with the same admin accounts, an attacker can delete the backups too. Proxmox recommends narrowly scoped API tokens, pruning on the server, an off-site sync and tape as a second medium.
Can I just reinstall Proxmox and restore from backup?
Not onto the same disks while there may still be data to recover from them. The installer repartitions the target disks and overwrites pools and volume groups. Also, the key for encrypted PBS backups is stored on the host by default, so a reinstall without a copy of the key can leave the backups unreadable.
Related ransomware profiles
- Akira
.akira
Read next
- Ransomware on VMware ESXi: Attack Paths, First Response and Recovery
- Ransomware on Servers, NAS, RAID or VMware: What Can Be Recovered?
- 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
Sources and further reading
- [1]Proxmox VE Administration Guide – Proxmox VE Storage pve.proxmox.com
- [2]Proxmox VE Administration Guide – Proxmox Cluster File System (pmxcfs) pve.proxmox.com
- [3]Proxmox VE Administration Guide – Backup and Restore pve.proxmox.com
- [4]Proxmox VE Administration Guide – Storage Replication pve.proxmox.com
- [5]Proxmox Backup Server Documentation – Backup Storage (incl. Ransomware Protection & Recovery) pbs.proxmox.com
- [6]Proxmox Backup Server Documentation – Maintenance Tasks (prune, garbage collection, verify, maintenance mode) pbs.proxmox.com
- [7]Proxmox Backup Server Documentation – Managing Remotes & Sync pbs.proxmox.com
- [8]Proxmox Backup Server Documentation – Tape Backup pbs.proxmox.com
- [9]OpenZFS – zpool-import(8) openzfs.github.io
- [10]OpenZFS – zpool-upgrade(8) openzfs.github.io
- [11]OpenZFS – zpool-scrub(8) openzfs.github.io
- [12]OpenZFS – zfs-destroy(8) openzfs.github.io
- [13]lvmthin(7) – Linux manual page man7.org
- [14]QEMU Documentation – qcow2 Image File Format qemu.org
- [15]CISA – AA24-109A: #StopRansomware: Akira Ransomware (updated November 2025) cisa.gov
- [16]Bleeping Computer – CISA warns of Akira ransomware Linux encryptor targeting Nutanix VMs bleepingcomputer.com
- [17]Proxmox VE Wiki – ZFS on Linux pve.proxmox.com
- [18]CISA – #StopRansomware Guide cisa.gov
- [19]OpenZFS – zpoolprops(7) openzfs.github.io