WORM_HAMWEQ.AE

 Modified by: Rhena Inocencio

 ALIASES:

Worm:Win32/Hamweq.A (Microsoft), Trojan.Dropper (Symantec), W32/Hamweq.worm.v (McAfee), Worm.Win32.Agent.vg (Kaspersky)

 PLATFORM:

Windows 2000, Windows XP, Windows Server 2003

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

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

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

  TECHNICAL DETAILS

File Size:

28,160 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

25 Jul 2012

Arrival Details

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

Installation

This worm drops the following files:

  • %System Root%\RESTORE\k-1-3542-4232123213-7676767-8888886\Desktop.ini

(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%\RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.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%\RESTORE\k-1-3542-4232123213-7676767-8888886
  • %System Root%\RESTORE

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

Autostart Technique

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Active Setup\Installed Components\{67KLN5J0-4OPM-00WE-AAX5-77EF1D187563}
StubPath = "%System Root%\RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.exe"

Propagation

This worm creates the following folders in all removable drives:

  • {Drive Letter}:\RESTORE
  • {Drive Letter}:\RESTORE\k-1-3542-4232123213-7676767-8888886

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

  • {Drive Letter}:\RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.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=RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.exe
icon=%SystemRoot%\system32\SHELL32.dll,4
action=Open folder to view files
shell\open=Open
shell\open\command=RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.exe
shell\open\default=1

Other Details

This worm connects to the following possibly malicious URL:

  • http://{BLOCKED}sstore.sk
  • http://{BLOCKED}eland.com

  SOLUTION

Minimum Scan Engine:

9.200

FIRST VSAPI PATTERN FILE:

9.284.02

FIRST VSAPI PATTERN DATE:

25 Jul 2012

VSAPI OPR PATTERN File:

9.285.00

VSAPI OPR PATTERN Date:

26 Jul 2012

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

Search and delete these folders

[ 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}:\RESTORE\k-1-3542-4232123213-7676767-8888886
  • {Drive Letter}:\RESTORE
  • %System Root%:\RESTORE\k-1-3542-4232123213-7676767-8888886
  • %System Root%:\RESTORE

Step 4

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_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{67KLN5J0-4OPM-00WE-AAX5-77EF1D187563}
    • StubPath = "%System Root%\RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.exe"

Step 5

Search and delete AUTORUN.INF files created by WORM_HAMWEQ.AE that contain these strings

[ Learn More ]
[autorun]
open=RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.exe
icon=%SystemRoot%\system32\SHELL32.dll,4
action=Open folder to view files
shell\open=Open
shell\open\command=RESTORE\k-1-3542-4232123213-7676767-8888886\SysBsm.exe
shell\open\default=1

Step 6

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