What is PyLock?
Discovered by GrujaRS, PyLock is a high-risk ransomware infection that stealthily infiltrates computers and encrypts most stored data, thereby rendering it unusable.
As well as compromising data, PyLock appends each filename with the ".locked" extension (e.g., "sample.jpg" is renamed to "sample.jpg.locked"). Once data is encrypted, users are presented with a pop-up window containing a ransom-demand message.
The opened pop-up window delivers a message informing victims that data is encrypted using AES-256 cryptography. Therefore, victims are encouraged to purchase a decryption key if they wish to restore their files. Unfortunately, decryption does require a unique key.
AES is a symmetric encryption algorithm that uses an identical key for encryption and decryption. A unique key is generated for each victim, however, victims cannot access their keys as they are stored on a remote server controlled by PyLock's developers. Therefore, cyber criminals are able to blackmail them by offering paid recovery of their files.
According to the pop-up window, the cost of each key is 5 Bitcoins (currently equivalent to approximately $51000). Clearly, no one will pay such an amount to retrieve their photos, music, and other similar files.
Therefore, there are two possible reasons why the ransom is so high: 1) cyber criminals are still testing this ransomware and the cost will change, or; 2) they are using old source code, since the Bitcoin value has risen significantly during the last few years (e.g., in early 2016, a single Bitcoin was equivalent to around $400, whilst at time of writing, the value is just above $10000).
Regardless of the cost, do not pay. Ransomware developers often ignore victims once payments are submitted. There is a high probability that paying will deliver no positive result - you will simply support cyber criminals' malicious businesses and receive nothing in return.
Therefore, ignore all requests to submit payments. Unfortunately, PyLock is undecryptable ransomware, and thus there are no tools capable of cracking its encryption and restoring data free of charge. The only solution is to restore everything from a backup, if one has been created.
Screenshot of a message encouraging users to pay a ransom to decrypt their compromised data:
The internet is full of ransomware-type infections that share many similarities - Erenahen, b00m, and Kokoklock are just some examples from many. Note that, although the developers are different, all of these infections have virtually identical behavior: they encrypt data and make ransom demands.
There are typically just two major differences: 1) size of ransom, and; 2) type of encryption algorithm used. Unfortunately, most encryptions are performed using AES, RSA, and other high-end cryptographies that generate unique decryption keys.
Therefore, unless data was encrypted by ransomware with bugs/flaws, restoring it without involvement of the developers (not recommended) is impossible.
Ransomware presents a strong case for maintaining regular backups, however, store them on a remote server (e.g., Cloud) or unplugged storage device (e.g., Flash drive, external hard drive or similar) - locally stored backups are compromised together with regular data.
In fact, you should have multiple backup copies stored in different locations, since there is always a chance that servers/storage devices can be damaged.
How did ransomware infect my computer?
The exact way in which developers proliferate PyLock is currently unknown, however, many ransomware infections are proliferated using third party software download sources (freeware download websites, free file hosting sites, Peer-to-Peer [P2P] networks, etc.), spam emails, trojans, and fake software updaters and 'cracks'.
Unofficial download sources are used to present malicious executables as legitimate software. In this way, criminals trick users into manual download/installation of malware. Spam campaigns are used to send hundreds of thousands of deceptive emails containing malicious attachments (links/files) and messages encouraging recipients to open them.
To give the impression of legitimacy, criminals present attachments as "important" documents, such as invoices, bills, receipts, and so on. Trojans are essentially malicious lightweight applications designed to infiltrate systems and inject them with additional malware.
Fake updaters usually infect systems by exploiting outdated software bugs/flaws or merely downloading and installing malware rather than the updates, while fake cracking tools simply inject malware rather than providing access to licensed software (paid) features.
|Threat Type||Ransomware, Crypto Virus, Files locker.|
|Encrypted Files Extension||.locked|
|Ransom Demanding Message||Pop-up window|
|Ransom Amount||5 Bitcoin|
|Cyber Criminal Contactemail@example.com|
|Detection Names||Avast (Win32:Trojan-gen), BitDefender (Generic.Ransom.PyCrypter.93A4C9ED), ESET-NOD32 (Python/Filecoder.AC), McAfee (Artemis!D5023CFBE554), Full List Of Detections (VirusTotal)|
|Symptoms||Cannot open files stored on your computer, previously functional files now have a different extension (for example, my.docx.locked). A ransom demand message is displayed on your desktop. Cyber criminals demand payment of a ransom (usually in bitcoins) to unlock your files.|
|Distribution methods||Infected email attachments (macros), torrent websites, malicious ads.|
|Damage||All files are encrypted and cannot be opened without paying a ransom. Additional password-stealing trojans and malware infections can be installed together with a ransomware infection.|
|Malware Removal (Windows)||
To eliminate possible malware infections, scan your computer with legitimate antivirus software. Our security researchers recommend using Combo Cleaner.
How to protect yourself from ransomware infections
The main reasons for computer infections are poor knowledge of these threats and careless behavior. The key to safety is caution. Therefore, pay attention when browsing the internet and downloading/installing/updating software. Handle all email attachments with care.
Files/links received from suspicious/unrecognizable email addresses should never be opened. The same applies to attachments that are irrelevant or do not concern you. Furthermore, download programs from official sources only and, if possible, use direct download links.
Similar rules apply to software updates. Keeping installed applications up-to-date is extremely important, however, this should be achieved only through implemented functions or tools provided by the official developer. Third party downloaders, installers and updaters often include rogue applications, and thus such tools should never be used.
Be aware that cracking installed applications is illegal (software piracy is a cyber crime) and the risk of infections is extremely high, since most of these tools are fake. Therefore, using third party/illegal tools to activate installed apps should never be considered.
Have a reputable internet security suite installed and running, since this will detect and eliminate most computer infections before any harm is done. If your computer is already infected with PyLock, we recommend running a scan with Combo Cleaner Antivirus for Windows to automatically eliminate this ransomware.
The appearance of PyLock ransomware pop-up (GIF):
Text presented in PyLock ransomware pop-up window:
The important files on your computer have been encrypted with military grade AES-256 bit encryption. Cannot be unlocked without the decryption key.
* DON'T MODIFY OR RENAME ENCRYPTED FILES, THIS CAUSE DAMAGE YOUR FILES PERMANENTLY!
* DON'T MODIFY ENCRYPTED UNIQUE KEY, THIS CAUSE DAMAGE YOUR FILES PERMANENTLY!
* DON'T USE THIRD-PARTY OR PUBLIC TOOLS/SOFTWARE TO DECRYPT YOUR FILES, THIS CAUSE DAMAGE YOUR FILES PERMANENTLY!
To acquire this key, transfer the Bitcoin Fee to the specified wallet address before the time runs out, for instructions: firstname.lastname@example.org
If you fail to take action within this time window, the decryption key will be destroyed and access to your files will be permanently lost.
Screenshot of files encrypted by PyLock (".locked" extension):
PyLock ransomware removal:
Instant automatic malware removal:
Manual threat removal might be a lengthy and complicated process that requires advanced computer skills. Combo Cleaner is a professional automatic malware removal tool that is recommended to get rid of malware. Download it by clicking the button below:
Video suggesting what steps should be taken in case of a ransomware infection:
- What is PyLock virus?
- STEP 1. Reporting ransomware to authorities.
- STEP 2. Isolating the infected device.
- STEP 3. Identifying the ransomware infection.
- STEP 4. Searching for ransomware decryption tools.
- STEP 5. Restoring files with data recovery tools.
- STEP 6. Creating data backups.
If you are a victim of a ransomware attack we recommend reporting this incident to authorities. By providing information to law enforcement agencies you will help track cybercrime and potentially assist in the prosecution of the attackers. Here's a list of authorities where you should report a ransomware attack. For the complete list of local cybersecurity centers and information on why you should report ransomware attacks, read this article.
List of local authorities where ransomware attacks should be reported (choose one depending on your residence address):
- USA - Internet Crime Complaint Centre IC3
- United Kingdom - Action Fraud
- Spain - Policía Nacional
- France - Ministère de l'Intérieur
- Germany - Polizei
- Italy - Polizia di Stato
- The Netherlands - Politie
- Poland - Policja
- Portugal - Polícia Judiciária
Isolating the infected device:
Some ransomware-type infections are designed to encrypt files within external storage devices, infect them, and even spread throughout the entire local network. For this reason, it is very important to isolate the infected device (computer) as soon as possible.
Step 1: Disconnect from the internet.
The easiest way to disconnect a computer from the internet is to unplug the Ethernet cable from the motherboard, however, some devices are connected via a wireless network and for some users (especially those who are not particularly tech-savvy), disconnecting cables may seem troublesome. Therefore, you can also disconnect the system manually via Control Panel:
Navigate to the "Control Panel", click the search bar in the upper-right corner of the screen, enter "Network and Sharing Center" and select search result:
Click the "Change adapter settings" option in the upper-left corner of the window:
Right-click on each connection point and select "Disable". Once disabled, the system will no longer be connected to the internet. To re-enable the connection points, simply right-click again and select "Enable".
Step 2: Unplug all storage devices.
As mentioned above, ransomware might encrypt data and infiltrate all storage devices that are connected to the computer. For this reason, all external storage devices (flash drives, portable hard drives, etc.) should be disconnected immediately, however, we strongly advise you to eject each device before disconnecting to prevent data corruption:
Navigate to "My Computer", right-click on each connected device, and select "Eject":
Step 3: Log-out of cloud storage accounts.
Some ransomware-type might be able to hijack software that handles data stored within "the Cloud". Therefore, the data could be corrupted/encrypted. For this reason, you should log-out of all cloud storage accounts within browsers and other related software. You should also consider temporarily uninstalling the cloud-management software until the infection is completely removed.
Identify the ransomware infection:
To properly handle an infection, one must first identify it. Some ransomware infections use ransom-demand messages as an introduction (see the WALDO ransomware text file below).
This, however, is rare. In most cases, ransomware infections deliver more direct messages simply stating that data is encrypted and that victims must pay some sort of ransom. Note that ransomware-type infections typically generate messages with different file names (for example, "_readme.txt", "READ-ME.txt", "DECRYPTION_INSTRUCTIONS.txt", "DECRYPT_FILES.html", etc.). Therefore, using the name of a ransom message may seem like a good way to identify the infection. The problem is that most of these names are generic and some infections use the same names, even though the delivered messages are different and the infections themselves are unrelated. Therefore, using the message filename alone can be ineffective and even lead to permanent data loss (for example, by attempting to decrypt data using tools designed for different ransomware infections, users are likely to end up permanently damaging files and decryption will no longer be possible even with the correct tool).
Another way to identify a ransomware infection is to check the file extension, which is appended to each encrypted file. Ransomware infections are often named by the extensions they append (see files encrypted by Qewe ransomware below).
This method is only effective, however, when the appended extension is unique - many ransomware infections append a generic extension (for example, ".encrypted", ".enc", ".crypted", ".locked", etc.). In these cases, identifying ransomware by its appended extension becomes impossible.
One of the easiest and quickest ways to identify a ransomware infection is to use the ID Ransomware website. This service supports most existing ransomware infections. Victims simply upload a ransom message and/or one encrypted file (we advise you to upload both if possible).
The ransomware will be identified within seconds and you will be provided with various details, such as the name of the malware family to which the infection belongs, whether it is decryptable, and so on.
Example 1 (Qewe [Stop/Djvu] ransomware):
Example 2 (.iso [Phobos] ransomware):
If your data happens to be encrypted by ransomware that is not supported by ID Ransomware, you can always try searching the internet by using certain keywords (for example, a ransom message title, file extension, provided contact emails, crypto wallet addresses, etc.).
Search for ransomware decryption tools:
Encryption algorithms used by most ransomware-type infections are extremely sophisticated and, if the encryption is performed properly, only the developer is capable of restoring data. This is because decryption requires a specific key, which is generated during the encryption. Restoring data without the key is impossible. In most cases, cybercriminals store keys on a remote server, rather than using the infected machine as a host. Dharma (CrySis), Phobos, and other families of high-end ransomware infections are virtually flawless, and thus restoring data encrypted without the developers' involvement is simply impossible. Despite this, there are dozens of ransomware-type infections that are poorly developed and contain a number of flaws (for example, the use of identical encryption/decryption keys for each victim, keys stored locally, etc.). Therefore, always check for available decryption tools for any ransomware that infiltrates your computer.
Finding the correct decryption tool on the internet can be very frustrating. For this reason, we recommend that you use the No More Ransom Project and this is where identifying the ransomware infection is useful. The No More Ransom Project website contains a "Decryption Tools" section with a search bar. Enter the name of the identified ransomware, and all available decryptors (if there are any) will be listed.
Restore files with data recovery tools:
Depending on the situation (quality of ransomware infection, type of encryption algorithm used, etc.), restoring data with certain third-party tools might be possible. Therefore, we advise you to use the Recuva tool developed by CCleaner. This tool supports over a thousand data types (graphics, video, audio, documents, etc.) and it is very intuitive (little knowledge is necessary to recover data). In addition, the recovery feature is completely free.
Step 1: Perform a scan.
Run the Recuva application and follow the wizard. You will be prompted with several windows allowing you to choose what file types to look for, which locations should be scanned, etc. All you need to do is select the options you're looking for and start the scan. We advise you to enable the "Deep Scan" before starting, otherwise, the application's scanning capabilities will be restricted.
Wait for Recuva to complete the scan. The scanning duration depends on the volume of files (both in quantity and size) that you are scanning (for example, several hundred gigabytes could take over an hour to scan). Therefore, be patient during the scanning process. We also advise against modifying or deleting existing files, since this might interfere with the scan. If you add additional data (for example, downloading files/content) while scanning, this will prolong the process:
Step 2: Recover data.
Once the process is complete, select the folders/files you wish to restore and simply click "Recover". Note that some free space on your storage drive is necessary to restore data:
Create data backups:
Proper file management and creating backups is essential for data security. Therefore, always be very careful and think ahead.
Partition management: We recommend that you store your data in multiple partitions and avoid storing important files within the partition that contains the entire operating system. If you fall into a situation whereby you cannot boot the system and are forced to format the disk on which the operating system is installed (in most cases, this is where malware infections hide), you will lose all data stored within that drive. This is the advantage of having multiple partitions: if you have the entire storage device assigned to a single partition, you will be forced to delete everything, however, creating multiple partitions and allocating the data properly allows you to prevent such problems. You can easily format a single partition without affecting the others - therefore, one will be cleaned and the others will remain untouched, and your data will be saved. Managing partitions is quite simple and you can find all the necessary information on Microsoft's documentation web page.
Data backups: One of the most reliable backup methods is to use an external storage device and keep it unplugged. Copy your data to an external hard drive, flash (thumb) drive, SSD, HDD, or any other storage device, unplug it and store it in a dry place away from the sun and extreme temperatures. This method is, however, quite inefficient, since data backups and updates need to be made regularly. You can also use a cloud service or remote server. Here, an internet connection is required and there is always the chance of a security breach, although it's a really rare occasion.
We recommend using Microsoft OneDrive for backing up your files. OneDrive lets you store your personal files and data in the cloud, sync files across computers and mobile devices, allowing you to access and edit your files from all of your Windows devices. OneDrive lets you save, share and preview files, access download history, move, delete, and rename files, as well as create new folders, and much more.
You can back up your most important folders and files on your PC (your Desktop, Documents, and Pictures folders). Some of OneDrive’s more notable features include file versioning, which keeps older versions of files for up to 30 days. OneDrive features a recycling bin in which all of your deleted files are stored for a limited time. Deleted files are not counted as part of the user’s allocation.
The service is built using HTML5 technologies and allows you to upload files up to 300 MB via drag and drop into the web browser or up to 10 GB via the OneDrive desktop application. With OneDrive, you can download entire folders as a single ZIP file with up to 10,000 files, although it can’t exceed 15 GB per single download.
OneDrive comes with 5 GB of free storage out of the box, with an additional 100 GB, 1 TB, and 6 TB storage options available for a subscription-based fee. You can get one of these storage plans by either purchasing additional storage separately or with Office 365 subscription.
Creating a data backup:
The backup process is the same for all file types and folders. Here’s how you can back up your files using Microsoft OneDrive
Step 1: Choose the files/folders you want to backup.
Click the OneDrive cloud icon to open the OneDrive menu. While in this menu, you can customize your file backup settings.
Click Help & Settings and then select Settings from the drop-down menu.
Go to the Backup tab and click Manage backup.
In this menu, you can choose to backup the Desktop and all of the files on it, and Documents and Pictures folders, again, with all of the files in them. Click Start backup.
Now, when you add a file or folder in the Desktop and Documents and Pictures folders, they will be automatically backed up on OneDrive.
To add folders and files, not in the locations shown above, you have to add them manually.
Open File Explorer and navigate to the location of the folder/file you want to backup. Select the item, right-click it, and click Copy.
Then, navigate to OneDrive, right-click anywhere in the window and click Paste. Alternatively, you can just drag and drop a file into OneDrive. OneDrive will automatically create a backup of the folder/file.
All of the files added to the OneDrive folder are backed up in the cloud automatically. The green circle with the checkmark in it indicates that the file is available both locally and on OneDrive and that the file version is the same on both. The blue cloud icon indicates that the file has not been synced and is available only on OneDrive. The sync icon indicates that the file is currently syncing.
To access files only located on OneDrive online, go to the Help & Settings drop-down menu and select View online.
Step 2: Restore corrupted files.
OneDrive makes sure that the files stay in sync, so the version of the file on the computer is the same version on the cloud. However, if ransomware has encrypted your files, you can take advantage of OneDrive’s Version history feature that will allow you to restore the file versions prior to encryption.
Microsoft 365 has a ransomware detection feature that notifies you when your OneDrive files have been attacked and guide you through the process of restoring your files. It must be noted, however, that if you don’t have a paid Microsoft 365 subscription, you only get one detection and file recovery for free.
If your OneDrive files get deleted, corrupted, or infected by malware, you can restore your entire OneDrive to a previous state. Here’s how you can restore your entire OneDrive:
1. If you're signed in with a personal account, click the Settings cog at the top of the page. Then, click Options and select Restore your OneDrive.
If you're signed in with a work or school account, click the Settings cog at the top of the page. Then, click Restore your OneDrive.
2. On the Restore your OneDrive page, select a date from the drop-down list. Note that if you're restoring your files after automatic ransomware detection, a restore date will be selected for you.
3. After configuring all of the file restoration options, click Restore to undo all the activities you selected.
The best way to avoid damage from ransomware infections is to maintain regular up-to-date backups.