Home / malwarePDF  

IRCBot.ST


First posted on 01 March 2007.
Source: SecurityHome

Aliases :

IRCBot.ST is also known as W32.Wargbot, IRC-Mocbot!MS06-040, W32/Cuebot-L, Backdoor.Win32.IRCBot.st, WORM_IRCBOT.JL.

Explanation :

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. 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.

criptionThe 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).

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:WindowsSystem32 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
  • Ensures that your copy of Microsoft Windows is genuine and registered. Stopping or disabling this service will result in system instability.
Then the backdoor changes several settings in the Registry including those, related to Windows Security Center and Firewall. The following key values are set:
  • [HKEY_LOCAL_MACHINEsoftwaremicrosoftole]
    "enabledcom"

  • [HKEY_LOCAL_MACHINEsystemcurrentcontrolsetcontrollsa]
    "restrictanonymous"
    "restrictanonymoussam"

  • [HKEY_LOCAL_MACHINEsystemcurrentcontrolsetservices
    lanmanserverparameters]
    "autoshareserver"

  • [HKEY_LOCAL_MACHINEsoftwaremicrosoftsecurity center]
    "antivirusdisablenotify"
    "antivirusoverride"
    "firewalldisablenotify"
    "firewalldisableoverride"

  • [HKEY_LOCAL_MACHINEsoftwarepoliciesmicrosoftwindowsfirewall
    domainprofile]
    "enablefirewall"

  • [HKEY_LOCAL_MACHINEsoftwarepoliciesmicrosoftwindowsfirewall
    standardprofile]
    "enablefirewall"
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
The backdoor uses the recently discovered MS06-040 exploit to spread to remote computers. 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.

Last update 01 March 2007

 

TOP