Ransom.Win64.RARA.THAABAH

 Analysis by: Warren Adam Sto. Tomas

 ALIASES:

Generic.Ransom.RaRans.4E97A0F3 (BitDefender)

 PLATFORM:

Windows

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

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted: Yes

  • 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 drops files as ransom note.

  TECHNICAL DETAILS

File Size:

72,704 bytes

File Type:

DLL

Memory Resident:

No

Initial Samples Received Date:

14 Nov 2018

Payload:

Connects to URLs/IPs, Encrypts files, Displays message/message boxes, Terminates processes, Steals information

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 non-malicious files:

  • %Application Data%\{5 characters}\public.key
  • %Application Data%\{5 characters}\private.enc
  • %Desktop%\PERSONAL-ID.txt

(Note: %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %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).)

It creates the following folders:

  • %Application Data%\{5 characters}

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

  • {5 characters}

Process Termination

This Ransomware terminates processes or services that contain any of the following strings if found running in the affected system's memory:

  • msftesql.exe
  • sqlagent.exe
  • qlbrowser.exe
  • sqlservr.exe
  • sqlwriter.exe
  • oracle.exe
  • ocssd.exe
  • dbnsmp.exe
  • synctime.exe
  • mydesktopqos.exe
  • agntsvc.exe
  • isqlplussvc.exe
  • xfssvccon.exe
  • mydesktopservice.exe
  • ocautopds.exe
  • encsvc.exe
  • firefoxconfig.exe
  • tbirdconfig.exe
  • ocomm.exe
  • mysqld.exe
  • mysqld-nt.exe
  • mysqld-opt.exe
  • dbeng50.exe
  • sqbcoreservice.exe
  • excel.exe
  • infopath.exe
  • msaccess.exe
  • mspub.exe
  • onenote.exe
  • outlook.exe
  • powerpnt.exe
  • steam.exe
  • thebat.exe
  • thebat64.exe
  • thunderbird.exe
  • visio.exe
  • winword.exe
  • wordpad.exe

Information Theft

This Ransomware gathers the following data:

  • Username
  • Workgroup
  • Locale Information
  • Volume Information
  • IP address
  • Installed Security Applications

Stolen Information

This Ransomware sends the gathered information via HTTP POST to the following URL:

  • {BLOCKED}vkxg.onion.to/hello

Other Details

This Ransomware connects to the following possibly malicious URL:

  • {BLOCKED}o.co/1F7w27

It does the following:

  • It disables system recovery, and deletes shadow volume copies using the following commands:
    • vssadmin.exe Delete Shadows /All Quiet
    • bcdedit.exe /set {default} recoveryenabled No
    • bcdedit.exe /set {default} bootstatuspolicy ignoreallfailures
  • It avoids encrypting files with the following extensions:
    • ani
    • cab
    • cpl
    • cur
    • diagcab
    • diagpkg
    • dll
    • drv
    • hlp
    • icl
    • icns
    • ico
    • ics
    • lnk
    • key
    • idx
    • mod
    • mpa
    • msc
    • msp
    • msstyles
    • msu
    • nomedia
    • ocx
    • prf
    • rom
    • rtp
    • scr
    • shs
    • spl
    • sys
    • theme
    • themepack
    • exe
    • bat
    • cmd
    • {5 characters}
    • tmp
  • It checks if the following applications are installed in the affected system:
    • AVP.exe
    • ekrn.exe
    • avgnt.exe
    • ashDisp.exe
    • NortonAntiBot.exe
    • Mcshield.exe
    • avengine.exe
    • cmdagent.exe
    • smc.exe
    • persfw.exe
    • pccpfw.exe
    • fsguiexe.exe
    • cfp.exe
    • msmpeng.exe
    • MBAMService.exe
  • It encrypts files in all available drives.

Ransomware Routine

This Ransomware avoids encrypting files with the following strings in their file name:

  • thumbs.db

It avoids encrypting files found in the following folders:

  • tmp
  • winnt
  • Application Data
  • AppData
  • Program Files(x86)
  • Program Files
  • temp
  • $Recycle.Bin

It renames encrypted files using the following names:

  • {base64 encoded string of original file name and extension}.{5 characters}

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

  • %Desktop%\README IMPORTANT.html

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.202.05

FIRST VSAPI PATTERN DATE:

28 Jun 2019

VSAPI OPR PATTERN File:

15.203.00

VSAPI OPR PATTERN Date:

29 Jun 2019

Step 1

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 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

Identify and terminate files detected as Ransom.Win64.RARA.THAABAH

[ 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 4

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%\{5 characters}

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.
  • %Desktop%\README IMPORTANT.html
  • %Desktop%\PERSONAL-ID.txt

Step 6

Scan your computer with your Trend Micro product to delete files detected as Ransom.Win64.RARA.THAABAH. 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 encrypted files from backup.

NOTES:

Enabling Volume Shadow Service

  • Run the command prompt (cmd.exe) as administrator.
  • Enable volume shadow service using the following command:

    net start vss

Enabling Startup Repair

  • Run the command prompt (cmd.exe) as administrator.
  • Enable startup repair using the following command:

    /bcedit /set {default} recoveryenabled Yes


Did this description help? Tell us how we did.