Analysis by: Roland Marco Dela Paz

ALIASES:

Microsoft : Worm:Win32/Soglueda.A; Kaspersky : Trojan-Spy.Win32.Agent.bhpj

 PLATFORM:

Windows 2000, XP, 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

This worm arrives by connecting affected removable drives to a system. It may be downloaded by other malware/grayware/spyware from remote sites.

It bears the file icons of certain applications to avoid easy detection and consequent removal.

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

It logs a user's keystrokes to steal information.

  TECHNICAL DETAILS

File Size: Varies
File Type: PE
Memory Resident: Yes
Initial Samples Received Date: 27 Nov 2010

Arrival Details

This worm arrives by connecting affected removable drives to a system.

It may be downloaded by other malware/grayware/spyware from remote sites.

Installation

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

  • %System%\services.exe
  • %System%\{space}.cmd

(Note: %System% is the Windows system folder, which is usually C:\Windows\System on Windows 98 and ME, C:\WINNT\System32 on Windows NT and 2000, or C:\Windows\System32 on Windows XP and Server 2003.)

It drops the following files:

  • %System%\winm.dll - also detected as WORM_KEYLOG.AJKW

(Note: %System% is the Windows system folder, which is usually C:\Windows\System on Windows 98 and ME, C:\WINNT\System32 on Windows NT and 2000, or C:\Windows\System32 on Windows XP and Server 2003.)

It bears the file icons of the following applications:

  • Microsoft Icon

Its DLL component is injected to the following process(es):

  • csrss.exe
  • winlogon.exe
  • explorer.exe

Other System Modifications

This worm also creates the following registry entry(ies) as part of its installation routine:

HKEY_CLASSES_ROOT\.exe
@ = exefile 

HKEY_CLASSES_ROOT\exefile
@ = Aplicación

HKEY_CLASSES_ROOT\exefile \DefaultIcon
@ = shell32.dll,2

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
@ = " "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
@ = " "

Propagation

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

  • dllrun.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]
open=.\dllrun c
shellexecute=.\dllrun c
action=Explorar
icon=%SystemRoot%\system32\SHELL32.dll,8
shell=usbmenu
shell\usbmenu\command=.\dllrun .\c
shell\usbmenu\icon=%SystemRoot%\system32\SHELL32.dll,8
shell\usbmenu=Explorar

Information Theft

This worm logs a user's keystrokes to steal information.

Stolen Information

This worm sends the gathered information via HTTP POST to the following URL:

  • {BLOCKED}espinosa.com.ar

Other Details

This worm does the following:

  • Replaces the original %System%\services.exe Windows file when dropping its copy.
  • Creates the following registry to set the default icon of .EXE files to document file icon:
    HKEY_CLASSES_ROOT\.exe
    @ = exefile
    HKEY_CLASSES_ROOT\exefile
    @ = Aplicacion
    HKEY_CLASSES_ROOT\exefile\DefaultIcon
    @ = shell32.dll,2
  • Creates the following registry to disable device drivers and services at Windows startup:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    @ = " "
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    @ = " "

(Note: %System% is the Windows system folder, which is usually C:\Windows\System on Windows 98 and ME, C:\WINNT\System32 on Windows NT and 2000, or C:\Windows\System32 on Windows XP and Server 2003.)

  SOLUTION

Minimum Scan Engine: 8.900

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

Restart in Safe Mode

[ Learn More ]

Step 3

Delete this registry key

[ 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_CLASSES_ROOT\
    • .exe
  • In HKEY_CLASSES_ROOT\
    • exefile

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
    • @ =
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • @ =

Step 5

Search and delete AUTORUN.INF files created by WORM_KEYLOG.AJKW that contain these strings

[ Learn More ]
[autorun]
open=.\dllrun c
shellexecute=.\dllrun c
action=Explorar
icon=%SystemRoot%\system32\SHELL32.dll,8
shell=usbmenu
shell\usbmenu\command=.\dllrun .\c
shell\usbmenu\icon=%SystemRoot%\system32\SHELL32.dll,8
shell\usbmenu=Explorar

Step 6

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