Ransom.MSIL.HAKBIT.A

 Analysis by: Bren Matthew Ebriega

 ALIASES:

Trojan:Win32/Dynamer!rfn (MICROSOFT); HEUR:Trojan.MSIL.DelShad.gen (KASPERSKY)

 PLATFORM:

Windows

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

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Dropped by other malware, 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 downloads a file from a certain URL then renames it before storing it in the affected system. It executes the downloaded files. As a result, malicious routines of the downloaded files are exhibited on the affected system.

It deletes itself after execution.

It encrypts files with specific file extensions. It encrypts files found in specific folders. It drops files as ransom note.

  TECHNICAL DETAILS

File Size:

409,600 bytes

File Type:

EXE

Memory Resident:

No

Initial Samples Received Date:

09 Mar 2020

Payload:

Connects to URLs/IPs, Downloads files, 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}
  • %System%\vssadmin.exe delete shadows /all /quiet
  • %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).)

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 renamed with any of the following names:
    • 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

Other System Modifications

This Ransomware deletes the following files:

  • %User Temp%\{random}.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).)

Download Routine

This Ransomware accesses the following websites to download files:

  • https://hakbit.{BLOCKED}hostapp.com/013.jpg → %User Temp%\wallpaper.bmp
    However, as of this writing, the said site is inaccessible

It downloads files from the following URLs then renames them before storage in the affected system:

  • https://raw.{BLOCKED}sercontent.com/anthemtotheego/SharpExec/master/CompiledBinaries/SharpExec_{XX}.exe → %User Temp%\{random}.exe
    where {XX} can be 32 or 64 depending on the OS architecture.

It then executes the downloaded files. As a result, malicious routines of the downloaded files are exhibited on the affected system.

Other Details

This Ransomware deletes itself after execution.

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:

  • Drives A to Z
  • %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:

  • .crypted

It drops the following file(s) as ransom note:

  • %Desktop%\HELP_ME_RECOVER_MY_FILES.txt
  • {Encrypted Folder}\HELP_ME_RECOVER_MY_FILES.txt

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.732.06

FIRST VSAPI PATTERN DATE:

09 Mar 2020

VSAPI OPR PATTERN File:

15.733.00

VSAPI OPR PATTERN Date:

10 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

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.
  • {Encrypted Folder}\HELP_ME_RECOVER_MY_FILES.txt
  • %Desktop%\HELP_ME_RECOVER_MY_FILES.txt

Step 5

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

Restore encrypted files from backup.


Did this description help? Tell us how we did.