WORM_QAKBOT.WIN

 Analysis by: Cris Nowell Pantanilla

 ALIASES:

Backdoor:Win32/Qakbot.gen!B (Microsoft); Trojan-PSW.Win32.Qbot.ckw (Kaspersky) Backdoor.IRC.Bot (Mcafee)

 PLATFORM:

Windows 2000, Windows XP, Windows Server 2003

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Propagates via network shares

This worm is capable of monitoring the browsing activities of the affected computer and logs all information related to finance-related websites containing certain strings.

It also collects information such as account name, browsing activities, certificates, and system information.

It blocks security-related websites.

It downloads components from certain URLs.

This worm arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It drops copies of itself into network drives.

It also has rootkit capabilities, which enables it to hide its processes and files from the user.

  TECHNICAL DETAILS

File Size:

339,968 bytes

File Type:

PE

Memory Resident:

Yes

Initial Samples Received Date:

09 Apr 2011

Payload:

Compromises system security, Downloads files, Steals information, Hides files and processes

Arrival Details

This worm arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

This worm drops the following files:

  • %System Root%\Documents and Settings\All Users\Microsoft\{random characters}\{random characters}.dll - detected as TROJ_QBOT.SMA1
  • %System Root%\Documents and Settings\All Users\Microsoft\{random characters}\{random characters-1}.dll - detected as Mal_Qakcfg1

(Note: %System Root% is the root folder, which is usually C:\. It is also where the operating system is located.)

It drops the following copies of itself into the affected system:

  • %System Root%\Documents and Settings\All Users\Microsoft\{random characters}\{random characters}.exe

(Note: %System Root% is the root folder, which is usually C:\. It is also where the operating system is located.)

It creates the following folders:

  • %System Root%\Documents and Settings\All Users\Microsoft\{random characters}

(Note: %System Root% is the root folder, which is usually C:\. It is also where the operating system is located.)

It is injected into the following processes running in memory:

  • EXPLORER.EXE
  • IEXPLORE.EXE

Autostart Technique

This worm adds the following registry entries to enable its automatic execution at every system startup:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
{random characters} = "%System Root%\Documents and Settings\All Users\Microsoft\{random characters}\{random characters}.exe"

It modifies the following registry entries to ensure it automatic execution at every system startup:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
{legitimate application} = ""%System Root%\Documents and Settings\All Users\Application Data\Microsoft\{random folder name}\{random file name}.exe" /c {path and file name of legitimate application}"

(Note: The default value data of the said registry entry is {path and file name of legitimate application}.)

Propagation

This worm drops copies of itself into network drives.

Rootkit Capabilities

This worm also has rootkit capabilities, which enables it to hide its processes and files from the user.

NOTES:

It may accept the following parameters:

  • /i - drop the dll and config file to current directory
  • /s - start service
  • /t - terminate any process with a similar filename

It enumerates network shares and drops a copy of the main executable and the package file to default shares.

This worm's configuration file contains the following information:

  • - Reference to the components and their corresponding random filenames in the system
  • - IRC data
  • - FTP hosts (upload sites)
  • - Infection log

It is capable of monitoring the browsing activities of the affected computer and logs all information related to finance-related websites containing the following strings:

  • /cashman/
  • /cashplus/
  • /cmserver/
  • access.jpmorgan.com
  • business-eb.ibanking-services.com
  • business-eb.ibanking-services.com
  • businessaccess.citibank.citigroup.com
  • businessonline.huntington.com
  • cashproonline.bankofamerica.com
  • cashproonline.bankofamerica.com
  • cpw-achweb.bankofamerica.com
  • directline4biz.com
  • directpay.wellsfargo.com
  • ebanking-services.com
  • express.53.com
  • ibc.klikbca.com
  • itreasury.regions.com
  • itreasurypr.regions.com
  • ktt.key.com
  • moneymanagergps.com
  • netconnect.bokf.com
  • onb.webcashmgmt.com
  • onlineserv/CM
  • premierview.membersunited.org
  • singlepoint.usbank.com
  • tmconnectweb
  • treas-mgt.frostbank.com
  • treasury.pncbank.com
  • web-cashplus.com

It may also collect the following information:

  • - Account name
  • - Browsing activities
  • - Certificates
  • - City
  • - Cookies
  • - Country
  • - IE password protected sites
  • - IE user namesand passwords
  • - IP address
  • - MSN user name and password
  • - Operating system
  • - Outlook user name and password
  • - Public Storage - SMTP, POP3, LDAP
  • - System Information

It blocks access to websites with the following strings:

  • .eset
  • agnitum
  • ahnlab
  • arcabit
  • avast
  • avg
  • avira
  • avp
  • bit9
  • bitdefender
  • castlecops
  • centralcommand
  • clamav
  • comodo
  • computerassociates
  • cpsecure
  • defender
  • drweb
  • emsisoft
  • esafe
  • etrust
  • ewido
  • f-prot
  • f-secure
  • fortinet
  • gdata
  • grisoft
  • hacksoft
  • hauri
  • ikarus
  • jotti
  • k7computing
  • kaspersky
  • malware
  • mcafee
  • networkassociates
  • nod32
  • norman
  • norton
  • panda
  • pctools
  • prevx
  • quickheal
  • rising
  • rootkit
  • securecomputing
  • sophos
  • spamhaus
  • spyware
  • sunbelt
  • symantec
  • threatexpert
  • trendmicro
  • virus
  • webroot.
  • wilderssecurity
  • windowsupdate

It does not continue its routine if its host process is any of the following:

  • msdev.exe
  • dbgview.exe
  • mirc.exe
  • ollydbg.exe
  • ctfmon.exe

It downloads updated components from the following websites:

  • {BLOCKED}omo.info
  • {BLOCKED}1.in
  • {BLOCKED}2.in
  • {BLOCKED}te.info
  • {BLOCKED}3.com.ua

It saves the downloaded components in the following folder:

  • %System Report%\Documents and Settings\All Users\Application Data\Microsoft\{random folder}\u

It sends the gathered information to the following sites using credentials from its configuration file:

  • {BLOCKED}.{BLOCKED}.134.75

It may also connect to IRC servers and receive commands from a remote user.

This malware is capable of dropping a copy of itself to default shares in the network. It then starts a service to execute the dropped file.

Whenever a USB drive is plugged in, it randomly selects a filename in the drive and name its dropped copy as {malware filename}_{selected filename}.exe. If the drive is empty, it appends _Documents in its filename. For example, {malware_filename}_Documents.exe.

It attempts to access certain URLs to get its peer list. However, none are currently accessible.

  SOLUTION

Minimum Scan Engine:

8.900

FIRST VSAPI PATTERN FILE:

7.960.01

FIRST VSAPI PATTERN DATE:

09 Apr 2011

Step 1

For Windows XP and Windows Server 2003 users, before doing any scans, please make sure you disable System Restore to allow full scanning of your computer.

Step 2

Identify and delete files detected as WORM_QAKBOT.WIN using either the Startup Disk or Recovery Console

[ Learn More ]

Step 3

Delete this registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • {random characters} = %System Root%\Documents and Settings\All Users\Microsoft\{random characters}\{random characters}.exe

Step 4

Restore this modified registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • From: {legitimate application} = %System Root%\Documents and Settings\All Users\Application Data\Microsoft\{random folder name}\{random file name}.exe /c {path and file name of legitimate application}
      To: {legitimate application} = {path and file name of legitimate application}

Step 5

Search and delete this folder

[ Learn More ]
Please make sure you check the Search Hidden Files and Folders checkbox in the More advanced options option to include all hidden folders in the search result.
  • %System Root%\Documents and Settings\All Users\Microsoft\{random characters}

Step 6

Scan your computer with your Trend Micro product to delete files detected as WORM_QAKBOT.WIN. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check this Knowledge Base page for more information.


Did this description help? Tell us how we did.