BKDR_ANDROM.YYSMMC

 Analysis by: Janus Agcaoili

 PLATFORM:

Windows

 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


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 deletes registry entries, causing some applications and programs to not function properly.

It executes commands from a remote malicious user, effectively compromising the affected system. However, as of this writing, the said sites are inaccessible.

It gathers information and reports it to its servers.

  TECHNICAL DETAILS

File Size:

100,221,440 bytes

File Type:

TMP, EXE

Memory Resident:

Yes

Initial Samples Received Date:

01 Feb 2017

Payload:

Connects to URLs/IPs, Steals information

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:

  • %All Users Profile%\ms{random}.exe

(Note: %All Users Profile% is the All Users folder, where it usually is C:\Documents and Settings\All Users on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData on Windows Vista (32- and 64-bit), Windows 7 (32- and 64-bit), Windows 8 (32- and 64-bit), Windows 8.1 (32- and 64-bit), Windows Server 2008, and Windows Server 2012.)

It adds the following processes:

  • msiexec.exe

It adds the following mutexes to ensure that only one of its copies runs at any one time:

  • gen
  • Mapne
  • msiff0x1

It injects codes into the following process(es):

  • created "msiexec.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\Policies\
Explorer\Run
{Random Numbers} = "%All Users Profile%\ms{random}.exe"

Other System Modifications

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

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

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows NT\CurrentVersion\Windows
Load = ""

HKEY_CURRENT_USER\Software\Microsoft\
Windows
{Random Numbers} = "{Encrypted Data}"

HKEY_CURRENT_USER\Keyboard Layout
1 = "{Encrypted Data}"

HKEY_CURRENT_USER\Keyboard Layout
2 = "{Encrypted Data}"

It deletes the following registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion\Image File Execution Options\
taskmgr.exe
Debugger = "taskmgr.exe"

Backdoor Routine

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

  • Download a file directed by C&C server, save it as %User Temp%\KB{8 random numbers}.exe and execute it
  • Download a file directed by C&C server, save it as %All User Profile%\ms{random number}.dat and load it
  • Download a file directed by C&C server, save it as %All User Profile%\ms{random}.exe:{random number}
  • Copy %System%\cdosys.dll to %User Temp%\cdo{random number}.dll and load it
  • Start a process
  • Uninstall itself
  • Perform remote shell commands
  • Restart system

(Note: %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp on Windows Vista (32- and 64-bit), Windows 7 (32- and 64-bit), Windows 8 (32- and 64-bit), Windows 8.1 (32- and 64-bit), Windows Server 2008, and Windows Server 2012.. %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.)

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

  • http://{BLOCKED}erstatus.ru/order.php
  • http://flux.{BLOCKED}79.ru/test
  • http://{BLOCKED}entia.ru/diff.php
  • http://{BLOCKED}.{BLOCKED}.82.50/difigure

However, as of this writing, the said sites are inaccessible.

Other Details

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

  • yahoo.com
  • google.com
  • bing.com
  • update.microsoft.com
  • microsoft.com

It does the following:

  • This backdoor connects to the following Network Time Protocol (NTP) servers:
    • pool.ntp.org
    • africa.pool.ntp.org
    • oceania.pool.ntp.org
    • asia.pool.ntp.org
    • south-america.pool.ntp.org
    • north-america.pool.ntp.org
    • europe.pool.ntp.org
  • Checks if it is being run in a virtual environment or emulation software. If so, it will perform infinite sleep.

It gathers the following information and reports it to its servers:

  • Administrator rights
  • Flag keyboard layout
  • Operating system information
  • Local IP address
  • Root volume serial number

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

13.196.05

FIRST VSAPI PATTERN DATE:

02 Feb 2017

VSAPI OPR PATTERN File:

13.197.00

VSAPI OPR PATTERN Date:

03 Feb 2017

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

Note that not all files, folders, and registry keys and entries are installed on your computer during this malware's/spyware's/grayware's execution. This may be due to incomplete installation or other operating system conditions. If you do not find the same files/folders/registry information, please proceed to the next step.

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 Numbers} = "%All Users Profile%\ms{random}.exe"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • Hidden = "2"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • ShowSuperHidden = "0"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
    • Load = ""
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows
    • {Random Numbers} = "{Encrypted Data}"
  • In HKEY_CURRENT_USER\Keyboard Layout
    • 1 = "{Encrypted Data}"
  • In HKEY_CURRENT_USER\Keyboard Layout
    • 2 = "{Encrypted Data}"

Step 5

Search and delete this file

[ Learn More ]
There may be some 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.
%All User Profile%\ms{random}.exe
%All User Profile%\ms{random number}.dat
%User Temp%\KB{8 random numbers}.exe
%User Temp%\cdo{random number}.dll

Step 6

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

Step 7

Restore this deleted registry key/value from backup

*Note: Only Microsoft-related keys/values will be restored. If the malware/grayware also deleted registry keys/values related to programs that are not from Microsoft, please reinstall those programs on your computer.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe
    • Debugger = "taskmgr.exe"


Did this description help? Tell us how we did.