BAT_MELRIN.A

 Analysis by: Michael Cabel

 PLATFORM:

Windows 2000, Windows XP, Windows Server 2003

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Copies itself in all available physical drives, Downloaded from the Internet, Propagates via removable drives

This worm arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It uses Windows Task Scheduler to create a scheduled task that executes the dropped copy.

It modifies registry entries to hide files with System and Read-only attributes.

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:

2,413 bytes

File Type:

BAT

Initial Samples Received Date:

13 Feb 2012

Arrival Details

This worm arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

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

  • %System%\Thumbs.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 uses Windows Task Scheduler to create a scheduled task that executes the dropped copy.

Other System Modifications

This worm modifies the following registry key(s)/entry(ies) as part of its installation routine:

HKEY_CLASSES_ROOT\cmdfile\DefaultIcon
(Default) = "C:\WINDOWS\System32\shell32.dll,-154"

(Note: The default value data of the said registry entry is "%SystemRoot%\System32\shell32.dll,-153".)

It modifies the following registry entries to hide files with System and Read-only attributes:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
Hidden = 0

(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.)

Propagation

This worm drops the following copy of itself in all physical and removable drives:

  • Thumbs.cmd

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]
shellexecute=Thumbs.cmd

  SOLUTION

Minimum Scan Engine:

9.200

FIRST VSAPI PATTERN FILE:

8.776.02

FIRST VSAPI PATTERN DATE:

13 Feb 2012

VSAPI OPR PATTERN File:

8.777.00

VSAPI OPR PATTERN Date:

14 Feb 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

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 = 0
      To: Hidden = 1
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • From: ShowSuperHidden = 0
      To: ShowSuperHidden = 1
  • In HKEY_CLASSES_ROOT\cmdfile\DefaultIcon
    • From: (Default) = "C:\WINDOWS\System32\shell32.dll,-154"
      To: (Default) = %SystemRoot%\System32\shell32.dll,-153"

Step 3

Search and delete AUTORUN.INF files created by BAT_MELRIN.A that contain these strings

[ Learn More ]
[autorun]
shellexecute=Thumbs.cmd

Step 4

To delete the added job file:

  1. Click on Start>Programs>Accessories>System Tools>Scheduled Tasks
  2. Double-click on a job file.
  3. Check if the malware path and file name is in the Run: box.
  4. If it does, delete the job file.
  5. Repeat step 2-4 for the remaining job files.

Step 5

Scan your computer with your Trend Micro product to delete files detected as BAT_MELRIN.A. 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.