Malware Analysis Spotlight: Rhino RansomwareMay 13, 2020 | Malware Analysis
In this Malware Analysis Spotlight, the VMRay Labs Team examines the behavior of Rhino Ransomware (first identified in April 2020). This sample was found by Twitter user @GrujaRS on May 4th.
The first step before the ransomware encrypts user files, it disables various services:
- wscsvc (Windows Security Center Service)
- WinDefend (Windows Defender Service)
- wuauserv (Windows Update Service)
- ERSvc (Error Reporting Service)
- and WerSvc (Windows Error Reporting Service)
The malware author is disabling these services that would lead to an interruption (like restarting after a Windows Update) or an error in encryption (notifying an end-user of malicious activity using Windows Defender).
In addition to stopping the system services, the ransomware tries to stop running tasks of Microsoft Exchange, sqlserver, and sqlwriter. Stopping these tasks is also a way to ensure it’s able to encrypt all files which might still be used by Microsoft Exchange during the encryption.
By focusing on Microsoft Exchange this could mean that Rhino Ransomware could be targeting businesses.
It hinders the recovery from backups by deleting relevant data like shadow copies and the backup catalog as well as disabling the Windows Recovery Mode with bcdedit.
Typically, these commands are hardcoded in the program/malware itself but in this sample, the commands are embedded as a resource file. This design allows the malware author to change/update the commands without changing the logic inside.
To achieve persistence, the sample copies itself to the %AppData% directory as “mshtop32bit.exe” and creates a new entry in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run for the value “MarvelHost”.
After the files have been encrypted, it adds the file marker “Marvel01” at offset filesize-32 to the content and appends the string “.[email@example.com].rhino” to the filenames. The email in the appended string is also displayed in the ransom note.
The ransomware excludes files with the extension exe, sys, lnk, dll, msi and its ransom notes.
To inform the user about the infection, the text file “ReadMe_Decryptor.txt” is dropped in various directories. Furthermore, another ransom note (“Decryptor_Info.hta”) is dropped in %AppData% and shown to the user.