WORM_OPANKI.W

Malware type: Worm

Aliases: Backdoor.Win32.IRCBot.ct (Kaspersky), W32/Sdbot.worm.gen.bh (McAfee), Backdoor.Sdbot (Symantec), Worm/SdBot.169545 (Avira), W32/Rbot-Fam (Sophos), Backdoor:Win32/Sdbot (Microsoft)

In the wild: Yes

Destructive: No

Language: English

Platform: Windows 95, 98, ME, NT, 2000, XP

Encrypted: No

Overall risk rating:

Reported infections:

Damage potential:

Medium

Distribution potential:

Medium

Description: 

This worm spreads via the popular instant messaging program, AOL Instant Messenger. It sends the following link to all available AOL contacts it finds in an affected system:

    http://SexyFun.{BLOCKED}.net/Images.php?pic=7458&sec=magic

Users are advised to refrain from clicking on the link. Clicking the link downloads the worm onto the system.

This worm drops a file into the Windows system folder detected by Trend Micro as TROJ_ROOTKIT.H.

It also has backdoor capabilities. It connects to an Internet Relay Chat (IRC) server. This enables a remote user to perform malicious commands on the affected machine. The said routine provides remote users virtual control over affected systems, thus compromising system security.

Systems affected by this worm may also be affected by TROJ_STARTPAG.QY.

For additional information about this threat, see:

Description created: Jul. 19, 2005 10:28:22 AM GMT -0800


TECHNICAL DETAILS


File type: PE

Memory resident:  Yes

Size of malware: 169,693 Bytes

Ports used: Random TCP ports

Initial samples received on: Jul 19, 2005

Related toTROJ_ROOTKIT.H, TROJ_STARTPAG.QY

Payload 1: Drops other malware

Trigger condition 1: Upon execution

Payload 2: Connects to specific Web sites

Trigger condition 1: Upon execution

Details:

Installation and Autostart Techniques

Upon execution, this worm drops a copy of itself in the Windows system folder as either GGFIG.EXE or XMCONFIG.EXE. It also drops the file MSDIRECTX.SYS which is detected by Trend Micro as TROJ_ROOTKIT.H.

It creates the following registry entries to ensure it automatically executes during every Windows startup:

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Run
Stratas = "ggfig.exe" or
Stratas = "xmconfig.exe"

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
CurrentVersion\RunServices
Stratas = "ggfig.exe" or
Stratas = "xmconfig.exe"

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
CurrentVersion\Run
Stratas = "ggfig.exe" or
Stratas = "xmconfig.exe"

Other Registry Modifications

This worm also modifies the following registry entries to lower the affected system�s security settings (it sets the data of the following entries to zero):

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
Flags = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1001 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1004 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1201 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1406 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1601 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1800 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1804 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1805 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1A00 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1A04 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1A10 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1609 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Internet Settings\Zones\3
1A05 = "dword:00000000"

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\
Security
Sending_Security = "Low"

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\
Security
Viewing_Security = "Low"

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\
Security
Safety Warning Level = "Low"

Propagation via Instant Messaging Applications

This worm spreads via the popular instant messaging program, AOL Instant Messenger. It sends the following link to all available AOL contacts in an affected system:

    http://SexyFun.{BLOCKED}.net/Images.php?pic=7458&sec=magic

Users are advised to refrain from clicking on the link.

Backdoor Capabilities

This worm has backdoor capabilities enabling it to connect an Internet Relay Chat (IRC) server. Once a connection is established, it joins an IRC channel, where it listens for commands coming from a remote malicious user. Some of these commands are as follows:

  • Basic IRC commands
  • Download files
  • Enable/disable anonymous login
  • Enable/disable DCOM
  • Execute files
  • Send AIM message

Other Details

This worm drops the following HTML files that link to known adware and grayware programs:

  • xx1.html - links to http://mmm.media-motor.net/{BLOCKED}
  • xx2.html - links to http://static.windupdates.com/{BLOCKED}
  • xx3.html - links to http://install.xxxtoolbar.com/{BLOCKED}
  • xx4.html - links to http://www.ysbweb.com{BLOCKED}
  • xx5.html - links to http://c4tdownload.com{BLOCKED}

The links are dropped into the system's %Temp% folder. The worm then automatically connects to the listed sites.

(Note: %Temp% is located at C:\Document and Settings\{User name}\local settings\temp or C:\Windows\temp.)

Through these sites, the file SDF.EXE is eventually downloaded and saved in the system's Program Files folder. This file is detected by Trend Micro as TROJ_STARTPAG.QY.

It runs on Windows 95, 98, ME, NT, 2000, and XP.

Analysis By: Patrick Estavillo

Revision History:

 

Jul 27, 2005 - Inserted Automatic Removal Instructions

SOLUTION


Minimum scan engine version needed: 6.810

Pattern file needed: 2.737.00

Pattern release date: Jul 19, 2005


Important note: The "Minimum scan engine" refers to the earliest Trend Micro scan engine version guaranteed to detect this threat. However, Trend Micro strongly recommends that you update to the latest version in order to get comprehensive protection. Download the latest scan engine here.

Solution:

Note: To fully remove all associated malware, perform the clean solution for TROJ_ROOTKIT.H and TROJ_STARTPAG.QY.

AUTOMATIC REMOVAL INSTRUCTIONS

MANUAL REMOVAL INSTRUCTIONS

Identifying the Malware Program

To remove this malware, first identify the malware program.

  1. Scan your system with your Trend Micro antivirus product.
  2. NOTE the path and file name of all files detected as WORM_OPANKI.W.

Trend Micro customers need to download the latest virus pattern file before scanning their system. Other users can use Housecall, Trend Micro's online virus scanner.

Terminating the Malware Program

This procedure terminates the running malware process. You will need the name(s) of the file(s) detected earlier.

  1. Open Windows Task Manager.
    • On Windows 95, 98, and ME, press
    CTRL%20ALT%20DELETE
    • On Windows NT, 2000, and XP, press
    CTRL%20SHIFT%20ESC, then click the Processes tab.
  2. In the list of running programs*, locate the malware file(s) detected earlier.
  3. Select one of the detected files, then press either the End Task or the End Process button, depending on the version of Windows on your system.
  4. Do the same for all detected malware files in the list of running processes.
  5. To check if the malware process has been terminated, close Task Manager, and then open it again.
  6. Close Task Manager.

*NOTE: On systems running Windows 95, 98, and ME, Windows Task Manager may not show certain processes. You can use a third party process viewer such as Process Explorer to terminate the malware process. Otherwise, continue with the next procedure, noting additional instructions. If you were not able to terminate the malware process as described in the previous procedure, restart your system.

Editing the Registry

This malware modifies the system's registry. Users affected by this malware may need to modify or delete specific registry keys or entries. For detailed information regarding registry editing, please refer to the following articles from Microsoft:

  1. HOW TO: Backup, Edit, and Restore the Registry in Windows 95, Windows 98, and Windows ME
  2. HOW TO: Backup, Edit, and Restore the Registry in Windows NT 4.0
  3. HOW TO: Backup, Edit, and Restore the Registry in Windows 2000
  4. HOW TO: Back Up, Edit, and Restore the Registry in Windows XP and 2003

Removing Autostart Entries from the Registry

Removing autostart entries from the registry prevents the malware from executing at startup.

If the registry entries below are not found, the malware may not have executed as of detection. If so, proceed to the succeeding solution set.

  1. Open Registry Editor. Click Start>Run, type REGEDIT, then press Enter.
  2. In the left panel, double-click the following:
    HKEY_LOCAL_MACHINE>Software>Microsoft>
    Windows>CurrentVersion>Run
  3. In the right panel, locate and delete the entry:
    Stratas = "ggfig.exe" or
    Stratas = "xmconfig.exe"
  4. In the left panel, double-click the following:
    HKEY_LOCAL_MACHINE>Software>Microsoft>
    Windows>CurrentVersion>RunServices
  5. In the right panel, locate and delete the entry:
    Stratas = "ggfig.exe" or
    Stratas = "xmconfig.exe"
  6. In the left panel, double-click the following:
    HKEY_CURRENT_USER>Software>Microsoft>
    Windows>CurrentVersion>Run
  7. In the right panel, locate and delete the entry:
    Stratas = "ggfig.exe" or
    Stratas = "xmconfig.exe"
  8. Close Registry Editor.

Deleting Malware File(s)

  1. Right-click Start then click Search� or Find�, depending on the version of Windows you are running.
  2. In the Named input box, type:
    xx1.html
  3. In the Look In drop-down list, select the drive that contains Windows, then press Enter.
  4. Once located, select the file then press Delete.
  5. Repeat steps 2 to 4 for the following files:
    � xx2.html
    � xx3.html
    � xx4.html
    � xx5.html

Restoring Internet Security Settings

  1. Close all Internet Explorer windows.
  2. Open Control Panel. Click Start>Settings>Control Panel.
  3. Double-click the Internet Options icon.
  4. In the Internet Properties window, click the Security tab.
  5. For each Web content zone, click on the Default Level button to return each to its default setting.
  6. Click OK.

Important Windows ME/XP Cleaning Instructions

Users running Windows ME and XP must disable System Restore to allow full scanning of infected systems.

Users running other Windows versions can proceed with the succeeding procedure set(s).

Running Trend Micro Antivirus

Scan your system with Trend Micro antivirus and delete files detected as WORM_OPANKI.W. To do this, Trend Micro customers must download the latest virus pattern file and scan their system. Other Internet users can use HouseCall, Trend Micro's online virus scanner.




Trend Micro offers best-of-breed antivirus and content-security solutions for your corporate network, small and medium business, mobile device or home PC.