Skip to content
  • Active
  • Severity: High
  • Ransomware
  • Windows
  • Verified · Jun 2021

How to remove Petya virus

A step-by-step removal guide for affected devices. Follow the verified procedure below — most readers complete it in under 10 minutes.

Lucia Danes · Virus researcher

Petya – a dangerous ransomware virus that launched first worldwide attack in 2016

The latest Peya ransom note

Petya is a file-encrypting virus that was first discovered in 2016. Since then, this ransomware[1] has been updated a couple of times. Among variants of malware are PetrWrap, GoldenEye, Mamba virus, Mischa, Diskcoder.D, or Bad Rabbit. The crypto-virus launched massive worldwide campaigns and affected organizations and companies in Ukraine, Russia, Spain, Denmark, etc. The purpose of this malware is the same as any other cyber threat that belongs to the same category – to encrypt files and make victims pay the ransom.

Summary of the virus
Name Petya
Alternative names NotPetya
Type Ransomware
Release date 2016
Versions PetrWrap, GoldenEye, Mamba, Mischa, BadRabbit
Encryption algorithm RSA-4096 and AES-256
File extension .encrypted
Ransom note YOUR_FILES_ARE_ENCRYPTED.HTML, YOUR_FILES_ARE_ENCRYPTED.TXT
Distribution Malicious spam emails
Targeted countries Ukraine, Russia, UK, Spain, Denmark, the Netherlands, India, etc.
Decryption The original version of the virus is not decryptable; however, some of the variants can be recovered for free
To remove malware, install SpyHunterCombo Cleaner and run a full system scan. To fix up corrupted Windows system files, we recommend FortectIntego repair tool

The rise of the strain started similarly to WannaCry – the outbreak was spotted out of nowhere and continued spreading rapidly. Some anti-virus tools identify the threat as NotPetya and Nyetya ransomware. However, it is already known that it spreads via malicious spam emails and uses RDP attacks to compromise computers.

When the original version of malware emerged, it possessed a “kill disk” feature. In other words, even it encrypted files, it did not manage the proper communication with Command and Control servers to monitor victim identification numbers.

Likewise, ExPetr/NotPetya/Petna messed with the ID process[2]. What is more, one of the email domains associated with the perpetrators was canceled. In short, due to these factors, data recovery becomes impossible as a victim computer is not assigned a specific code that would help retrieve the matching decrypter.[3] 

The malware simply generates random numbers and characters instead of a specific key. In other words, IT specialists call the malware to be a data wiper, though technically, it just makes the data recovery is futile. Lastly, due to the scale of inflicted damage, experts speculate that the threat used a mixture of exploits: PSExec, WMI, and Eternal Blue, to target SMB and local networks.[4]. Thus, there is no point in remitting the payment as affected users will not recover their data. 

The ransomware has already infected several banks, power suppliers, the companies “Rosneft,” “Maersk, “Saint – Gobain” and other companies.[5] Ukraine software company MeDoc has been accused of releasing the virus.[6] Though the company denied such allegations, some IT experts claim to have evidence revealing that the firm was the initial source.

Petya virus screenshot

The operation of ransomware

Unlike the other ransomware programs, this malware immediately restarts the computer. When it boots it again, a message shows up on the screen saying:

DO NOT TURN OFF YOUR PC!
IF YOU ABORT THIS PROCESS, YOU COULD DESTROY ALL OF YOUR DATA!
PLEASE ENSURE THAT YOUR POWER CABLE IS PLUGGED IN!

Even though it may look like a system error, in fact, at a given moment, the virus is silently carrying out file encryption in the system’s background. If the user tries to reboot the system or the file encryption is executed, a flashing red skeleton appears on the screen along with the text “PRESS ANY KEY!”. After pressing the key, a new window with a ransom note appears.

Petya ransomware attack

At the beginning of its functionality, the victim was typically asked to pay 0,9 BitCoin, which equaled around $400. However, now it requires $300 in Bitcoin. Therefore, different companies, which have numerous computers, can be required a different amount of ransom.

The ransomware encrypts files with very complex RSA-4096 and AES-256 [7] algorithms, even used for military purposes. Such code is impossible to decrypt without a private key. Of course, typically to other ransomware programs like Locky virus, CryptoWall virus, and CryptoLocker, this private key is stored on some remote server, which can only be accessed by paying a ransom to the virus creators.

Data encryption is not the only task for ransomware

Once this virus is in the system, it will try to overwrite the Windows boot files or the so-called master boot record [8] required to load your operating system. You will not be able to remove the virus from your computer unless you restore your MBR settings.

Even if you manage to fix these settings and delete the virus from your system, unfortunately, your files will remain locked because virus removal does not decrypt the encrypted documents but merely deletes the infectious files. Of course, this procedure is essential if you want to continue using your computer. We advise using sophisticated and reputable antivirus tools like SpyHunterCombo Cleaner to take care of virus removal.

Security experts have just announced about the ransomware decryption key, which can help you decrypt your files with the special algorithm. To get a chance to use this algorithm, you need to visit this website. However, the decryption of your files shouldn't be your only headache.

You should also make sure that you remove the ransomware from your computer before starting the second encryption of your files. If you find any trouble while performing the removal, check the detailed guide on the second page of this post.

Bad Rabbit ransomware

The recent reports state that the latest version of Petya ransomware hit Kyiv Metro and Odesa International Airport on the 24th of October. Even though the majority of attacks were reported in Russia (66%) and Ukraine (12.2%), other countries such as Bulgaria, Turkey, and Japan[9] suffered from Bad Rabbit ransomware too.

Petya BadRabbit ransomware

Malware spreads via fake Flash update that is available on corrupted websites. The Bad Rabbit virus is executed from the install_flash_player.exe that is installed to the Win32/Filecoder.D directory. Additionally, malware scans an internal network for open Windows' Server Message Block (SMB) shares. The same infiltration strategy was used by WannaCry, and there’s no doubt that it was more than successful. However, this version of malware does not exploit the EthernalBlue vulnerability.

The virus performs full drive encryption using the DiskCryptor and a combination of RSA-2048 and AES-128-CBC cryptography. To the targeted files, it also appends a .encrypted file extension. Apart from taking files hostage, the malware also uses the Mimikatz tool to collect credentials, including usernames and passwords.

Following data encryption, malware delivers a ransom note that redirects to the payment website. Victims are asked to transfer 0.05 Bitcoins in order to get a decryption password. People have 41 hours until the size of the ransom increases. However, paying the ransom is not recommended.

Authors of malware launched new ransomware campaign in June 2017

In June 2016, cybercriminals updated their creation. Then they used the wowsmith123456@posteo.net email address to collect ransoms. It requires paying $300 in Bitcoin in exchange for recovering the connection to victims' data. Ukraine, UK, Spain, Denmark, the Netherlands, India, and other countries have already approved the attack.

The ransomware does not encrypt victim's files one by one – this is clear evidence showing that the virus was recently updated. Instead, it reboots the computer first and then encrypts the MFT (master file table) of the hard drive. The MBR (master boot record) stops operating what causes failure when trying to seize the needed information about files, like their names, sizes, and location.

You can still get infected with the ransomware virus after downloading a fake office document, so be sure to be careful with unknown emails. However, The Hacker News has reported that the virus DOES use the same Windows SMBv1 vulnerability which was used by the WannaCry infection.[10] To protect yourself, make sure you install SpyHunterCombo Cleaner, MalwarebytesMalwarebytes, or another reputable security software on the system.

Petya ransomware delivers a ransom note

UPDATE: According to IT expert Lawrence Abrams, there is a solution preventing the attack – netizens should create a text file entitled as perfc and place in in C:Windows folder.[11] It seems that ransomware removes itself if it detects such a file on the system.

UPDATE July 2017: After a long wait, malware analysts finally release a decryptor for the virus, and it promises to decrypt files that have been processed by the ransomware's malicious code. The Petya Decryptor comes in two basic forms: a CD version and a Windows executable file. We should note that this tool is merely designed to extract the individual decryption key. At the same time, the data recovery can be performed using the decryption software, including Mischa and GoldenEye decrypters. More detailed instructions on how to use these tools are provided in the instruction section of our article.

Unfortunately, the decryptor is still powerless against hybrid ransomware versions. 

Petya virus victim list

Victims  
M.E.Doc servers The attack originates in Ukraine. It started spreading on 18 June (or earlier) as an update for a popular M.E.Doc accounting software package.   
The National Bank of Ukraine  Later, the National Bank of Ukraine announces about the “external cyber attack.” It warns financial institutions to be extra careful with the malware attack.
Oshchadbank state bank After one hour, Oshchadbank state bank reports about the limited functionality services for its clients because of ransomware virus.
Cabinet of Ministers of Ukraine The members of the Ministry of Ukraine start tweeting of their computers locked by ransomware.
Maersk Next, the virus moves on and infects container transportation giant Maersk in Netherlands and Denmark. The company stops all container operations.
Rosneft Russian oil giant Rosneft confirms attacks on the same day.
DLA Piper DLA Piper, a global business law firm, reports about malware attack. The company takes down its servers.
Mondelez Mondelez offices report about the ransomware attack on 27, June. The attacks disabled its servers.
WPP A popular marketing company in UK, WPP, reports about a suspected cyber attack.
Kiev Metro Kiev Metro was reported to suffer from Bad Rabbit attack on 24th of October.
Odessa International Airport Odessa International Airport also reported that they were hit by ransomware on the same day in October.

Unfortunately, the number of victims is still growing. Not all of them have reported about problems related to this malware strain. However, it is believed that there are several thousand companies infected with this ransomware.

The list of ransomware variants

This ransomware has been growing ever since it hit the Internet in 2016 – the developers of malware have already released these supplementary ransomware versions:

Mischa ransomware was spotted in May 2016. It is known to be a part of Janus Cybercrime Solutions campaign[12] which allows wannabe hackers to join the affiliate network of malware. However, to become one of its distributors, you need to pay a registration fee. 

Depending on the volume of the ransom payment, the users can earn up to 85% of the revenue share for spreading the virus around the Internet. If you even consider becoming an affiliate of such a nasty company, keep in mind that its creators hold nothing sacred and can easily take advantage of you as well, so be very careful.

Petya Mischa ransomware

Petrwrap ransomware does not belong to Janus Cybercrime Solutions campaign, which is considered as an affiliate network of the ransomware. It is a separate virus that is based on the altered ECDH algorithm letting its developers generate private and public keys outside the RaaS system.

The malware has been using a vulnerable RDP network and the PsExec tool to infiltrate target PC systems and launch the virus. Nevertheless, it is also possible to get the malware after downloading an infected email attachment.

GoldenEye ransomware virus is very similar to Petya. To show the victim his or her loss, it appends specific file extensions to the target files. The virus also bypasses User Account Control (UAC) to implement a low-level attack and drop the ransomware on the system. If the UAC is set to the maximum, the victim is asked to allow the malicious program to make changes on the computer repeatedly. The “Yes” will execute the malware.

Petya GoldenEye virus version

Mamba ransomware itself is extremely dangerous and may infect practically any PC, but its primary targets are the computers of German companies. This malicious program enters the victims’ computers stealthily and carries out its malicious activities without the computer owner even suspecting the computer might be under threat.

In this version, hackers finally managed to apply a Salsa20 encryption algorithm eliminating the previous vulnerabilities of the malware. Otherwise, the virus functions similarly to its previous version, spreading in the form of a corrupted PDF file. The virus developers have been mainly using spam emails and fake software updates to spread the threat.

Bad Rabbit ransomware virus is also known as Diskcoder.D. It was discovered on October 2017 when it hit organizations in Russia and Ukraine. Malware uses a combination of AES and RSA encryption ciphers and appends .encrypted file extensions. This version of malware spreads via fake Flash updates and can exploit SMB vulnerabilities. Additionally, it can not only encrypt files and demand to pay 0.05 Bitcoins but steal credentials.

Malware mostly spreads via malicious spam emails

Petya virus is usually distributed through spam emails, which contain a Dropbox download link to a file called “application folder-gepackt.exe” attached to them. The virus activates when the mentioned file is downloaded and opened. However, the latest version of this virus uses the CVE-2017-0199 Office RTF vulnerability to infiltrate a computer.

As you already know how this virus spreads, you might already have an idea how to protect your computer from this virus attack. Of course, you need to be careful about opening emails that are received from suspicious and unknown sources, feature supposedly relevant information which does not relate to your expected correspondence[13].

Petya ransomware malspam

You should also be sure to download MS17-010 and other Microsoft patches to fix SMB vulnerability. It is believed to be one of the ransomware sources at the moment. Finally, make sure you equip your system with reputable antivirus software and keep it up to date.

To protect your files from being encrypted, it is always recommended to backup them from time to time. In this case, you should make sure that your important pieces of data are stored in three physical places, such as the cloud, some external drive, etc.

Petya removal guide and data recovery possibilities

As we already mentioned, uninstalling the ransomware from your computer is essential for the safety of your future files. Also, restoring data from external drives can only be carried out when the virus and all its related parts are fully eliminated from the PC. Otherwise, it may infiltrate and lock the files in these external platforms as well.

You cannot remove it from your computer through the simple uninstall procedure because such option is not feasible with this malicious program. This means that you will have to delete the virus automatically. Automatic malware removal should be carried out using some trusted antivirus software, which will detect and delete this virus from your computer. For this tasks, we recommend FortectIntego, SpyHunterCombo Cleaner or MalwarebytesMalwarebytes.

If you are encountering some troubles removing this virus automatically or it blocks your antivirus from running, you can always check our detailed virus removal instructions provided at the end of this article.

Did this guide help?

2 comments

  1. MontyPytonFan4Ever

    I cannot imagine losing my files! Program like these are the worst...

  2. Ulysses

    It does not only target companies PCs!!! My friend got his files locked not that while ago. Im afraid he might have sent this virus to me by mail or something...

Spyware News
Privacy preferences

We use cookies to improve your experience and analyze traffic. Some cookies enable embedded content like videos and social posts. Choose what you allow — you can change this anytime.