Skip to main content

Arm your PC against the global NotPetya ransomware attack with these easy tips

NotPetya ransomware
Trend Micro
On June 26, 2017, a new type of ransomware called NotPetya began attacking computing systems across the globe. It originally targeted major systems in the Ukraine including banks, postal services, airports, power companies, and more. But it quickly spread outside its targeted zone, expanding across 64 countries including Brazil, Germany, Russia, and even the United States. We take a look at what this NotPetya ransomware is, what systems are affected, and how you can stand guard against this specific attack.

What is the NotPetya ransomware?

NotPetya (or Petwrap) is based on an older version of the Petya ransomware, which was originally designed to hold files and devices hostage in turn for Bitcoin payment. However, despite NotPetya’s attempt to collect money in its fast-moving global attack, it doesn’t appear to be strictly out for money. Instead, NotPetya is encrypting the filesystems of machines to damage companies. The ransomware aspect is apparently just a cover.

What makes NotPetya dangerous is that underneath the ransomware-based front is an exploit called EternalBlue, allegedly designed by the United States National Security Administration (aka the NSA). It targets a specific, vulnerable network protocol called Server Message Block (version 1) used for sharing printers, files, and serial ports between networked Windows-based PCs. Thus, the vulnerability allows remote attackers to send and execute malicious code on a target computer. The Shadow Brokers hacker group leaked EternalBlue in April of 2017.

The NotPetya ransomware also includes a “worm” component. Typically, victims fall prey to ransomware by downloading and executing malware disguised as a legitimate file attached in an email. In turn, the malware encrypts specific files and posts a popup window on the screen, demanding payment in Bitcoins to unlock those files.

However, the Petya ransomware that surfaced in early 2016 took that attack a step further by encrypting the PC’s entire hard drive or solid state drive by infecting the master boot record, thus overwriting the program that begins the Windows boot sequence. This resulted in an encryption of the table used to keep track of all local files (NTFS), preventing Windows from locating anything stored locally.

Despite its ability to encrypt an entire disk, Petya was only capable of infecting a single target PC. However, as seen with the recent WannaCry outbreak, ransomware now has the capability to move from PC to PC on a local network without any user intervention. The new NotPetya ransomware is capable of the same lateral network infestation, unlike the original Petya version.

According to Microsoft, one of NotPetya’s attack vectors is its ability to steal credentials or re-use an active session.

“Because users frequently log in using accounts with local admin privileges and have active sessions opens across multiple machines, stolen credentials are likely to provide the same level of access the user has on other machines,” the company reports. “Once the ransomware has valid credentials, it scans the local network to establish valid connections.”

The NotPetya ransomware can also use file-shares to multiply itself across the local network, and infest machines that are not patched against the EternalBlue vulnerability. Microsoft even mentions EternalRomance, another exploit used against the Server Message Block protocol supposedly conjured up by the NSA.

“This is a great example of two malware components coming together to generate more pernicious and resilient malware,” said Ivanti Chief Information Security Officer Phil Richards.

On top of NotPetya’s fast, widespread attack, there exists another problem: payment. The ransomware provides a popup window demanding victims to pay $300 in Bitcoins using a specific Bitcoin address, Bitcoin wallet ID, and personal installation number. Victims send this information to a provided email address that responds with an unlock key. That email address was quickly shut down once German parent email provider Posteo discovered its evil intent.

“We became aware that ransomware blackmailers are currently using a Posteo address as a means of contact. Our anti-abuse team checked this immediately – and blocked the account straight away,” the company said. “We do not tolerate the misuse of our platform: The immediate blocking of misused email accounts is the necessary approach by providers in such cases.”

That means any attempt to pay would never get through, even if payment were the goal of the malware.

Finally, Microsoft indicates that the attack originated with Ukrainian company M.E.Doc, the developer behind the MEDoc tax accounting software. Microsoft doesn’t appear to be pointing fingers, but instead stated that it has proof that “a few active infections of the ransomware initially started from the legitimate MEDoc updater process.” This type of infection, notes Microsoft, is a growing trend.

What systems are at risk?

For now, the NotPetya ransomware seems to be focused on attacking Windows-based PCs in organizations. For example, the entire radiation monitoring system located in the Chernobyl nuclear power plant was knocked offline in the attack. Here in the United States, the attack hit the entire Heritage Valley Health System, affecting all facilities that rely on the network, including the Beaver and Sewickley hospitals in Pennsylvania. The Kiev Boryspil Airport in the Ukraine suffered flight schedule delays, and its website was knocked offline due to the attack.

Unfortunately, there’s no information pointing to the exact versions of Windows the NotPetya ransomware is targeting. Microsoft’s security report doesn’t list specific Windows releases, although to be safe, customers should assume that all commercial and mainstream releases of Windows spanning Windows XP to Windows 10 fall within the attack window. After all, even WannaCry targeted machines with Windows XP installed.

Who do you protect yourself against it?

Microsoft has already issued updates blocking the EternalBlue and EternalRomance exploits used by this latest malware outbreak. Microsoft addressed both on March 14, 2017, with the release of security update MS17-010. That was more than three months ago, meaning companies attacked by NotPetya through this exploit have yet to update their PCs. Microsoft suggests that customers install security update MS17-010 immediately, if they haven’t done so already.

Installing the security update is the most effective way to protect your PC

For organizations that can’t apply the security update just yet, there are two methods that will prevent the spread of the NotPetya ransomware: disabling Server Message Block version 1 completely, and/or creating a rule in the router or firewall that blocks incoming Server Message Block traffic on port 445.

There’s one other simple way to prevent infection. Start by opening File Explorer and loading up the Windows directory folder, which is typically “C:\Windows.” There you will need to create a file named “perfc” (yes with no extension) and set its permissions to “Read Only” (via General/Attributes).

Of course, there’s no actual option to create a new file in the Windows directory, just the New Folder option. The best way to create this file is to open Notepad and save a blank “perfc.txt” file in the Windows folder. After that, simply delete the “.txt” extension in the name, accept Window’s popup warning, and right-click on the file to change its permissions to “Read Only.”

Thus, when NotPetya infects a PC, it will scan the Windows folder for that specific file, which is actually one of its own filenames. If the perfc file is already present, NotPetya assumes that the system is already infected, and becomes dormant. However, with this secret now public, hackers may go back to the drawing board and revise the NotPetya ransomware to depend on a different file.

Editors' Recommendations

Kevin Parrish
Former Digital Trends Contributor
Kevin started taking PCs apart in the 90s when Quake was on the way and his PC lacked the required components. Since then…
Scores of people are downgrading back to Windows 10
The screen of the Galaxy Book4 Ultra.

Microsoft continues to struggle with the adoption of Windows 11 among its users. Recent data from Statcounter reveals a notable decline in the operating system’s market share, specifically compared with Windows 10.

After reaching an all-time high of 28.16% in February 2024, Windows 11 has experienced a drop, falling below the 26% mark.

Read more
The ASUS ROG Ally handheld gaming PC has a nice discount today
Starfield running on the Asus ROG Ally.

If you love the power of gaming PCs and the portability of the Nintendo Switch, you should think about getting a handheld gaming PC like the Asus ROG Ally. If you're interested, it's currently on sale from Walmart with an $87 discount that pulls its price down to $400 from $487. It's a pretty popular device so we expect this offer to attract a lot of attention, which means it's probably not going to last long. If you want to get this handheld gaming PC for this cheap, you should proceed with the transaction immediately.

Why you should buy the Asus ROG Ally handheld gaming PC
It's the version of the Asus ROG Ally with the AMD Ryzen Z1 Extreme that's listed in our roundup of the best handheld gaming PCs, but the Asus ROG Ally Z1 is still a worthwhile purchase because it gives you a gaming PC that you can bring with you wherever you go. Unlike a gaming laptop that's still pretty bulky with its large screen and keyboard, the Asus ROG Ally takes on the form of a portable gaming console like the Nintendo Switch, but with Windows 11 pre-installed as a familiar operating system to navigate and launch the best PC games.

Read more
The HP Victus gaming PC with RTX 3060 has a $550 discount
The HP Victus 15L gaming PC in white.

Gamers don't need to spend more than $1,000 if they want to buy a new gaming PC because there are affordable options like the HP Victus 15L gaming desktop. From its original price of $1,400, you can get it for just $850 as HP has applied a $550 discount on this machine. However, you shouldn't delay your purchase because there's no assurance that the gaming PC will still be 39% off tomorrow. If you want to make sure that you get it for less than $1,000, you're going to have to complete the transaction for it within the day.

Why you should buy the HP Victus 15L gaming desktop
You shouldn't expect the HP Victus 15L gaming desktop to match the performance of the top-of-the-line models of the best gaming PCs, but it's surprisingly powerful for its cost. Inside it are the 13th-generation Intel Core i7 processor and the Nvidia GeForce RTX 3060 graphics card, with 16GB of RAM that our guide on how much RAM do you need says is the best place to start for gaming. It's enough to play today's best PC games without any issues, and it may even be capable of running the upcoming PC games of the next few years if you're willing to dial down the settings for the more demanding titles.

Read more