Ransom.MSIL.CHAOS.G

 Analysis by: John Rainier Navato

 ALIASES:

Ransom:MSIL/FileCoder.AD!MTB

 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 encrypts files found in specific folders. It drops files as ransom note.

  TECHNICAL DETAILS

File Size:

24,064 bytes

Memory Resident:

Yes

Initial Samples Received Date:

19 Jun 2023

Payload:

Drops files, Encrypts files, Modifies system registry, 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 drops the following copies of itself into the affected system and executes them:

  • %Application Data%\svchost.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:

  • %System%\cmd.exe /C vssadmin delete shadows /all /quiet & wmic shadowcopy delete
  • %System%\cmd.exe /C bcdedit /set {default} bootstatuspolicy ignoreallfailures & bcdedit /set {default} recoveryenabled no
  • %System%\cmd.exe /C wbadmin delete catalog -quiet
  • %System%\NOTEPAD.EXE %Application Data%\read_it.txt

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %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).)

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
Microsoft Store = %Application Data%\svchost.exe

It drops the following shortcut pointing to its copy in the User Startup folder to enable its automatic execution at every system startup:

  • %User Startup%\svchost.url

(Note: %User Startup% is the current user's Startup folder, which is usually C:\Windows\Profiles\{user name}\Start Menu\Programs\Startup on Windows 98 and ME, C:\WINNT\Profiles\{user name}\Start Menu\Programs\Startup on Windows NT, C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows 2003(32-bit), XP and 2000(32-bit), or C:\Users\{user name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit), 10(64-bit).)

Propagation

This Ransomware drops copies of itself in the following drives:

  • {Available Drives Except C:}\surprise.exe

Other Details

This Ransomware encrypts files with the following extensions:

  • .1cd
  • .3ds
  • .3fr
  • .3g2
  • .3gp
  • .7z
  • .7zip
  • .accda
  • .accdb
  • .accdc
  • .accde
  • .accdr
  • .accdt
  • .accdw
  • .ace
  • .adp
  • .ai
  • .ai3
  • .ai4
  • .ai5
  • .ai6
  • .ai7
  • .ai8
  • .amv
  • .apk
  • .arj
  • .arw
  • .ascx
  • .asm
  • .asmx
  • .asp
  • .aspx
  • .avi
  • .avs
  • .backup
  • .bak
  • .bay
  • .bin
  • .bk
  • .blob
  • .bmp
  • .bz2
  • .cab
  • .cer
  • .cfm
  • .config
  • .contact
  • .core
  • .cpp
  • .crt
  • .cs
  • .css
  • .csv
  • .cub
  • .cvs
  • .dae
  • .dat
  • .db
  • .dbf
  • .dbx
  • .dc3
  • .dcm
  • .dcr
  • .dib
  • .dic
  • .dif
  • .divx
  • .djvu
  • .dmg
  • .doc
  • .docm
  • .docx
  • .dot
  • .dotx
  • .dwg
  • .dwt
  • .epsp
  • .exif
  • .exr
  • .f4v
  • .flv
  • .geo
  • .gif
  • .gz
  • .gzip
  • .htm
  • .html
  • .ibank
  • .ico
  • .iff
  • .inc
  • .indd
  • .ini
  • .ink
  • .iso
  • .jar
  • .java
  • .jpe
  • .jpeg
  • .jpg
  • .js
  • .json
  • .jsp
  • .key
  • .kmz
  • .kwm
  • .lnk
  • .log
  • .lzh
  • .m1v
  • .m4a
  • .m4p
  • .m4v
  • .max
  • .mda
  • .mdb
  • .mde
  • .mdf
  • .mdw
  • .mht
  • .mhtml
  • .mka
  • .mkv
  • .mov
  • .mp3
  • .mp4
  • .mpeg
  • .mpg
  • .mpv
  • .msg
  • .myi
  • .nef
  • .obj
  • .odc
  • .odm
  • .odp
  • .ods
  • .odt
  • .oft
  • .onepkg
  • .onepkg
  • .onetoc2
  • .opt
  • .oqy
  • .orf
  • .p12
  • .p7b
  • .p7c
  • .pam
  • .pas
  • .pdb
  • .pdf
  • .pfx
  • .php
  • .pict
  • .pl
  • .pls
  • .png
  • .pot
  • .potm
  • .potx
  • .ppam
  • .pps
  • .ppsm
  • .ppt
  • .pptm
  • .pptx
  • .ps
  • .psb
  • .psd
  • .pst
  • .py
  • .r3d
  • .rar
  • .raw
  • .rb
  • .rgbe
  • .rss
  • .rtf
  • .safe
  • .settings
  • .sie
  • .slk
  • .sln
  • .sql
  • .stm
  • .sum
  • .svg
  • .svgz
  • .swf
  • .swift
  • .tab
  • .tar
  • .tar.gz
  • .tbi
  • .tif
  • .torrent
  • .txt
  • .url
  • .vb
  • .vbs
  • .vdi
  • .vmdk
  • .vob
  • .vss
  • .wallet
  • .wav
  • .webm
  • .wma
  • .wmv
  • .wpd
  • .wps
  • .xla
  • .xlam
  • .xlk
  • .xlm
  • .xls
  • .xlsb
  • .xlsm
  • .xlsx
  • .xlt
  • .xltm
  • .xltx
  • .xlw
  • .xml
  • .xps
  • .xsd
  • .xsf
  • .xsl
  • .xz
  • .zip

It does the following:

  • It encrypts files with file size below 2,117,152 bytes.
  • It encrypts files with file size above 2,117,152 bytes using a randomizing function rendering the file unrecoverable.
  • It hijacks Windows clipboard to monitor crypto addresses; in event detected changes crypto address with the following:
    • {BLOCKED}ll8p9m8uezhqhyd7z459ajrk722yn8c5j4fg
    • {BLOCKED}FeuB3NTzJ2X28tfRmWaPyPQgvoHV
  • It avoids encrypting Drive C:

Ransomware Routine

This Ransomware encrypts files found in the following folders:

  • Files in the following folders:
    • %Desktop%
    • %User Profile%\Links
    • %User Profile%\Contacts
    • %Desktop%
    • %User Profile%\Documents
    • %User Profile%\Downloads
    • %User Profile%\Pictures
    • %User Profile%\Music
    • %User Profile%\OneDrive
    • %User Profile%\Saved Games
    • %Favorites%
    • %User Profile%\Searches
    • %User Profile%\Videos
    • %Application Data%
    • %Public%\Documents
    • %Public%\Pictures
    • %Public%\Music
    • %Public%\Videos
    • %Public%\Desktop
  • Files in all other available drives

(Note: %Public% is the folder that serves as a repository of files or folders common to all users, which is usually C:\Users\Public in Windows Vista, 7, and 8.)

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

  • read_it.txt

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

  • .LMAO

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

  • {Encrypted Path}\read_it.txt
  • %Application Data%\read_it.txt

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

18.522.02

FIRST VSAPI PATTERN DATE:

21 Jun 2023

VSAPI OPR PATTERN File:

18.523.00

VSAPI OPR PATTERN Date:

22 Jun 2023

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:

     
    • Ransom.Win32.TRX.XXPE50FFF069

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
    • Microsoft Store = %Application Data%\svchost.exe

Step 6

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%\svchost.exe
  • {Available Drives Except C:\}\surprise.exe
  • %User Startup%\svchost.url
  • {Encrypted Path}\read_it.txt
  • %Application Data%\read_it.txt

Step 7

Restart in normal mode and scan your computer with your Trend Micro product for files detected as Ransom.MSIL.CHAOS.G. 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 8

Restore encrypted files from backup.


Did this description help? Tell us how we did.