BKDR_ANDROM.BEB

 Analysis by: Mark Joseph Manahan

 ALIASES:

Trojan horse Generic_r.DOW (AVG) ,W32/Zbot.AYAA!tr (Fortinet) ,Trojan-Downloader.Win32.Upatre (Ikarus) ,Trojan-Spy.Win32.Zbot.rojt (Kaspersky) ,VirTool:Win32/CeeInject.gen!KK (Microsoft) ,Dropper-FJW!339F12AC8436 (McAfee) ,a variant of Win32/Injector.AYAA trojan (Eset) ,Trojan.Zbot (Symantec) ,Trj/Zbot.M (Panda) ,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:
 INFORMATION EXPOSURE:

  • Threat Type: Backdoor

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet, Dropped by other malware


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

It executes commands from a remote malicious user, effectively compromising the affected system.

  TECHNICAL DETAILS

File Size:

73,529 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

31 Mar 2014

Payload:

Connects to URLs/IPs

Arrival Details

This backdoor 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 backdoor drops the following copies of itself into the affected system:

  • %System Root%\Documents and Settings\All Users\svchost.exe - if running in virtual machine
  • %System Root%\Documents and Settings\All Users\Local Settings\Temp\ms{random characters}.{extension name} - if running in admin account
  • %User Temp%\ms{random characters}.{extension name} - if not running in admin account

(Note: %System Root% is the root folder, which is usually C:\. It is also where the operating system is located.. %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 adds the following mutexes to ensure that only one of its copies runs at any one time:

  • {Decimal form of the Volume Serial Number of %System Root%}
  • lol

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

It stays memory-resident by injecting codes into the following processes:

  • \system32\wuauclt.exe
  • \syswow64\svchost.exe

Autostart Technique

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
SunJavaUpdateSched = "%System Root%\Documents and Settings\All Users\svchost.exe"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\policies\
Explorer\Run
{random number} = "%System Root%\Documents and Settings\All Users\Local Settings\Temp\ms{random characters}.{extension name}"

HKEY_CURRENT_USER\Software\Microsoft\
Windows NT\CurrentVersion\Windows
Load = "%User Temp%\ms{random}.{extension name}"

Other System Modifications

This backdoor creates the following registry entry(ies) to bypass Windows Firewall:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\SharedAccess\Parameters\
FirewallPolicy\StandardProfile\AuthorizedApplications\
List
{malware path}\{malware name}.exe = "{malware path}\{malware name}.exe:*:Enabled:{malware name}"

Backdoor Routine

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

  • Download a file from C&C server and save it as %User Temp%\{random number}.exe
  • Download a file from C&C server and save it in the folder %System Root%\Documents and Settings\All Users\ms{random number}.dat and loads it
  • Start a process
  • Uninstall itself
  • Remote command prompt

(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.. %System Root% is the root folder, which is usually C:\. It is also where the operating system is located.)

It connects to the following URL(s) to send and receive commands from a remote malicious user:

  • http://{BLOCKED}s.su/and/image.php

Other Details

This backdoor connects to the following URL(s) to check for an Internet connection:

  • www.update.microsoft.com

NOTES:

The {extension name} of the dropped copy is any of the following:

  • bat
  • cmd
  • com
  • exe
  • pif
  • scr

  SOLUTION

Minimum Scan Engine:

9.300

FIRST VSAPI PATTERN FILE:

10.698.08

FIRST VSAPI PATTERN DATE:

31 Mar 2014

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

Restart in Safe Mode

[ Learn More ]

Step 3

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\Run
    • SunJavaUpdateSched = "%System Root%\Documents and Settings\All Users\svchost.exe"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer\Run
    • {random number} = "%System Root%\Documents and Settings\All Users\Local Settings\Temp\ms{random characters}.{extension name}"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
    • Load = "%User Temp%\ms{random}.{extension name}"

Step 4

Delete the registry entry with an unknown data 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} = "%System Root%\Documents and Settings\All Users\Local Settings\Temp\ms{random characters}.{extension name}"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List
    • {malware path}\{malware name}.exe = "{malware path}\{malware name}.exe:*:Enabled:{malware name}"

Step 5

Search and delete these files

[ Learn More ]
There may be some component files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the More advanced options option to include all hidden files and folders in the search result.
%User Temp%\{random number}.exe
%System Root%\Documents and Settings\All Users\ms{random number}.dat

Step 6

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