Ransom.MSIL.LEGIONLOCKER.A

 Analysis by: Nathaniel Gregory Ragasa

 ALIASES:

Gen:Variant.Ransom.LegionLocker.1(BITDEFENDER)

 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 encrypts files with specific file extensions. It drops files as ransom note.

  TECHNICAL DETAILS

File Size:

3,117,308 bytes

File Type:

EXE

Memory Resident:

No

Payload:

Drops files, Encrypts files, Terminates processes

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:

  • %User Temp%\WTHBNZD.bat
  • %Desktop%\ID.txt

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %Desktop% is the current user's desktop, which is usually C:\Documents and Settings\{User Name}\Desktop on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\Desktop on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It adds the following processes:

  • cmd /c ""%User Temp%\WTHBNZD.bat""
  • vssadmin Delete Shadows /all /quiet
  • vssadmin resize shadowstorage /for=c: /on=c: /maxsize=401MB
  • vssadmin resize shadowstorage /for=c: /on=c: /maxsize=unbounded
  • vssadmin resize shadowstorage /for=d: /on=d: /maxsize=401MB
  • vssadmin resize shadowstorage /for=d: /on=d: /maxsize=unbounded
  • vssadmin resize shadowstorage /for=e: /on=e: /maxsize=401MB
  • vssadmin resize shadowstorage /for=e: /on=e: /maxsize=unbounded
  • vssadmin resize shadowstorage /for=f: /on=f: /maxsize=401MB
  • vssadmin resize shadowstorage /for=f: /on=f: /maxsize=unbounded
  • vssadmin resize shadowstorage /for=g: /on=g: /maxsize=401MB
  • vssadmin resize shadowstorage /for=g: /on=g: /maxsize=unbounded
  • vssadmin resize shadowstorage /for=h: /on=h: /maxsize=401MB
  • vssadmin resize shadowstorage /for=h: /on=h: /maxsize=unbounded
  • vssadmin Delete Shadows /all /quiet

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

Process Termination

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

  • photorec_win.exe
  • recuva.exe
  • qphotorec_win.exe
  • rannohdecryptor.exe
  • sdclt.exe

Other Details

This Ransomware does the following:

  • Deletes files that contains the following strings:
    • backup
    • .vhd
    • .bac
    • .bak
    • .wbcat
    • .bkf
    • .set
    • .win
    • .dsk
  • Hides the window of the following running processes:
    • LegionLocker3.0
    • opera
    • firefox
    • taskmgr
    • cmd
    • regedit
    • ProcessHacker
    • ProcessHacker2
    • mmc
    • chrome
    • iexplore

Ransomware Routine

This Ransomware encrypts files with the following extensions:

  • .txt
  • .doc
  • .docx
  • .xls
  • .xlsx
  • .ppt
  • .pptx
  • .wav
  • .odt
  • .jpeg
  • .png
  • .jpg
  • .csv
  • .sql
  • .mdb
  • .sln
  • .php
  • .asp
  • .aspx
  • .html
  • .sql
  • .mp4
  • .7z
  • .rar
  • .m4a
  • .wma
  • .avi
  • .wmv
  • .csv
  • .d3dbsp
  • .zip
  • .sie
  • .sum
  • .ibank
  • .t13
  • .t12
  • .qdf
  • .gdb
  • .tax
  • .pkpass
  • .bc6
  • .bc7
  • .bkp
  • .qic
  • .bkf
  • .sidn
  • .sidd
  • .mddata
  • .itl
  • .itdb
  • .icxs
  • .hvpl
  • .hplg
  • .hkdb
  • .mdbackup
  • .syncdb
  • .gho
  • .cas
  • .svg
  • .map
  • .wmo
  • .itm
  • .sb
  • .fos
  • .mov
  • .vdf
  • .ztmp
  • .sis
  • .sid
  • .ncf
  • .menu
  • .layout
  • .dmp
  • .blob
  • .esm
  • .vcf
  • .vtf
  • .dazip
  • .fpk
  • .mlx
  • .kf
  • .iwd
  • .vpk
  • .tor
  • .psk
  • .rim
  • .w3x
  • .fsh
  • .ntl
  • .arch00
  • .lvl
  • .snx
  • .cfr
  • .ff
  • .vpp_pc
  • .lrf
  • .m2
  • .mcmeta
  • .vfs0
  • .mpqge
  • .kdb
  • .db0
  • .dba
  • .rofl
  • .hkx
  • .bar
  • .upk
  • .das
  • .iwi
  • .litemod
  • .asset
  • .forge
  • .ltx
  • .bsa
  • .apk
  • .re4
  • .sav
  • .lbf
  • .slm
  • .bik
  • .epk
  • .rgss3a
  • .pak
  • .big
  • "wallet
  • .wotreplay
  • .xxx
  • .desc
  • .py
  • .m3u
  • .flv
  • .js
  • .css
  • .rb
  • .p7c
  • .pk7
  • .p7b
  • .p12
  • .pfx
  • .pem
  • .crt
  • .cer
  • .der
  • .x3f
  • .srw
  • .pef
  • .ptx
  • .r3d
  • .rw2
  • .rwl
  • .raw
  • .raf
  • .orf
  • .nrw
  • .mrwref
  • .mef
  • .erf
  • .kdc
  • .dcr
  • .cr2
  • .crw
  • .bay
  • .sr2
  • .srf
  • .arw
  • .3fr
  • .dng
  • .jpe
  • .jpg
  • .cdr
  • .indd
  • .ai
  • .eps
  • .pdf
  • .pdd
  • .dbf
  • .mdf
  • .wb2
  • .rtf
  • .wpd
  • .dxg
  • .xf
  • .dwg
  • .pst
  • .accdb
  • .mdb
  • .pptm
  • .pptx
  • .ppt
  • .xlk
  • .xlsb
  • .xlsm
  • .xlsx
  • .xls
  • .wps
  • .docm
  • .docx
  • .doc
  • .odb
  • .odc
  • .odm
  • .odp
  • .ods
  • .odt
  • .bat
  • .ico
  • .cs
  • .pdb
  • .md
  • .php
  • .css
  • .fingerprint
  • .json
  • .sys
  • .suo
  • .ide
  • .con
  • .VHD
  • .bac
  • .bak
  • .wbcat
  • .set
  • .psd
  • .win
  • .dsk
  • .cpp
  • .csproj
  • .user
  • .filters
  • .vcxproj
  • .xaml
  • .manifest
  • .config
  • .resx
  • .lerf
  • .cache
  • .htm
  • .xml
  • .psd
  • .gif
  • .h
  • .vb
  • .asm
  • .inc
  • .pas
  • .go
  • .pb
  • .pbi
  • .Ico
  • .vbproj
  • .dat
  • .il
  • .myapp
  • .bmp
  • .lib
  • .dll
  • .one
  • .mp3
  • .mp4
  • .log
  • .vmdk
  • .vmx
  • .vmsd
  • .vmsn
  • .vbs
  • .wpl
  • .xml
  • .xaml
  • .html

It avoids encrypting files found in the following folders:

  • AppData
  • Windows
  • Program Files (x86)
  • Program Files

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

  • {Infected Directory}\LegionReadMe.txt

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

17.186.03

FIRST VSAPI PATTERN DATE:

11 Nov 2021

VSAPI OPR PATTERN File:

17.187.00

VSAPI OPR PATTERN Date:

12 Nov 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.XXPE50FFF046

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

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.  
  • %User Temp%\WTHBNZD.bat
  • %Desktop%\ID.txt
  • {Infected Directory}\LegionReadMe.txt

Step 5

Scan your computer with your Trend Micro product to delete files detected as Ransom.MSIL.LEGIONLOCKER.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 the following Trend Micro Support pages for more information:

Step 6

Restore encrypted files from backup.


Did this description help? Tell us how we did.