Ransom.MSIL.HAKBIT.C

 Analysis by: Patrick Noel Collado

 ALIASES:

Trojan.GenericKD.42840578 (Bitdefender), MSIL/Filecoder.VL!tr.ransom (Fortinet)

 PLATFORM:

Windows

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

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet

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 executes then deletes itself afterward.

It encrypts files with specific file extensions. It encrypts files found in specific folders.

  TECHNICAL DETAILS

File Size:

64,960 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

13 Mar 2020

Payload:

Connects to URLs/IPs, Encrypts files, Displays message/message boxes, Deletes 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 adds the following processes:

  • %User Startup%\{renamed malware}.exe
  • %System%\cmd.exe /C choice /C Y /N /D Y /T 3 & Del {malware filename}
  • "vssadmin.exe" resize shadowstorage /for={Drive Letter}: /on={Drive Letter}: /maxsize=401MB
  • "vssadmin.exe" resize shadowstorage /for={Drive Letter}: /on={Drive Letter}: /maxsize=unbounded
  • %System%\notepad.exe %Desktop%\HELP_ME_RECOVER_MY_FILES.txt
  • %User Temp%\{random}.exe m=psexec -i={host ip address} -d={target ip address} -f=%User Startup%\{randomly picked name}.exe -e=%User Temp%\{random}.exe

(Note: %User Startup% is the current user's Startup folder, which is usually C:\Windows\Profiles\{user name}\Start Menu\Programs\Startup on Windows 98 and ME, C:\WINNT\Profiles\{user name}\Start Menu\Programs\Startup on Windows NT, C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows 2003(32-bit), XP and 2000(32-bit), or C:\Users\{user name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit), 10(64-bit).. %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %Desktop% is the current user's desktop, which is usually C:\Documents and Settings\{User Name}\Desktop on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\Desktop on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %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 executes then deletes itself afterward.

It leaves text files that serve as ransom notes containing the following:

  • %Desktop%\HELP_ME_RECOVER_MY_FILES.txt
  • {Directories With Encrypted Files}\HELP_ME_RECOVER_MY_FILES.txt

Autostart Technique

This Ransomware drops the following file(s) in the Windows User Startup folder to enable its automatic execution at every system startup:

  • {Malware Name}.exe

Other System Modifications

This Ransomware deletes the following files:

  • {Files to be encrypted}

Download Routine

This Ransomware downloads the file from the following URL and renames the file when stored in the affected system:

  • https://raw.{BLOCKED}usercontent.com/anthemtotheego/SharpExec/master/CompiledBinaries/SharpExec_x86.exe

Other Details

This Ransomware connects to the following possibly malicious URL:

  • hor.{BLOCKED}lus.cloudapp.{BLOCKED}e.com

It does the following:

  • List of names the malware uses
    • lsass.exe
    • svchst.exe
    • crcss.exe
    • chrome32.exe
    • firefox.exe
    • calc.exe
    • mysqld.exe
    • dllhst.exe
    • opera32.exe
    • memop.exe
    • spoolcv.exe
    • ctfmom.exe
    • SkypeApp.exe

Ransomware Routine

This Ransomware encrypts files with the following extensions:

  • txt
  • jpeg
  • gif
  • jpg
  • png
  • php
  • cs
  • cpp
  • rar
  • zip
  • html
  • htm
  • xlsx
  • avi
  • mp4
  • ppt
  • doc
  • docx
  • xlsx
  • sxi
  • sxw
  • odt
  • hwp
  • zip
  • rar
  • tar
  • bz2
  • mp4
  • mkv
  • eml
  • msg
  • ost
  • pst
  • edb
  • sql
  • accdb
  • mdb
  • dbf
  • odb
  • myd
  • php
  • java
  • cpp
  • pas
  • asm
  • key
  • pfx
  • pem
  • p12
  • csr
  • gpg
  • aes
  • vsd
  • odg
  • raw
  • nef
  • svg
  • psd
  • vmx
  • vmdk
  • vdi
  • lay6
  • sqlite3
  • sqlitedb
  • accdb
  • java
  • class
  • mpeg
  • djvu
  • tiff
  • backup
  • pdf
  • cert
  • docm
  • xlsm
  • dwg
  • bak
  • qbw
  • nd
  • tlg
  • lgb

It encrypts files found in the following folders:

  • {Drive Letter}:\
  • %Desktop%
  • %User Profile%\My Pictures
  • %User Profile%\My Documents

(Note: %Desktop% is the current user's desktop, which is usually C:\Documents and Settings\{User Name}\Desktop on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\Desktop on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name} on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It appends the following extension to the file name of the encrypted files:

  • .hor

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.740.03

FIRST VSAPI PATTERN DATE:

13 Mar 2020

VSAPI OPR PATTERN File:

15.741.00

VSAPI OPR PATTERN Date:

14 Mar 2020

Step 1

Trend Micro Predictive Machine Learning detects and blocks malware at the first sign of its existence, before it executes on your system. When enabled, your Trend Micro product detects this malware under the following machine learning name:

    Troj.Win32.TRX.XXPE50FFF034

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

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 4

Identify and terminate files detected as Ransom.MSIL.HAKBIT.C

[ 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

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 Startup%\{renamed malware}.exe
  • %Desktop%\HELP_ME_RECOVER_MY_FILES.txt
  • {Directories With Encrypted Files}\HELP_ME_RECOVER_MY_FILES.txt

Step 6

Scan your computer with your Trend Micro product to delete files detected as Ransom.MSIL.HAKBIT.C. 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 7

Restore this file from backup only Microsoft-related files will be restored. If this malware/grayware also deleted files related to programs that are not from Microsoft, please reinstall those programs on you computer again.


Did this description help? Tell us how we did.