Vaccine for NotPetya/Petna/Petya (batch file/instructions)

LASER_oneXM

Level 37
Thread author
Verified
Top Poster
Well-known
Feb 4, 2016
2,520
hi

simply take a look at the article. You can find there a batch file or if you want you can follow the instructions in the article to vaccine your PC:

How to Enable the NotPetya/Petna/Petya Vaccine

To vaccinate your computer so that you are unable to get infected with the current strain of NotPetya/Petya/Petna (yeah, this naming is annoying), simply create a file called perfc in the C:\Windows folder and make it read only. For those who want a quick and easy way to perform this task, Lawrence Abrams has created a batch file that performs this step for you.

This batch file can be found at: https://download.bleepingcomputer.com/bats/nopetyavac.bat

For those who wish to vaccinate their computer manually, you can so using the following steps. Please note that these steps are being created to make it as easy as possible for those with little computer experience. For those who have greater experience, you can do it in quite a few, and probably better, ways.
 

Parsh

Level 25
Verified
Honorary Member
Top Poster
Malware Hunter
Well-known
Dec 27, 2016
1,480
That's a nice cheat there, to prevent NotPetya from creating or modifying that "perfc.dat" file in the concerned directory.
This method evolves from the point discovered earlier about its working:
DDV5pgGUMAA4dC4 (1).jpg
So, restriction on PSExec utility from Sysinternals suite is beneficial.
The spreading of attack via exploiting PSExec appears to harm even the patched machines ofcourse, since this is another vector of spreading, different than the primary means of Wannacry infection. EternalBlue modifications are anyways used.
 
Last edited:

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top