Analysis by: Mc Justine De Guzman

 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, 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: 225,280 bytes
File Type: DLL
Memory Resident: Yes
Initial Samples Received Date: 21 Dec 2021
Payload: Encrypts files, Executes files, Terminates processes, Modifies system registry, Drops files, Displays message/message boxes

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

  • %Application Data%\{Random 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 drops the following files:

  • %Application Data%\{Random characters}\{Random characters}.dll

(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} safeboot minimal
  • bcdedit.exe /set {default} recoveryenabled No
  • %System%\icacls.exe ":\*" /grant:r Everyone:F /t /c /q -> grant access to the drives it encrypts
  • %System%\takeown.exe /F {Original service's executable path}

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.)

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
{Random characters} = %System%\rundll32.exe %Application Data%\{Random characters}\{Random characters}.dll MzIqsx38gCwocWdP

Process Termination

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

  • sqlagent
  • sophos

Other Details

This Ransomware does the following:

  • It expects itself to be executed as a service
  • It installs itself as a service through modifying a service's ImagePath to point to itself and execute it along with its correct argument
  • In these particular samples, there is currently no way to terminate processes. The embedded Process Hacker is not included in the ransomware samples, and it does not enumerate running processes
  • It removes connections to network shared resources
  • It requires the specific argument in order for it to proceed to its malicious routine:
    • MzIqsx38gCwocWdP
  • It copies the executable loading it to the original executable's filepath found in the service's ImagePath

Ransomware Routine

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

  • svsho*.exe
  • schre*.bat
  • V01.lo*
  • V01.ch*
  • V01res*.jrs
  • RacWmi*.sdf
  • Web*V01.dat
  • default.rdp
  • NTUSER.DA*
  • *.lnk
  • *.ico
  • *.ini
  • *.msi
  • *.chm
  • *.sys
  • *.hlf
  • *.lng
  • *.inf
  • *.ttf
  • *.cmd
  • *.LNK
  • *.ICO
  • *.INI
  • *.MSI
  • *.CHM
  • *.SYS
  • *.HLF
  • *.LNG
  • *.INF
  • *.TTF
  • *.CMD

It avoids encrypting files found in the following folders:

  • $RECYCLE.BIN
  • $Recycle.Bin
  • Caches
  • WebCache
  • VirtualStore

It appends the following extension to the file name of the encrypted files:

  • .pay0rgrief

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

  • {encrypted file name}.iwant2survive.html - drops it for every file it encrypts

  SOLUTION

Minimum Scan Engine: 9.800
FIRST VSAPI PATTERN FILE: 17.266.08
FIRST VSAPI PATTERN DATE: 21 Dec 2021
VSAPI OPR PATTERN File: 17.267.00
VSAPI OPR PATTERN Date: 22 Dec 2021

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

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 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\Microsoft\Windows\CurrentVersion\Run
    • {Random characters} = %System%\rundll32.exe %Application Data%\{Random characters}\{Random characters}.dll MzIqsx38gCwocWdP

Step 6

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%\{Random characters}\{Random characters}.dll
  • {encrypted file name}.iwant2survive.html

Step 7

Search and delete this folder

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

Step 8

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

Enabling Volume Shadow Service

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

Step 10

Restore encrypted files from backup.


Did this description help? Tell us how we did.