Ransomware Encryption Patterns and Recovery Paths
Ransomware does not always change files the same way. Whether originals were rewritten in place, copied and deleted, or only partly encrypted decides which recovery paths are still open: decryption, a previous version, a deleted original, or partial application-aware salvage. Preserving the current state comes before choosing any of them.
- The way ransomware rewrote the data, not the family name alone, decides which recovery paths remain open.
- An in-place overwrite removes the old content from the current mapping; snapshots, copy-on-write and independent copies are separate paths, not promises.
- Partial encryption can still block far more data than the share of bytes changed, if it hits indexes or metadata.
- Containment and evidence decisions during an active incident belong to a competent responder; there is no single rule for every case.
- Extensions, entropy and unchanged file sizes are observations to check, not a diagnosis of the write pattern.
Preserve the state first
During an active incident, containment, evidence preservation and recovery are separate decisions. CISA’s #StopRansomware Guide puts isolation of impacted systems first and treats powering devices down as a fallback when they cannot be disconnected, because shutting down loses artifacts held in volatile memory. It also lists taking a system image and memory capture of a sample of affected devices. Which systems to isolate, when to capture memory and when to power down are decisions for a competent responder with the incident in front of them. This page does not tell every reader to switch machines off, nor to keep malware running in the hope of finding keys in RAM.
For recovery, what matters is that further writes stop and that the encrypted files, ransom notes, logs and any surviving backups or snapshots are kept unchanged. Renaming, “cleaning” or test-decrypting the only copy of a file can remove indicators and options. See Recovery Copies: Source, Image, Working Copy and Destination.
Hybrid encryption and what a public key means
Encrypting large files directly with public-key cryptography is slow, so a common pattern is hybrid encryption: a random symmetric key encrypts the file content, and that key is then wrapped with the attacker’s public key and stored with the file or in victim metadata. If this is implemented correctly, having both the malware and the encrypted files does not give access to the private key needed to unwrap the symmetric keys.
A public key found inside a sample is therefore not a decryption secret. Some families use one key per host, others one per file. Implementation mistakes, such as static or reused keys, predictable random numbers or keys exposed by infrastructure, have made particular variants decryptable. Decryptability is a property of a specific variant and key mode; identifying it is covered in Ransomware Identification and Decryptor Validation.
How the original can be changed
In place. The malware reads a file, encrypts it and writes the ciphertext back into the same file. The old content is then no longer reachable through the current logical mapping, and deleted-file recovery has nothing in that file to find. That is a statement about the logical view, not proof that every physical copy of the old bytes is gone: copy-on-write file systems, snapshots, SSD remapping and independent copies elsewhere are separate places where older data can exist. Whether any of them holds a usable version has to be checked; raw recovery of the overwritten content is not something to promise. See What Overwrite Actually Destroys.
Copy and delete. The malware writes an encrypted copy under a new name and deletes the original. That opens a second path: the deleted original may survive until its space is reused, deallocated or trimmed. Its chances follow the same factors as any deletion: file system, HDD or SSD, TRIM, and how much has been written since.
Partial or intermittent. Some families encrypt only the first part of a file, selected ranges or alternating chunks, and skip small files or certain paths. The file may stay partly readable or structurally recognisable. An “encrypted file” is not always encrypted end to end.
Partial encryption in large structured files
Partial encryption does not mean proportionally partial loss. If the changed bytes hit a database page directory, a file-system or archive index, a codec configuration block or a mapping table, far more data can become unreachable than the share of bytes changed suggests. If they hit only payload, much of the file may still be readable.
Where a key is not available, application-aware salvage can sometimes recover unencrypted pages or records, or combine a clean backup with surviving pages. The result is partial by nature. Pages that read correctly may come from different moments and do not by themselves form a transactionally consistent database, so pages from different states are not mixed without validation. See Database Page Corruption and Transaction Recovery.
Illustration: two partly encrypted virtual disks
Two VMDK files of the same size, with a similar share of changed bytes, both fail to open.
In one, part of the guest payload was encrypted; in the other, the virtual-disk mapping structures were. The first may give up most guest files; the second may block access to nearly everything until the mapping is rebuilt.
On copies, check which structures in each file are intact before choosing between decryption, structure-level reconstruction and salvage.
A conceptual example, not a documented case. It shows why the share of changed bytes does not predict the outcome.
Damage across nested storage layers
A SAN LUN can carry a VMFS datastore, a VMDK, a guest NTFS volume and a SQL Server database. One ransomware pass over the VMDK is one encryption pass over one file; it does not create several independent cryptographic layers. What it does create is damage that propagates through several storage layers, so that a partly encrypted virtual disk can break guest files that were never touched directly.
Recovery is often better aimed at the level that was hit: the virtual-disk structures, the guest file system or the application data. Treating one large encrypted VMDK as a single generic file to decrypt or repair can miss what survives underneath.
Observations are not a diagnosis
Visible signs help choose the next check, but none of them identifies the write pattern alone.
Scroll horizontally to see the full table →
| Observation | Possible explanations | Next check |
|---|---|---|
| New extension, original name gone | Copy-and-delete, or in-place encryption followed by a rename | File-system metadata and logs for deleted originals; do not rely on the extension |
| File size unchanged | In-place encryption, or partial encryption with no appended data | Compare readable regions with a known clean copy, if one exists |
| High entropy at the start only | Partial or intermittent encryption, or a compressed format that is high-entropy anyway | Format-aware inspection of later regions against the file’s expected structure |
| Snapshots or shadow copies missing | Deleted by the attacker, expired, or never configured | Backup systems, replicas and storage-level snapshots outside the reach of the affected hosts |
Recovery paths and what each depends on
- Backups and snapshots that the attacker could not reach. CISA notes that many variants try to find and delete or encrypt accessible backups, so verify a backup before relying on it.
- A matching decryptor for the exact variant and key mode. No More Ransom lists decryptors per family, some limited to specific versions or file types; there is no universal decryptor.
- Deleted originals after copy-and-delete, if the space has not been reused or deallocated.
- Partial salvage of unencrypted regions in large structured files, documented as partial.
- Key material from a live system, only where a responder captured memory and the family keeps keys resident. It is a possibility, not something to plan on.
These paths are not exclusive and can be pursued in parallel on copies. Keep encrypted originals even after a failed attempt; a later decryptor may need them.
Checking the result
A decryptor reporting success or a salvage tool finishing is not acceptance. Open recovered files in the application that uses them, check archives and databases structurally, play media to the end and compare important data against independent records. Partial encryption makes this especially important: a file can be correct in one region and damaged in another. See How to Validate Recovered Data.
Stop further writes, preserve the encrypted files and surrounding evidence, and find out what actually happened to the originals before assuming decryption is the only path. The pattern decides the options; the family name alone does not.
Technical references: CISA, #StopRansomware Guide — isolation first, power-down as fallback, memory capture, backups targeted · No More Ransom, Decryption Tools — family- and version-specific decryptors. Pages checked October 2026; decryptor coverage changes over time.
Related: Ransomware Identification and Decryptor Validation · Ransomware Encryption · Recovery Copies: Source, Image, Working Copy and Destination · What Overwrite Actually Destroys · Encryption and Ransomware Recovery Tools · How to Validate Recovered Data