Library
My library

+ Add to library

Contact us
24/7 Tech support | Rules regarding submitting

Send a message

Your tickets

Profile

Trojan.Mayachok.2

Added to the Dr.Web virus database: 2011-06-24

Virus description added:

A VBR bootkit designed to block the Internet access and display a specially generated web page in the browser prompting the user to subscribe to some service.

Before launching an attack on a compromised computer, the dropper checks the infection status; that is, if the HKLM\Software\Classes\CLSID sub-tree does not contain a relevant key, the bootkit proceeds to infect the computer.

While infecting computers with Windows Vista and Windows 7 operating systems, the Trojan attempts to acquire higher privileges by constantly relaunching itself. The dropper contains not only the 32-bit driver but also the 64-bit driver responsible for the future loading of the Trojan’s main functionality. Depending on the bitness of the operating system, a corresponding driver is saved on the disk. It can be added either to the beginning of the disk (prior to the first active partition) if there is enough space or to its end.

Then the Trojan infects the VBR (Volume Boot Record). Trojan.Mayachok.2 aborts the infection process if the partition’s file system is different from NTFS. By analyzing the boot record, the Trojan searches for a place to be installed and rewrites the code that resides there. The original code is compressed using the APLIB library (http://www.ibsensoftware.com) and is added after the virus code. The number of the starting sector and its size are also added to the VBR.

Once the virus loader gains control, it reserves some memory space, places itself there and intercepts interrupt 13h to view the contents of the sectors read from the disk. Then the malware loads its driver from the disk and unpacks the original VBR code to the initial place. The system loader gets control back.

Next, depending on the loader used by the system, the sequence of setting/clearing intercepts in the downloadable modules (ntldr, bootmgr, osloader.exe, winload.exe, and so on) is carried out. It should be noted that apart from ordinary intercepts (splicing) for key bridges, machine debug registers (dr0-dr7) and code tracing (step into) are used.

Virus driver output point is called twice. This is caused by the close interaction between the infected VBR and the driver. Since the virus VBR code is just 2,078 bytes in size, the virus makers embedded part of its malicious features into the driver’s body. Once the driver is launched for the first time, it adds itself to the following lists in LOADER_PARAMETER_BLOCK: to LoadOrderList as the first module’s copy (operating system kernel) and to BootDriverList as a boot driver supposedly written in \Registry\Machine\System\CurrentControlSet\Services\null. Thus, the malware imitates the booting of an ordinary boot driver.

Next time the driver is launched by the system, it is considered to be booted by the system itself. The purpose of the driver is to inject its code into the running processes. The code injection is carried out by setting the notifications using PsCreateProcessNotifyRoutine and PsCreateProcessNotifyRoutine features with the further call of an asynchronous function via the APC mechanism. After injecting itself into the browsers processes (Microsoft Internet Explorer, Mozilla Forefox, Opera, Google Chrome, and other browsers are supported), the malicious module blocks their normal work and displays the contents generated by cybercriminals.

Curing recommendations

  1. If the operating system (OS) can be loaded (either normally or in safe mode), download Dr.Web Security Space and run a full scan of your computer and removable media you use. More about Dr.Web Security Space.
  2. If you cannot boot the OS, change the BIOS settings to boot your system from a CD or USB drive. Download the image of the emergency system repair disk Dr.Web® LiveDisk , mount it on a USB drive or burn it to a CD/DVD. After booting up with this media, run a full scan and cure all the detected threats.
Download Dr.Web

Download by serial number

Use Dr.Web Anti-virus for macOS to run a full scan of your Mac.

After booting up, run a full scan of all disk partitions with Dr.Web Anti-virus for Linux.

Download Dr.Web

Download by serial number

  1. If the mobile device is operating normally, download and install Dr.Web for Android. Run a full system scan and follow recommendations to neutralize the detected threats.
  2. If the mobile device has been locked by Android.Locker ransomware (the message on the screen tells you that you have broken some law or demands a set ransom amount; or you will see some other announcement that prevents you from using the handheld normally), do the following:
    • Load your smartphone or tablet in the safe mode (depending on the operating system version and specifications of the particular mobile device involved, this procedure can be performed in various ways; seek clarification from the user guide that was shipped with the device, or contact its manufacturer);
    • Once you have activated safe mode, install the Dr.Web for Android onto the infected handheld and run a full scan of the system; follow the steps recommended for neutralizing the threats that have been detected;
    • Switch off your device and turn it on as normal.

Find out more about Dr.Web for Android