Backdoor:W32/IRCBot.ST

Classification

Malware

Backdoor

W32

Backdoor.Win32.IRCBot.st

Summary

A remote administration tool (RAT) that bypasses the security features of a program, computer or network to give unauthorized access or control to its user.

Removal

Automatic action

Based on the settings of your F-Secure security product, it will either move the file to the quarantine where it cannot spread or cause harm, or remove it.

Suspect a file is incorrectly detected (a False Positive)?

A False Positive is when a file is incorrectly detected as harmful, usually because its code or behavior resembles known harmful programs. A False Positive will usually be fixed in a subsequent database update without any action needed on your part. If you wish, you may also:

  • Check for the latest database updates

    First check if your F-Secure security program is using the latest detection database updates, then try scanning the file again.

  • Submit a sample

    After checking, if you still believe the file is incorrectly detected, you can submit a sample of it for re-analysis.

    NOTE If the file was moved to quarantine, you need to collect the file from quarantine before you can submit it.

  • Exclude a file from further scanning

    If you are certain that the file is safe and want to continue using it, you can exclude it from further scanning by the F-Secure security product.

    Note You need administrative rights to change the settings.

Find out more

Knowledge Base

Find the latest advice in our Community Knowledge Base.

User Guide

See the user guide for your product on the Help Center.

Contact Support

Chat with or call an expert for help.

Submit a sample

Submit a file or URL for further analysis.

Technical Details

IRCBot.ST (also known as Mocbot) is the first variant of this IRC backdoor-worm to use the recently discovered MS06-040 exploit to spread itself. When a hacker initiates a scan within a defined range of IP addresses, the backdoor attempts to connect to the selected IP addresses and deliver the exploit to those computers. If a remote computer is vulnerable, then it becomes infected with the backdoor.

After being run, the backdoor installs itself to the system, modifies several security settings, attempts to connect to a remote IRC server, and starts listening for commands from a remote hacker.

The backdoor's file is a Windows PE executable, 9609 bytes long, packed with MEW file compressor and patched with PE_Patch. The backdoor's code has an additional encryption layer (simple XOR).

Installation

After the backdoor's file is run, it creates a mutex with the name "wgareg". This is done to prevent running more than one copy of the backdoor on the system.

The backdoor also checks for the service with the name "wgareg" and if it's active, it skips the installation phase. During its startup phase, the backdoor creates a thread that checks for active debuggers and terminates the backdoor's process if a debugger is detected.

Just before exiting, the backdoor encrypts its code with the same subroutine it used to decrypt at startup.

During the installation phase, the backdoor copies its file to the Windows System folder (usually named C:\Windows\System32\ by default) with the wgareg.exe name and then creates a service for that file with the following name and description:

  • Windows Genuine Advantage Registration Service

This service ensures that the user's Microsoft Windows operating system is genuine and registered. Stopping or disabling this service will result in system instability.

The backdoor then changes several settings in the Registry including those, related to Windows Security Center and Firewall.

Activity

Once active, the backdoor attempts to connect to one of the following remote IRC servers on TCP port 18067:

  • bniu.househot.com
  • ypgw.wallloan.com

The backdoor generates a random nickname and joins a password-protected channel, #n1, and waits for commands from a channel operator. A remote hacker who is controlling the backdoor can do any of the following:

  • Start any files located on the remote (infected) computer
  • Update the backdoor's file from the Internet
  • Disable and uninstall the backdoor
  • Find files on the remote (infected) computer
  • Create a remote command shell
  • Flush the DNS cache
  • Send commands to an AIM (AOL Instant Messenger) window
  • Connect to a different IRC server
  • Create a simple proxy
  • Perform an SYN flood
  • Perform a DDoS (Distributed Denial of Service) attack
  • Spread to vulnerable computers using the MS06-040 exploit

Registry Modifications

Sets these values:

  • [HKEY_LOCAL_MACHINE\software\microsoft\ole] "enabledcom"
  • [HKEY_LOCAL_MACHINE\system\currentcontrolset\control\lsa] "restrictanonymous" "restrictanonymoussam"
  • [HKEY_LOCAL_MACHINE\system\currentcontrolset\services \lanmanserver\parameters] "autoshareserver"
  • [HKEY_LOCAL_MACHINE\software\microsoft\security center] "antivirusdisablenotify" "antivirusoverride" "firewalldisablenotify" "firewalldisableoverride"
  • [HKEY_LOCAL_MACHINE\software\policies\microsoft\windowsfirewall \domainprofile] "enablefirewall"
  • [HKEY_LOCAL_MACHINE\software\policies\microsoft\windowsfirewall \standardprofile] "enablefirewall"