Ransom.Win32.HAPERLOCK.SMI

 Analysis by: Patrick Angelo Roderno

 ALIASES:

Ransom:Win32/Haperlock.A (Microsoft); Trojan-FMYW!5C246D7B4AFB (McAfee); Trojan-Dropper.Win32.Sysn.cdqh (Kaspersky); Troj/AutoG-BL (Sophos); Trojan.Win32.Generic.pak!cobra (Sunbelt)

 PLATFORM:

Windows

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

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet, Dropped by other malware


This Ransomware 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. However, as of this writing, the said sites are inaccessible. It deletes itself after execution.

  TECHNICAL DETAILS

File Size:

605,820 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

20 Sep 2019

Payload:

Connects to URLs/IPs, Drops files

Arrival Details

This Ransomware 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 Ransomware drops the following copies of itself into the affected system and executes them:

  • %User Temp%\{random characters}.exe

(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(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It adds the following processes:

  • %User Temp%\{random characters}.exe :*{Malware Name} *
  • a ZZZZZZXZYTG

(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(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

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

  • Global\giojheiowrghtiovhjwiojrugzyb

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
System Health Monitoring Service Pro = "%User Temp%\{random characters}.exe"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\RunOnce
*System Health Monitoring Service Pro = "%User Temp%\{random characters}.exe"

Dropping Routine

This Ransomware drops the following files:

  • %User Temp%\dlog.log
  • %User Temp%\dlogn.log
  • %User Temp%\dlogw.log

(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(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

Other Details

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

  • http://microsoft.com

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

  • http://youhappenes.{BLOCKED}t.org
  • http://readion.{BLOCKED}ne.com

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

It deletes itself after execution.

It accepts the following parameters:

  • ANOTHERDAY
  • nocrypt

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.310.08

FIRST VSAPI PATTERN DATE:

20 Aug 2019

VSAPI OPR PATTERN File:

15.311.00

VSAPI OPR PATTERN Date:

21 Aug 2019

Step 1

Trend Micro products with the XGen technology detect this malware as

[ Learn More ]
  • Troj.Win32.TRX.XXPE50FFF03

Step 2

Before doing any scans, Windows 7, Windows 8, Windows 8.1, and Windows 10 users must disable System Restore to allow full scanning of their computers.

Step 3

Restart in Safe Mode

[ Learn More ]

Step 4

Identify and terminate files detected as Ransom.Win32.HAPERLOCK.SMI

[ Learn More ]
  1. Windows Task Manager may not display all running processes. In this case, please use a third-party process viewer, preferably Process Explorer, to terminate the malware/grayware/spyware file. You may download the said tool here.
  2. If the detected file is displayed in either Windows Task Manager or Process Explorer but you cannot delete it, restart your computer in safe mode. To do this, refer to this link for the complete steps.
  3. If the detected file is not displayed in either Windows Task Manager or Process Explorer, continue doing the next steps.

Step 5

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
    • System Health Monitoring Service Pro = %User Temp%\{random characters}.exe
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
    • *System Health Monitoring Service Pro = %User Temp%\{random characters}.exe

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%\dlog.log
  • %User Temp%\dlogn.log
  • %User Temp%\dlogw.log
  • %User Temp%\{random characters}.exe

Step 7

Restart in normal mode and scan your computer with your Trend Micro product for files detected as Ransom.Win32.HAPERLOCK.SMI. 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 8

Scan your computer with your Trend Micro product to delete files detected as Ransom.Win32.HAPERLOCK.SMI. 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 the following Trend Micro Support pages for more information:

Step 9

Restore encrypted files from backup.


Did this description help? Tell us how we did.