Ransom.Win32.RAPID.WL

 Analysis by: Wilbert Luy

 ALIASES:

Ransom:Win32/Rapid.A!MTB (Microsoft), Trojan.Win32.DelShad.qt (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:

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:

116,224 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

25 Jul 2019

Payload:

Drops files, Displays message/message boxes, Terminates processes, 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 files:

  • %Application Data%\{BLOCKED}l@{BLOCKED}019.com.url
  • {Encrypted Directory}:\{BLOCKED}l@{BLOCKED}019.com.url

It drops the following copies of itself into the affected system:

  • %Application Data%\info.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 adds the following processes:

  • vssadmin.exe Delete Shadows /All /Quiet
  • bcdedit.exe /set {default} recoveryenabled No
  • bcdedit.exe /set {default} bootstatuspolicy ignoreallfailures
  • wbadmin DELETE SYSTEMSTATEBACKUP
  • wmic SHADOWCOPY DELETE

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

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

  • GUESSWHOBITCH

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
Encrypter_074 = %ApplicationData%\info.exe

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CUrrentVersion\Run
userinfo = %ApplciationData%\recovery.txt

Other System Modifications

This Ransomware adds the following registry keys:

HKEY_CURRENT_USER\Software\EncryptKeys

It adds the following registry entries:

HKEY_CURRENT_USER\Software\EncryptKeys
local_enc_private_key_len = "{Hex Data}"

HKEY_CURRENT_USER\Software\EncryptKeys
local_enc_private_key = "{Hex Data}"

HKEY_CURRENT_USER\Software\EncryptKeys
local_public_key_len = "{Hex Data}"

HKEY_CURRENT_USER\Software\EncryptKeys
local_public_key = "{Hex Data}"

HKEY_USERS\{ID}_CLASSES\.guesswho\
shell\open\command

Process Termination

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

  • msftesql.exe
  • sqlagent.exe
  • sqlbrowser.exe
  • sqlservr.exe
  • sqlwriter.exe
  • oracle.exe
  • ocssd.exe
  • dbsnmp.exe
  • synctime.exe
  • mydesktopqos.exe
  • agntsvc.exe
  • isqlplussvc.exe
  • xfssvccon.exe
  • mydesktopservice.exe
  • ocautoupds.exe
  • agntsvc.exe
  • agntsvc.exe
  • agntsvc.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
  • taskmgr.exe
  • CMD.EXE

Other Details

This Ransomware does the following:

  • Renames encrypted files with:
    {Encoded String}.guesswho

It adds the following scheduled tasks:

  • Task Name: Encrypter
    Schedule: {Installation Time}, repeat every minute
    Task to be run: %Application Data%\info.exe
  • Task Name: EncrypterSt
    Schedule: At Logon of any user
    Task to be run: %Application Data%\info.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 avoids encrypting files with the following strings in their file path:

  • Windows
  • Intel
  • Nvidia
  • Programdata
  • Temp

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

  • %Application Data%\recovery.txt
  • {Encrypted Directory}:\How Recovery 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).)

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.294.05

FIRST VSAPI PATTERN DATE:

12 Aug 2019

VSAPI OPR PATTERN File:

15.295.00

VSAPI OPR PATTERN Date:

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

Restart in Safe Mode

[ Learn More ]

Step 4

Deleting Scheduled Tasks

The following {Task Name} - {Task to be run} listed should be used in the steps identified below:  

  • Task Name: Encrypter
    Schedule: {Installation Time}, repeat every minute
    Task to be run: %Application Data%\info.exe
  • Task Name: EncrypterSt
    Schedule: At Logon of any user
    Task to be run: %Application Data%\info.exe

For Windows 2000, Windows XP, and Windows Server 2003:

  1. Open the Windows Scheduled Tasks. Click Start>Programs>Accessories>
    System Tools>Scheduled Tasks.
  2. Locate each {Task Name} values listed above in the Name column.
  3. Right-click on the said file(s) with the aforementioned value.
  4. Click on Properties. In the Run field, check for the listed {Task to be run}.
  5. If the strings match the list above, delete the task.

For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:

  1. Open the Windows Task Scheduler. To do this:
    • On Windows Vista, Windows 7, and Windows Server 2008, click Start, type taskschd.msc in the Search input field, then press Enter.
    • On Windows 8, Windows 8.1, and Windows Server 2012, right-click on the lower left corner of the screen, click Run, type taskschd.msc, then press Enter.
  2. In the left panel, click Task Scheduler Library.
  3. In the upper-middle panel, locate each {Task Name} values listed above in the Name column.
  4. In the lower-middle panel, click the Actions tab. In the Details column, check for the {Task to be run} string.
  5. If the said string is found, delete the task.

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.

  • In 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_USERS\{ID}_CLASSES\.guesswho\shell\open\command
    • = "notepad.exe C:\Users\dyituser_732\AppData\Roaming\recovery.txt"

Step 7

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.
  • %Application Data%\{BLOCKED}l@{BLOCKED}019.com.url
  • {Encrypted Directory}:\{BLOCKED}l@{BLOCKED}019.com.url
  • %Application Data%\recovery.txt
  • {Encrypted Directory}:\How Recovery Files.txt

Step 8

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

Restore encrypted files from backup.

NOTES:
Enable Volume Shadow Service

  1. Run the command prompt (cmd.exe) as administrator.
  2. Enable Volume Shadow Service by typing this command: net start vss


Did this description help? Tell us how we did.