WORM_DORKBOT.KK

 Analysis by: Karl Dominguez

 PLATFORM:

Windows 2000, Windows XP, Windows Server 2003

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Propagates via removable drives, Propagates via instant messaging applications

This worm arrives via removable drives. It may be dropped by other malware.

It drops an AUTORUN.INF file to automatically execute the copies it drops when a user accesses the drives of an affected system.

It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size:

79,854 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

19 Jul 2011

Payload:

Steals information, Compromises system security

Arrival Details

This worm arrives via removable drives.

It may be dropped by other malware.

Installation

This worm drops the following copies of itself into the affected system:

  • %User Profile%\Application Data\{random characters}.exe

(Note: %User Profile% is the current user's profile folder, which is usually C:\Windows\Profiles\{user name} on Windows 98 and ME, C:\WINNT\Profiles\{user name} on Windows NT, and C:\Documents and Settings\{user name} on Windows 2000, XP, and Server 2003.)

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{malware file name} = "%User Profile%\Application Data\{malware file name}.exe"

Propagation

This worm creates the following folders in all removable drives:

  • {drive letter}:\RECYCLER

It drops the following copy(ies) of itself in all removable drives:

  • {drive letter}:\RECYCLER\{random characters}.exe

It drops an AUTORUN.INF file to automatically execute the copies it drops when a user accesses the drives of an affected system.

The said .INF file contains the following strings:

[AutoRun]
;{garbage characters}
shellexecute=RECYCLER\{malware file name}.exe
;{garbage characters}
icon=shell32.dll,7
;{garbage characters}
shell\open\command=RECYCLER\{malware file name}.exe
;{garbage characters}
action=Open folder to view files
;{garbage characters}
shell\explore\command=RECYCLER\{malware file name}.exe
;{garbage characters}
useautoplay=1

It sends messages that contain links to sites hosting remote copies of itself using the following instant-messaging (IM) applications:

  • Windows Live Communicator
  • MSN Messenger
  • Pidgin
  • Xchat
  • mIRC

Backdoor Routine

This worm connects to the following URL(s) to send and receive commands from a remote malicious user:

  • ng.{BLOCKED}oan.com
  • ng.{BLOCKED}opperz11.com
  • ng.{BLOCKED}ousez11.com
  • ng.{BLOCKED}allone.com
  • ng.{BLOCKED}ketbaby.com

Other Details

This worm connects to the following URL(s) to get the affected system's IP address:

  • http://api.wipmania.com/

It deletes the initially executed copy of itself

NOTES:
This worm monitors the Internet activities of the infected system to steal user credentials if the user visits websites with the following strings:

  • *officebanking.cl/*login.asp*
  • *secure.logmein.*/*logincheck*
  • *megaupload.*/*login
  • loginUserPassword
  • loginUserName
  • *loginUserPassword=*
  • *fileserve.*/login*
  • session[password]
  • session[username_or_email]
  • *password]=*
  • *twitter.com/sessions
  • *:2086/login*
  • *:2083/login*
  • Password
  • EmailName
  • *&Password=*
  • *.alertpay.*/*login.aspx
  • txtPassword
  • txtEmail
  • *&txtPassword=*
  • *.moneybookers.*/*login.pl
  • *runescape*/*weblogin*
  • *dyndns*/account*
  • *&password=*
  • *no-ip*/login*
  • *steampowered*/login*
  • quick_password
  • quick_username
  • username
  • *hackforums.*/member.php
  • email
  • *facebook.*/login.php*
  • *login.yahoo.*/*login*
  • passwd
  • login
  • *passwd=*
  • *login.live.*/*post.srf*
  • TextfieldPassword
  • TextfieldEmail
  • *TextfieldPassword=*
  • *gmx.*/*FormLogin*
  • *Passwd=*
  • FLN-Password
  • FLN-UserName
  • *FLN-Password=*
  • *fastmail.*/mail/*
  • *pass=*
  • *bigstring.*/*index.php*
  • screenname
  • *screenname.aol.*/login.psp*
  • password
  • loginId
  • *password=*
  • *aol.*/*login.psp*
  • Passwd
  • Email
  • *service=youtube*
  • *google.*/*ServiceLoginAuth*
  • login_password
  • login_email
  • *login_password=*
  • *paypal.*/webscr?cmd=_login-submit*

It attempts to steal user credentials used in the following websites:

  • AlertPay
  • AOL
  • BigString
  • DynDNS
  • Facebook
  • Fastmail
  • FileServe
  • Gmail
  • Hackforums
  • LogMeIn
  • Megaupload
  • Moneybookers
  • No-IP
  • OfficeBanking
  • PayPal
  • Runescape
  • Steam
  • Twitter
  • Yahoo
  • YouTube

It has the following backdoor capabilities:

  • Block DNS
  • Create processes
  • Download other files
  • Insert iframe tags into HTML files
  • Join an IRC channel
  • Log in to FTP sites
  • Perfrom Slowloris, UDP, and SYN flooding
  • Run Reverse Socks4 proxy server
  • Send MSN Messenger messages
  • Steal login credentials
  • Update Itself
  • Visit a Web Site
  • Modify the following system files:
    • ipconfig.exe
    • verclsid.exe
    • regedit.exe
    • rundll32.exe
    • cmd.exe
    • regsvr32.exe

It blocks users from accessing websites with the following strings:

  • avast.
  • avira.
  • bitdefender.
  • bullguard.
  • clamav.
  • comodo.
  • emsisoft.
  • eset.
  • f-secure.
  • fortinet.
  • garyshood.
  • gdatasoftware.
  • heck.tc
  • iseclab.
  • jotti.
  • kaspersky.
  • lavasoft.
  • malwarebytes.
  • mcafee.
  • norman.
  • norton.
  • novirusthanks.
  • onecare.live.
  • onlinemalwarescanner.
  • pandasecurity.
  • precisesecurity.
  • sophos.
  • sunbeltsoftware.
  • symantec
  • threatexpert.
  • trendmicro.
  • virscan.
  • virus.
  • virusbuster.nprotect.
  • viruschief.
  • virustotal.
  • webroot.

It hooks the following API to hide itself and to aid its routines.

  • CopyFileA
  • CopyFileW
  • CreateFileA
  • CreateFileW
  • DeleteFileA
  • DeleteFileW
  • DnsQuery_A
  • DnsQuery_W
  • GetAddrInfoW
  • HttpSendRequestA
  • HttpSendRequestW
  • InternetWriteFile
  • LdrEnumerateLoadedModules
  • LdrGetDllHandle
  • LdrGetProcedureAddress
  • LdrLoadDll
  • MoveFileA
  • MoveFileW
  • NtEnumerateValueKey
  • NtQueryDirectoryFile
  • NtQueryInformationProcess
  • NtQueryInformationThread
  • NtQuerySystemInformation
  • NtQueryVirtualMemory
  • PR_Write
  • RegCreateKeyExA
  • RegCreateKeyExW
  • RtlAnsiStringToUnicodeString
  • URLDownloadToFileA
  • URLDownloadToFileW

It drops shortcut files pointing to the copy of itself in removable drives. These dropped .LNK files use the names of the folders located on the said drives for their file names. It then sets the attributes of the original folders to Hidden to trick the user into clicking the .LNK files.

  SOLUTION

Minimum Scan Engine:

8.900

FIRST VSAPI PATTERN FILE:

8.298.08

FIRST VSAPI PATTERN DATE:

19 Jul 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

Scan your computer with your Trend Micro product and note files detected as WORM_DORKBOT.KK

Step 3

Restart in Safe Mode

[ Learn More ]

Step 4

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • {malware file name} = "%User Profile%\Application Data\{malware file name}.exe"

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.
  • {drive letter}:\RECYCLER

Step 6

Search and delete this file

[ Learn More ]
There may be some component files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the More advanced options option to include all hidden files and folders in the search result.
  • {drive letter}:\{folder name}.lnk

Step 7

Search and delete AUTORUN.INF files created by WORM_DORKBOT.KK that contain these strings

[ Learn More ]
[AutoRun]
;{garbage characters}
shellexecute=RECYCLER\{malware file name}.exe
;{garbage characters}
icon=shell32.dll,7
;{garbage characters}
shell\open\command=RECYCLER\{malware file name}.exe
;{garbage characters}
action=Open folder to view files
;{garbage characters}
shell\explore\command=RECYCLER\{malware file name}.exe
;{garbage characters}
useautoplay=1

Step 8

Restart in normal mode and scan your computer with your Trend Micro product for files detected as WORM_DORKBOT.KK. 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.

NOTES:

Changing File attributes using ATTRIB command

  1. Open a command prompt.
    • For Windows 2000, Windows XP, and Windows Server 2003 users, click Start>Run. In the Open input box, type CMD then press Enter.
    • For Windows Vista and Windows 7 users, click Start, type CMD in the Search input field then press Enter.
  2. In the CMD console, type the following:
    ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I] [drive:][path][filename] [/S [/D] [/L]]

    Where:
    + Sets an attribute.
    - Clears an attribute.
    R Read-only file attribute.
    A Archive file attribute.
    S System file attribute.
    H Hidden file attribute.
    I Not content indexed file attribute.
    [drive:][path][filename] Specifies a file or files for attrib to process.
    /S Processes matching files in the current folder and all subfolders.
    /D Processes folders as well.
    /L Work on the attributes of the Symbolic Link versus the target of the Symbolic Link

    Example:
    ATTRIB –H D:\* /S /D
    [Remove Hidden Attribute for all files and folders including subfolders in drive D]
  3. Repeat Step 2 for folders and files in other drives or directories.


Did this description help? Tell us how we did.