Specialists from foreign countries and other users started to seek advice after reading this article. Turns out, not all of you understand when forensics engineers can help recover data. In this article we will consider typical questions and give answers based on own experience.

Frequently asked questions:

Are the files encrypted or a whole partition?

We have had both cases in our experience.

If files are encrypted, we recommend you recover data from FreeSpace partition (ransomware usually misses this area).


Why will it succeed?

Data copies could be deleted, moved or create temporary files. So it’s necessary to make analysis.

It’s a difficult case when a partition is entirely encrypted. In the future it will occur rarely.


Why do we think so?

The volume of storage devices increases. As a result, time spent for encryption will increase as well. This will make it more difficult for hackers to achieve their goals.


Is it possible to recover data if a whole partition is encrypted?

If the algorithm of encryption is cryptographic and the key is unknown, we won’t be able to help.

How can you determine whether an algorithm is cryptographical or not?

Usually the algorithm of encryption is unknown. So it’s difficult to give a definitive answer. There’s a choice to search markers.

In this case, we define XOR with some additions.


How to determine XOR is used?

It’s necessary to take two or three files of same type and compare them. The presence of coinciding parts and further analysis will let us make a conclusion about the algorithm used.


A frauder sent the name of algorithm of encryption in a text file. Will it help to decrypt?

It’s difficult to answer. There are many variations of cryptographic algorithms. The task of key search is the most important.


I know a new extension of files that ransomware created. Will it help?

It’s not important what kind of extension it is. There are many options, but they systematize poorly. Most important is what is inside the file.



How can you find the encryption key?

It’s a direct key brute-force or heuristic analysis. But there are few chances.

If there’s ransomware (for example, an email with an infected file), it’s possible to make a test case with prepared PC with a huge volume of data (we need to buy some time). Run a ransomware. While it’s encrypting data, we make some dumps of RAM in short intervals. Compare them and seek patterns.


Have you succeeded in key searching with the help of RAM dumps?

Not yet. It’s just a hypothesis. We can’t check it because users are not ready to pay for such expensive work.

So when is it possible to help if a virus has encrypted data?

It’s possible if files are not entirely encrypted.


How can you determine that?

You need to find an unencrypted copy of an encrypted file (on another device, for example) and compare them. This procedure should be repeated on some examples. It’s necessary to determine the length and location of encrypted areas better.

If there’s no coincidence, file will be entirely encrypted. The only decision is a key search (vide supra).

If there’s coincidence, part of the user’s data is not encrypted.


What size of file should be taken for comparison?

The more the better. A file’s size has to be more than 10 MB. One of the versions of well-known Petya (NotPetya) encryptor had encrypted only the first MB of data. Files of up to 1 MB were entirely encrypted. Files of more than 1 MB were partly recovered. Look at the fifth figure.


How can you recover data if a file is not entirely encrypted?

There’s no single algorithm for the problem. Everything depends on data file type, length and location of encrypted areas. It’s a creative work for data recovery specialists.


What do you do when you get a case with ransomware?

The algorithm we follow:

to check FreeSpace area

to investigate the ransomware


  • we open uncompressed files, for example doc, xls (don’t confuse with docx, xlsx). If you don’t have a correct header of a file, so this file is possibly encrypted
  • we search a code 0x00000000 (for example). Such code is often used in uncompressed files and it’s not used in encrypted fragment.


  • we ask the customer to provide unencrypted copies of encrypted files from another PC, if possible
  • compare them and define the areas of encryption
  • in this example at 6th pic ransomware encrypts with blocks 8192 bytes in size.





Unchanged area Encrypt



Unchanged area Encrypt



Unchanged area ID key





We try to decrypt using various combinations of ID key ransomware and known algorithms of encryption (AES 256, for example). We know that there are a few chances but let’s try.


  • we suggest RAM investigation if there’s ransomware;
  • we define more exactly what kind of data should be recovered and whether partial data recovery will help the customer;
  • we suggest an individual solution depending on a file type.



Related Articles

USB stick / pendrive with business data on it.
A client arrived to out United Kingdom Belfast office with a failed USB flash drive. Whenever they plugged their USB stick into their computers USB port the computer would not recognise the device. The client has been using the USB stick to store important files and now the device had stopped working they urgently need to retrieve those important documents. USB sticks can fail for many reasons..
SSD / Solid State Drive Data Recovery
SSD drive or Solid State Drives can be a tricky one when it comes to data recovery, however we do have some success stories. We had a client contact us in our United Kingdom Belfast based office because their SSD suddenly vanished. When a data storage device suddenly shows up as empty out of the blue there can be a number of potential reasons for this. After inspecting the drive, we found that..
In-house Lab Dell XPS Data Recovery Diagnostic, Analysis and Data Recovery Service   Standard Service Free diagnostic and estimate.  We analyse and diagnose your device in 3–5 days and provide you with a free estimate for the data recovery. Business Service 24-48 hours. Prioritized data recovery diagnostic, analysis and estimate during business hours £75 additional c..
Intel 256 GB Internal SSD - M.2 2280 - Solid-State Drive DC S3110 Series - Data Recovery Step by Step     If you are in a similar case do not panic and feel free to contact me by phone, WhatsApp or email. This week we had a Intel 256GB for data recovery in that showed a lot of read instability. The SSD was about 2 years old and was installed in a Dell laptop that failed on boot wi..
0 comments on this article - view comments

How We Work - A Look inside Belfast Data Recovery