How to Identify Which Ransomware Encrypted Your Files (Extension, Ransom Note and File Analysis)
After a ransomware attack, the first useful question is not "how do we decrypt?" but "which ransomware is this?". The family tells you whether a free decryptor exists, how the files were encrypted, whether large files are likely to be only partly encrypted, and what the group usually does next, such as leaking stolen data.
This guide shows the three ways to identify ransomware, in the order you should use them, and where each one goes wrong. It comes from our lab work on 656+ ransomware cases.
1. The file extension
Most ransomware renames encrypted files by adding an extension: report.xlsx becomes report.xlsx.akira, or database.mdf becomes database.mdf.MEDUSA. Some families add a long pattern instead, such as Phobos, which adds an ID, an e-mail address and then the extension, for example .id[1A2B3C4D-1234].[name@mail].ext.
The extension is a quick first clue, but it is the least reliable one. The same family can use a different extension for every victim (LockBit 3.0 and many newer groups add a random 9-character string), different families sometimes use the same word, and affiliates of ransomware-as-a-service groups change extensions between campaigns. Treat the extension as a hint, never as proof.
2. The ransom note
The ransom note is usually the best single piece of evidence. Look for a .txt, .hta or .html file in every encrypted folder, or a changed desktop wallpaper. Many families use a fixed note name: Akira leaves akira_readme.txt, Medusa leaves !!!READ_ME_MEDUSA!!!.txt, The Gentlemen leaves README-GENTLEMEN.txt, Makop leaves readme-warning.txt and Phobos shows info.hta.
Inside the note, the group name, the Tor leak-site or chat address, the contact e-mail and the victim ID are all identifying. Do not open the chat link or contact the attackers from a company computer, and do not delete the note: it is evidence, and your victim ID can matter later if a decryptor or seized keys become available.
Free services can match a note and a sample file against known families. ID Ransomware (by MalwareHunterTeam) and the Crypto Sheriff on the No More Ransom website both accept a ransom note and one encrypted file and tell you if they recognise the family, and No More Ransom also lists every free decryptor published by police and security companies. Upload only a non-sensitive sample file.
3. The encrypted files themselves
When the extension and the note disagree, or the note is missing (some attackers delete it, and data-only extortion leaves none), the encrypted files are what decides. Each family leaves a typical structure: a footer of a fixed size appended to every file, a marker string, the key blob of the file, and a typical pattern of which bytes are encrypted.
That pattern matters more than the name. Some families encrypt every byte of every file. Many encrypt only the first part of large files, or stripes at fixed distances through them, because full encryption of a 500 GB database or virtual disk takes too long. A SQL Server database, a VMware or Hyper-V virtual disk or a Veeam backup that was only partly encrypted can often be rebuilt from the intact parts, without the key.
To measure this you need structure, not just a randomness score. An encrypted region looks random, but so does a compressed or already encrypted file, so tools that only look at entropy get it wrong. The reliable method compares the encrypted file with what the format should contain at each position, or, best of all, with an older unencrypted copy of the same file.
Why the family name alone is not enough
Knowing it is "LockBit" or "Akira" does not tell you what you can get back. Versions of the same family encrypt differently, affiliates change settings such as how much of each file to encrypt, and the same attack can treat small and large files differently. Two companies hit by the same family can have completely different outcomes.
So identification has two parts: the family (to check for decryptors and understand the attacker) and the measured encryption of your own important files (to know what is recoverable). The second part is what decides the recovery plan.
What to collect before you ask for help
Collect the ransom note, two or three encrypted files of different types (ideally one database, one virtual disk or backup file and one office document), the new file extension, and, if you have one, an older unencrypted copy of any of those same files. Note the date and time the encryption was noticed.
Do not rename the encrypted files, do not run decryptors you found on forums or file-sharing sites, and never test any tool on your only copy. Fake "decryptors" are a common second scam after an attack.
Send these samples to us for a free assessment. We tell you the likely family with the evidence behind it, how each file was encrypted, and what can realistically be recovered, including when the answer is that a file is fully encrypted and cannot be recovered without the key.
Questions and answers
How can I tell which ransomware encrypted my files?
Check the ransom note first (its file name, the group name and the contact or leak-site address), then the new file extension. Free services such as ID Ransomware and No More Ransom's Crypto Sheriff can match a note and a sample file. When these disagree or there is no note, analysis of the encrypted file structure identifies the family.
Is the file extension enough to identify the ransomware?
No. Many families use a random extension per victim, affiliates change extensions between campaigns, and different families can use the same word. The extension is a useful hint; the ransom note and the structure of the encrypted files are the reliable evidence.
Is there a free decryptor for my ransomware?
Only for some families and versions, usually after police seized keys or researchers found a flaw. No More Ransom lists all official free decryptors. Most active families have none, so recovery depends on what the encryption missed, such as the unencrypted parts of large databases, virtual disks and backups.
Can I recover files without knowing the ransomware family?
Sometimes. Measuring which parts of each file were encrypted shows what can be rebuilt, whatever the family is. But identifying the family still matters, because a free decryptor may exist and because it tells you whether data was likely stolen.
Ransomware data recovery service →
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