Analysis by: Rhena Inocencio

ALIASES:

Trojan-Dropper.Win32.Injector.ikqk (Kaspersky), RDN/Generic Dropper!nz (McAfee), Trojan.Win32.Generic!BT (Sunbelt)

 PLATFORM:

Windows 2000, Windows Server 2003, Windows XP (32-bit, 64-bit), Windows Vista (32-bit, 64-bit), Windows 7 (32-bit, 64-bit)

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel: Dropped by other malware, Downloaded from the Internet, Propagates via removable drives

This worm may be downloaded by other malware/grayware from remote sites. It may be dropped by other malware.

It executes commands from a remote malicious user, effectively compromising the affected system. It connects to a website to send and receive information.

  TECHNICAL DETAILS

File Size: 189,440 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 10 Jun 2013
Payload: Connects to URLs/IPs, Downloads files, Drops files

Arrival Details

This worm may be downloaded by the following malware/grayware from remote sites:

  • http://master.dl.{BLOCKED}forge.net/project/tradingfiles/111/m - (encrypted copy of itself)

It may be dropped by the following malware:

  • TROJ_GAMARUE.RMA

Installation

This worm creates the following folders:

  • %User Temp%\_setup_

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista and 7.)

It injects codes into the following process(es):

  • wuauclt.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\policies\
Explorer\Run
{random number} = "%All Users Profile%\Local Settings\Temp\{random filename}.exe"

Other System Modifications

This worm adds the following registry entries:

HKEY_CURRENT_USER\Software
ImageBase = "{encrypted copy of itself}"

It modifies the following registry entries:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
Hidden = "2"

(Note: The default value data of the said registry entry is 1.)

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
ShowSuperHidden = "0"

(Note: The default value data of the said registry entry is 1.)

Backdoor Routine

This worm executes the following commands from a remote malicious user:

  • Download a file
  • Start a process
  • Uninstall itself
  • Remote command prompt

It connects to the following websites to send and receive information:

  • http://c.{BLOCKED}eavy.ru
  • http://{BLOCKED}d.ru/static.php
  • http://{BLOCKED}iuojy.ru/2ldr.php
  • http://{BLOCKED}iuojy.ru/3ldr.php
  • http://{BLOCKED}iuojy.ru/41ldr.php
  • http://{BLOCKED}iuojy.ru/51ldr.php
  • http://{BLOCKED}iuojy.ru/6ldr.php

Dropping Routine

This worm drops the following files:

  • %All Users Profile%\Local Settings\Temp\{random filename}.exe - WORM_GAMARUE.LJG
  • %User Temp%\_setup_\msiexec.exe - WORM_GAMARUE.LJG

(Note: %All Users Profile% is the All Users or Common profile folder, which is C:\Documents and Settings\All Users in Windows 2000, XP, and Server 2003, and C:\ProgramData in Windows Vista and 7.. %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista and 7.)

NOTES:
It propagates by dropping the following component files in removable drives:

  • {drive name} ({drive size}).LNK - LNK_GAMARUE.RMA
  • _{random}.{random extension} - TROJ_GAMARUE.LJG
  • desktop.ini - TROJ_GAMARUE.RMA

It copies all the user's folders and files in the removable drive into a hidden folder with name of ASCII 255 which is displayed as a special space character.

It sets the attribute of all files and folders in removable drives to Hidden.

  SOLUTION

Minimum Scan Engine: 9.300
FIRST VSAPI PATTERN FILE: 9.972.07
FIRST VSAPI PATTERN DATE: 10 Jun 2013
VSAPI OPR PATTERN File: 9.973.00
VSAPI OPR PATTERN Date: 10 Jun 2013

Step 1

Before doing any scans, Windows XP, Windows Vista, and Windows 7 users must disable System Restore to allow full scanning of their computers.

Step 2

Remove the malware/grayware file dropped/downloaded by WORM_GAMARUE.LJG

    • LNK_GAMARUE.RMA
    • TROJ_GAMARUE.RMA
    • TROJ_GAMARUE.LJG

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_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\Run
    • {random number} = "%All Users Profile%\Local Settings\Temp\{random filename}.exe"
  • In HKEY_CURRENT_USER\Software
    • ImageBase = "{encrypted copy of itself}"

Step 5

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • From: Hidden = "2"
      To: Hidden = "1"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • From: ShowSuperHidden = "0"
      To: ShowSuperHidden = "1"

Step 6

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.
  • %User Temp%\_setup_

Step 7

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