Follow:

 

Win32/Rustock


Win32/Rustock is a multi-component family of rootkit-enabled backdoor trojans, which were historically developed to aid in the distribution of 'spam' e-mail. First discovered sometime in early 2006, Rustock has evolved to become a prevalent and pervasive threat. Recent variants appear to be associated with the incidence of rogue security programs.


What to do now

To detect and remove this threat and other malicious software that may be installed on your computer, run a full-system scan with an appropriate, up-to-date, security solution. The following Microsoft products detect and remove this threat:

For more information on antivirus software, see http://www.microsoft.com/windows/antivirus-partners/.

Additional recovery instructions
This threat uses stealth, and you may need to boot to a trusted environment in order to remove it. The threat may also make changes to your computer that makes it difficult for you to download, install or update your virus protection, whether you have a complete antivirus such as Microsoft Security Essentials installed on your computer or not.

If you suspect your computer has been compromised, we recommend using the Windows Defender Offline to detect and remove this threat.

Using Windows Defender Offline

The way Windows Defender Offline works, is by allowing you to:

  • Download a copy of the tool from a computer that has access to the internet
  • Save a copy of the recovery tool to a removable drive, in order to create bootable media
  • Run the recovery tool on a compromised computer

You might want to use Windows Defender Offline when:

  • You need to scan your computer to check for rootkits and other malware
  • You are infected with malware that prevents you from downloading and installing an antivirus or the latest updates for your antivirus software
  • Your antivirus does not detect or remove advanced malware, such as a rootkit

Note: Windows Defender Offline is not a replacement for a full antivirus solution providing ongoing protection; it is meant to be used in situations where you cannot start or otherwise effectively scan your infected computer due to a virus or other malware actively running on the computer and impeding the effective action of antimalware software. For no-cost, real-time protection that helps guard your home or small business computers against viruses, spyware, and other malicious software, download Microsoft Security Essentials.

  1. Determine if you require the 32-bit or 64-bit download.

    See the Microsoft Help and Support article for instructions on how to determine whether a computer is running a 32-bit version or 64-bit architecture of the Windows operating system.
  2. Using a computer that can connect to the internet, download the version of the Windows Defender Offline that applies to the affected computer.

    If the affected computer is a:

    - 32-bit computer, then download the 32-bit version here.
    - 64-bit computer, then download the 64-bit version here.

    Note: In order for the recovery tool to be effective, make sure you download the version that matches the architecture of the affected computer. For example, if your 64-bit desktop is affected, you will need to download the 64-bit version of the Windows Defender Offline and save it to a removable drive.
  3. Save the downloaded file to a local drive on your computer.
  4. Launch the downloaded file, and create a bootable device by following the instructions on the wizard.

    Note: We recommend creating a bootable USB or CD; if you create a bootable USB, this can be updated for future use.
  5. From the affected computer, boot from the USB or CD you created in step 4.

    Note: You may need to set the boot order in the BIOS to do this. This will be device specific, so if you are unsure, refer to your system manual or manufacturer.
  6. Follow the prompts to run a full system scan.

    Depending on the outcome of the scan, your next steps will vary. Follow the prompts from Windows Defender Offline to manage any threat detections.

Steps you can take once your computer has been cleaned

  • Install security software, such as Microsoft Security Essentials, or other products that provide a complete, real-time antivirus solution.
  • Keep your antivirus up to date by making sure you have the latest definitions.
  • Use the Microsoft Safety Scanner if you suspect you are infected but are unable to confirm this with your existing antivirus solution.

Threat behavior

Win32/Rustock is a multi-component family of rootkit-enabled backdoor trojans, which were historically developed to aid in the distribution of 'spam' e-mail. First discovered sometime in early 2006, Rustock has evolved to become a prevalent and pervasive threat. Recent variants appear to be associated with the incidence of rogue security programs.
Installation
Normally the trojan consists of 3 components which are embedded within each other - the dropper (which runs in user mode), the driver's installer, and the actual rootkit driver, (both of which run in kernel mode). All of the trojan’s components are encrypted, and the actual driver component is also packed with plib.
 
When executed the dropper checks if the rootkit is already active.  There are a number of global events which Rustock uses to determine whether it is already present. We have observed it setting the following:
 
{60F9FCD0-8DD4-6453-E394-771298D2A470}
{DC5E72A0-6D41-47e4-C56D-024587F4523B}
{C8453B23-1087-27d9-1394-CDBF03EC72D8}
{5B37FB3B-984D-1E57-FF38-AA681BE5C8D8}.
(Note that this list is not exhaustive.)
 
The dropper facilitates updates and the deployment of the rootkit’s driver installer. The installer is first decrypted, and then dropped and loaded as a system driver. The rootkit’s dropper might attempt to disguise the driver’s installer as a legitimate, but rarely used, system driver.
 
For instance: Rustock may stop the “beep” service or “null” driver using Service Control Manager (SCM), overwrite <system folder>\drivers\beep.sys or null.sys with the rootkit loader, and then reload the “beep” or “null” drivers.  If unsuccessful, the file name of the dropped installer will normally be either hardcoded or randomly generated (depending on the Rustock variant), as in the examples listed below:
  • glaide32.sys - hardcoded
  • lzx32.sys - hardcoded
  • 7005d59.sys - randomly generated 
 
Some Rustock variants drop the installer using the \\127.0.0.1\admin$\system32\drivers\<drivers name.sys> path, attempting to further complicate real-time rootkit identification and detection. Earlier variants of the Rustock family also used alternative streams to store the installer (for example System32:lzx32.sys) but this technique was dropped in favor of the stealth mechanism provided by system services hooking.
 
The registry is set to reflect the presence of the rootkit driver installer on the system. For example, if the driver installer is 7005d59.sys, thye following modifications would be made under the following registry entry:
 
HKLM\SYSTEM\CurrentControlSet\Services\7005d59
the following keys are set:
ImagePath = \SystemRoot\System32\drivers\7005d59.sys
Type = 1
Start = 1
ErrorControl = 1
Payload
Uses Stealth
Once the driver installer is loaded it launches the rootkit driver. The rootkit installer decrypts and then decompresses the actual code of the rootkit driver (the driver’s code is packed with aplib), injects the copy of the driver into itself, and transfers execution to the code of the rootkit driver. Such complexity is aimed at further complicating the detection and analysis of this rootkit.
 
The rootkit driver hooks system functions to further hide itself and the components of the rootkit from detection.  The driver checks for the presence of the global event to check if an instance of the rootkit is running, and creates one if it doesn’t already exist.
 
The driver patches the System Service Dispatch Table (SSDT), hooking the events ZwCreateEvent, ZwCreateKey, and ZwOpenKey. This makes it possible for the driver to filter requests containing the driver’s name and return STATUS_UNSUCCESSFUL if matched, ultimately avoiding detection by AV and other monitoring software.
 
In an attempt to further hide the network and disk I/O operations as well as its functional activity, the driver hooks the set of ntoskrnl.exe and ntdll.dll API’s and communicates directly with NTFS and TCP/IP devices such as NTFS, IP, TCP, Udp, RawIP and IPMULTICAST. 
 
Analysis by Oleg Petrovsky and Alexey Polyakov

Symptoms

There are no obvious symptoms that indicate the presence of this malware on an affected machine.

Prevention

Take the following steps to help prevent infection on your computer:
  • Enable a firewall on your computer.
  • Get the latest computer updates for all your installed software.
  • Use up-to-date antivirus software.
  • Limit user privileges on the computer.
  • Use caution when opening attachments and accepting file transfers.
  • Use caution when clicking on links to Web pages.
  • Avoid downloading pirated software.
  • Protect yourself against social engineering attacks.
  • Use strong passwords.
Enable a firewall on your computer
Use a third-party firewall product or turn on the Microsoft Windows Internet Connection Firewall.
Get the latest computer updates
Updates help protect your computer from viruses, worms, and other threats as they are discovered. It is important to install updates for all the software that is installed in your computer. These are usually available from vendor Web sites.
 
You can use the Automatic Updates feature in Windows to automatically download future Microsoft security updates while your computer is on and connected to the Internet.
Use up-to-date antivirus software
Most antivirus software can detect and prevent infection by known malicious software. To help protect you from infection, you should always run antivirus software, such as Microsoft Security Essentials, that is updated with the latest signature files. For more information, see http://www.microsoft.com/security/antivirus/av.aspx.
Limit user privileges on the computer
Starting with Windows Vista and Windows 7, Microsoft introduced User Account Control (UAC), which, when enabled, allowed users to run with least user privileges. This scenario limits the possibility of attacks by malware and other threats that require administrative privileges to run.
 
You can configure UAC in your computer to meet your preferences:
Use caution when opening attachments and accepting file transfers
Exercise caution with e-mail and attachments received from unknown sources, or received unexpectedly from known sources.  Use extreme caution when accepting file transfers from known or unknown sources.
Use caution when clicking on links to Web pages
Exercise caution with links to Web pages that you receive from unknown sources, especially if the links are to a Web page that you are not familiar with, unsure of the destination of, or suspicious of. Malicious software may be installed in your computer simply by visiting a Web page with harmful content.
Avoid downloading pirated software
Threats may also be bundled with software and files that are available for download on various torrent sites. Downloading "cracked" or "pirated" software from these sites carries not only the risk of being infected with malware, but is also illegal. For more information, see 'The risks of obtaining and using pirated software'.
Protect yourself from social engineering attacks
While attackers may attempt to exploit vulnerabilities in hardware or software to compromise a computer, they also attempt to exploit vulnerabilities in human behavior to do the same. When an attacker attempts to take advantage of human behavior to persuade the affected user to perform an action of the attacker's choice, it is known as 'social engineering'. Essentially, social engineering is an attack against the human interface of the targeted computer. For more information, see 'What is social engineering?'.
Use strong passwords
Attackers may try to gain access to your Windows account by guessing your password. It is therefore important that you use a strong password – one that cannot be easily guessed by an attacker. A strong password is one that has at least eight characters, and combines letters, numbers, and symbols. For more information, see http://www.microsoft.com/protect/yourself/password/create.mspx.

Alert level: High
This entry was first published on: Jan 18, 2007
This entry was updated on: Aug 27, 2013

This threat is also detected as:
  • Spam-Mailbot.c!Rootkit (McAfee)
  • Backdoor.Rustock (Sunbelt Software)
  • Backdoor.Rustock (Symantec)