Ransom.Win64.RAPID.A

 Analysis by: Joshua Paul Ignacio

 ALIASES:

Trojan:Win32/Rapid.A!MTB (MICROSOFT)

 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:

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

  TECHNICAL DETAILS

File Size:

838,656 bytes

Memory Resident:

Yes

Initial Samples Received Date:

16 Jan 2020

Payload:

Displays graphics/image, Modifies system registry, Encrypts 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:

  • %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\norapid.exe

(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 drops and executes the following files:

  • {Encrypted Directory}\userkey.dat → contains the user's Personal-ID
  • %Application Data%\deletex.bat → deletes specific files

(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 processes:

  • vssadmin.exe Delete Shadows /All /Quiet → deletes shadow copies
  • bcdedit.exe /set {default} recoveryenabled No → disables automatic repair
  • bcdedit.exe /set {default} bootstatuspolicy ignoreallfailures → disables Windows error recovery
  • wbadmin DELETE SYSTEMSTATEBACKUP → deletes the system state backups
  • wmic SHADOWCOPY DELETE → deletes shadow copies
  • vssadmin.exe resize shadowstorage /for={Drive Letter}: /on={Drive Letter}: /maxsize=401MB → resizes the maximum amount of storage space that can be used for shadow copy storage
  • vssadmin.exe resize shadowstorage /for={Drive Letter}: /on={Drive Letter}: /maxsize=unbounded → resizes the maximum amount of storage space that can be used for shadow copy storage

It creates the following folders:

  • %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}

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

  • GLOBALCHETOTAMKAKDELA

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
HelloAV = %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\norapid.exe

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
WelcomeBack = %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\rapidrecovery.txt

Other System Modifications

This Ransomware adds the following registry entries as part of its installation routine:

HKEY_CURRENT_USER\Software\EncryptUID
local_uid = {14 Random Characters}

HKEY_CURRENT_USER\Software\EncryptKeys
local_enc_private_key = {Hex Values}

HKEY_CURRENT_USER\Software\EncryptKeys
local_enc_private_key_len = {Hex Values}

HKEY_CURRENT_USER\Software\EncryptKeys
local_public_key = {Hex Values}

HKEY_CURRENT_USER\Software\EncryptKeys
local_public_key_len = {Hex Values}

It changes the desktop wallpaper by modifying the following registry entries:

HKEY_CURRENT_USER\Control Panel\Desktop
Wallpaper = %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\kakdela.bmp

It sets the system's desktop wallpaper to the following image:

  • %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\kakdela.bmp

Process Termination

This Ransomware terminates the following services if found on the affected system:

  • AVP18.0.0
  • ekrn
  • klbackupdisk
  • klbackupflt
  • klflt
  • klhk
  • KLIF
  • klim6
  • klkbdflt
  • klmouflt
  • klpd
  • kltap
  • KSDE1.0.0
  • MsDtsServer100
  • MsDtsServer130
  • msftesql$SQLEXPRESS
  • MSSQL
  • MSSQL$OPTIMA
  • MSSQL$PROGID
  • MSSQL$VEEAMSQL2012
  • MSSQL$WOLTERSKLUWER
  • MSSQLFDLauncher
  • MSSQLFDLauncher$OPTIMA
  • MSSQLSERVER
  • MSSQLServerADHelper100
  • MSSQLServerOLAPService
  • ntrtscan
  • ofcservice
  • postgresql-x64-9.4
  • ReportServer
  • ReportServer$OPTIMA
  • SQLAgent
  • SQLAgent$OPTIMA
  • SQLAgent$PROGID
  • SQLAgent$VEEAMSQL2012
  • SQLAgent$WOLTERSKLUWER
  • SQLBrowser
  • SQLSERVERAGENT
  • SQLTELEMETRY
  • SQLTELEMETRY$HL
  • SQLWriter
  • SSISTELEMETRY130
  • storflt
  • TMBMServer
  • TmCCSF
  • TmFilter
  • TMiCRCScanService
  • tmlisten
  • TMLWCSService
  • TmPreFilter
  • TmProxy
  • TMSmartRelayService
  • tmusa
  • UniFi
  • vmicguestinterface
  • vmicheartbeat
  • vmickvpexchange
  • vmicrdv
  • vmicshutdown
  • vmictimesync
  • vmicvss
  • VSApiNt
  • WRSVC

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

  • agntsvc.exe
  • CMD.exe
  • cmd.exe
  • dbeng50.exe
  • dbsnmp.exe
  • encsvc.exe
  • excel.exe
  • fdhost.exe
  • fdlauncher.exe
  • firefoxconfig.exe
  • infopath.exe
  • isqlplussvc.exe
  • msaccess.exe
  • MsDtsSrvr.exe
  • msftesql.exe
  • msmdsrv.exe
  • mspub.exe
  • mydesktopqos.exe
  • mydesktopservice.exe
  • mysqld.exe
  • mysqld-nt.exe
  • mysqld-opt.exe
  • ocautoupds.exe
  • ocomm.exe
  • ocssd.exe
  • onenote.exe
  • oracle.exe
  • outlook.exe
  • pg_ctl.exe
  • postgres.exe
  • powerpnt.exe
  • ReportingServicesService.exe
  • sqbcoreservice.exe
  • SQLAGENT.EXE
  • sqlagent.exe
  • sqlbrowser.exe
  • sqlceip.exe
  • sqlservr.exe
  • sqlwriter.exe
  • Ssms.exe
  • steam.exe
  • synctime.exe
  • taskmgr.exe
  • tbirdconfig.exe
  • thebat.exe
  • thebat64.exe
  • thunderbird.exe
  • UniFi.exe
  • visio.exe
  • winword.exe
  • wordpad.exe
  • xfssvccon.exe

Other Details

This Ransomware adds the following registry keys:

HKEY_CURRENT_USER\Software\EncryptUID

HKEY_CURRENT_USER\Software\EncryptKeys

It renames encrypted files using the following names:

  • {FileName}.cryptolocker

It does the following:

  • It checks for the presence and lists the following AV products:
    • MsMpEng.exe → Windows Defender
    • ntrtscan.exe → Trend Micro Security
    • avp.exe → Kaspersky Endpoint Security
    • WRSA.exe → Webroot
    • egui.exe → ESET
    • AvastUI.exe → Avast
  • It accepts or adds the following arguments to check its execution:
    • -nd
    • -net
    • -all → creates %Application Data%\deletex.bat
    • -del → creates %Application Data%\deletex.bat
  • %Application Data%\deletex.bat deletes the following:
    • {Drive Letter}:\\*.VHD
    • {Drive Letter}:\\*.bac
    • {Drive Letter}:\\*.bak
    • {Drive Letter}:\\*.wbcat
    • {Drive Letter}:\\*.bkf
    • {Drive Letter}:\\Backup*.*
    • {Drive Letter}:\\*.set
    • {Drive Letter}:\\*.win
    • {Drive Letter}:\\*.dsk

(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 scheduled tasks:

  • Task Name: SvcSafeDataSt
    • Trigger: At log on of any user
    • Action: Starts a program → %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\norapid.exe
  • Task Name: SvcSafeData
    • Trigger: Every Minute
    • Action: Starts a program → %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\norapid.exe

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

Ransomware Routine

This Ransomware drops the following file(s) as ransom note:

  • %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\rapidrecovery.txt
  • %Application Data%\rapidrecovery.txt
  • {Encrypted Directory}\!DECRYPT_FILES.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).)

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

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.624.04

FIRST VSAPI PATTERN DATE:

16 Jan 2020

VSAPI OPR PATTERN File:

15.625.00

VSAPI OPR PATTERN Date:

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

Restart in Safe Mode

[ Learn More ]

Step 5

Delete this registry key

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

  • HKEY_CURRENT_USER\Software\EncryptUID
  • HKEY_CURRENT_USER\Software\EncryptKeys

Step 6

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\EncryptUID
    • local_uid = {Random 14 Characters}
  • In HKEY_CURRENT_USER\Software\EncryptKeys
    • local_enc_private_key = {Hex Values}
  • In HKEY_CURRENT_USER\Software\EncryptKeys
    • local_enc_private_key_len = {Hex Values}
  • In HKEY_CURRENT_USER\Software\EncryptKeys
    • local_public_key = {Hex Values}
  • In HKEY_CURRENT_USER\Software\EncryptKeys
    • local_public_key_len = {Hex Values}

Step 7

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%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}

Step 8

Search and delete this file

[ 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.
  • %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\norapid.exe
  • %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\rapidrecovery.txt
  • %Application Data%\rapidrecovery.txt
  • {Encrypted Directory}\userket.dat
  • %Application Data%\{A7DBD80C-410D-4C87-99F9-B19C0DA21BF1}\kakdela.bmp
  • %Application Data%\deletex.bat
  • {Encrypted Directory}\!DECRYPT_FILES.txt

Step 9

Restart in normal mode and scan your computer with your Trend Micro product for files detected as Ransom.Win64.RAPID.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 this Knowledge Base page for more information.

Step 10

Reset your Desktop properties

[ Learn More ]

Step 11

Restore encrypted files from backup.


Did this description help? Tell us how we did.