TROJ_SHARIK.YUYMH

 Analysis by: Rheniel Rhay Ramos

 ALIASES:

Backdoor.Win32.Androm.pfss (Kaspersky); Trojan.SmokeLoader (Malwarebytes); TrojanDownloader:Win32/Dofoil.AB (Microsoft)

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Dropped by other malware, Downloaded from the Internet


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

It connects to certain websites to send and receive information. It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size:

137,216 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

06 Mar 2018

Payload:

Connects to URLs/IPs, Drops files, Terminates processes

Arrival Details

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

  • %Application Data%\Microsoft\{Random 1}\{Random 2}.exe

(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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 drops the following files:

  • %Application Data%\Microsoft\{Random 1}\{Random 1}
  • %User Temp%\{Random 3}.tmp.exe -> will be moved and renamed as %AppDataLocal%\{Random 4}.exe

(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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.. %AppDataLocal% is the Application Data folder found in Local Settings, where it is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local 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 drops and executes the following files:

  • %AppDataLocal%\{Random 4}.exe
  • %User Temp%\{Random 5}.tmp\wuauclt.exe -> detected as Coinminer-TOOLETN.A-WIN32 (for 32 bit systems)
  • %User Temp%\{Random 5}.tmp\wuauclt.exe -> detected as Coinminer-TOOLETN.A-WIN64 (for 64 bit systems)

(Note: %AppDataLocal% is the Application Data folder found in Local Settings, where it is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local 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.. %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.)

It adds the following processes:

  • explorer.exe
  • "%User Temp%\{Random 5}.tmp\wuauclt.exe" -o stratum+tcp://etn-eu1.nanopool.org:13333 -u etnkQr8x5xY7PyUNi8jmxefg7YjQeceeGQgkmqZAyEofjVqR5GBp5ueHWDrrn87zHP8eew3ynA2pZN9zdL5a6rBs5BCgEaEpYu -p x --safe

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

It creates the following folders:

  • %Application Data%\Microsoft\{Random 1}
  • %User Temp%\{Random 5}.tmp

(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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.. %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.)

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

  • hashed computer name and volume serial number

It injects threads into the following normal process(es):

  • created explorer.exe

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{installed program name in the system} = "%Application Data%\Microsoft\{Random 1}\{Random 2}.exe"

Process Termination

This Trojan terminates the following processes if found running in the affected system's memory:

  • Specific programs related to process and network monitoring, and debugging

Other Details

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

  • http://www.bing.com

It connects to the following website to send and receive information:

  • {BLOCKED}ov.{BLOCKED}/15022018/
  • {BLOCKED}.{BLOCKED}/15022018/

It does the following:

  • It performs several checks before performing its malicious routines:
    • The following flags of its PEB structure must not indicate that it is being debugged:
      • IsDebugging
      • NtGlobalFlag
    • Module filename must not contain the string “sample"
    • Volume serial number should not be:
      • 0xCD1A40 (ThreatExpert)
      • 0x70144646 (Malwr)
    • Registry data under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Disk\Enum must not contain the following strings:
      • qemu
      • virtual
      • vmware
      • xen
      • fffcce24 (VBox)
    • The following modules should not be loaded:
      • dbghelp
      • sbiedll

It deletes the initially executed copy of itself

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

14.118.03

FIRST VSAPI PATTERN DATE:

09 Mar 2018

VSAPI OPR PATTERN File:

14.119.00

VSAPI OPR PATTERN Date:

10 Mar 2018

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • {installed program name in the system} = "%Application Data%\Microsoft\{Random 1}\{Random 2}.exe"

Step 5

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.
  • %Application Data%\Microsoft\{Random 1}
  • %User Temp%\{Random 5}.tmp

Step 6

Search and delete these files

[ 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.
  • %User Temp%\{Random 3}.tmp.exe
  • %AppDataLocal%\{Random 4}.exe

Step 7

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