Ransom.Win32.AGENDA.YPEFR

 Analysis by: Leidryn Saludez

 ALIASES:

Ransom:Win32/Qilinloader.AL!MTB (MICROSOFT)

 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. It avoids encrypting files with the following file extensions.

  TECHNICAL DETAILS

File Size:

5,254,144 bytes

File Type:

EXE

Memory Resident:

No

Initial Samples Received Date:

18 Jun 2024

Payload:

Drops files, Encrypts files, Disables AV, 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:

  • %Temp%\QLOG\ThreadId(Number).LOG → logs execution status

It adds the following processes:

  • "cmd" /C fsutil behavior set SymlinkEvaluation R2R:1
  • "cmd" /C fsutil behavior set SymlinkEvaluation R2L:1
  • "cmd" /C net use
  • "cmd" /C wmic service where name='vss' call ChangeStartMode Manual
  • "cmd" /C net start vss
  • "cmd" /C vssadmin.exe delete shadows /all /quiet
  • "cmd" /C net stop vss
  • "cmd" /C wmic service where name='vss' call ChangeStartMode Disabled
  • "powershell" $logs = Get-WinEvent -ListLog * | Where-Object {$_.RecordCount} | Select-Object -ExpandProperty LogName ; ForEach ( $l in $logs | Sort | Get-Unique ) {[System.Diagnostics.Eventing.Reader.EventLogSession]::GlobalSession.ClearLog($l)}
  • "powershell" -Command "Import-Module ActiveDirectory ; Get-ADComputer -Filter * | Select-Object -ExpandProperty DNSHostName"
  • "powershell" -Command "ServerManagerCmd.exe -i RSAT-AD-PowerShell ; Install-WindowsFeature RSAT-AD-PowerShell ; Add-WindowsCapability -Online -Name 'RSAT.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0'"

It creates the following folders:

  • %Temp%\QLOG

(Note: %Temp% is the Windows temporary folder, where it usually is C:\Windows\Temp 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_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
*vxvjgf = "{Malware file path}" --password {String} --no-admin

Other System Modifications

This Ransomware modifies the following registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Policies\
System
EnableLinkedConnections = 1

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
services\LanmanServer\Parameters
MaxMpxCt = 65535

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Control\FileSystem
SymlinkRemoteToRemoteEvaluation = 1

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Control\FileSystem
SymlinkRemoteToLocalEvaluation = 1

Process Termination

This Ransomware terminates the following services if found on the affected system:

  • vmms
  • mepocs
  • memtas
  • veeam
  • backup
  • vss
  • sql
  • msexchange
  • sophos
  • msexchange
  • msexchange\$
  • wsbexchange
  • pdvfsservice
  • backupexecvssprovider
  • backupexecagentaccelerator
  • backupexecagentbrowser
  • backupexecdivecimediaservice
  • backupexecjobengine
  • backupexecmanagementservice
  • backupexecrpcservice
  • gxblr
  • gxvss
  • gxclmrs
  • gxcvd
  • gxcimgr
  • gxmmm
  • gxvsshwprov
  • gxfwd
  • sapservice
  • sap
  • sap\$
  • sapd\$
  • saphostcontrol
  • saphostexec
  • qbcfmonitorservice
  • qbdbmgrn
  • qbidpservice
  • acronisagent
  • veeamnfssvc
  • veeamdeploymentservice
  • veeamtransportsvc
  • mvarmor
  • mvarmor64
  • vsnapvss
  • acrsch2svc
  • (.*?)sql(.*?)

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

  • vmms
  • vmwp
  • vmcompute
  • agntsvc
  • dbeng50
  • dbsnmp
  • encsvc
  • excel
  • firefox
  • infopath
  • isqlplussvc
  • sql
  • msaccess
  • mspub
  • mydesktopqos
  • mydesktopservice
  • notepad
  • ocautoupds
  • ocomm
  • ocssd
  • onenote
  • oracle
  • outlook
  • powerpnt
  • sqbcoreservice
  • steam
  • synctime
  • tbirdconfig
  • thebat
  • thunderbird
  • visio
  • winword
  • wordpad
  • xfssvccon
  • bedbh
  • vxmon
  • benetns
  • bengien
  • pvlsvr
  • beserver
  • raw_agent_svc
  • vsnapvss
  • cagservice
  • qbidpservice
  • qbdbmgrn
  • qbcfmonitorservice
  • sap
  • teamviewer_service
  • teamviewer
  • tv_w32
  • tv_x64
  • cvmountd
  • cvd
  • cvfwd
  • cvods
  • saphostexec
  • saposcol
  • sapstartsrv
  • avagent
  • avscc
  • dellsystemdetect
  • enterpriseclient
  • veeamnfssvc
  • veeamtransportsvc
  • veeamdeploymentsvc
  • mvdesktopservice

Other Details

This Ransomware does the following:

  • It terminates itself if it detects that the sample is being executed within a virtual environment.
  • It requires the correct input password to proceed in its intended routine.
  • Impersonates the privileges of the following process:
    • wininit.exe
    • winlogon.exe
    • lsass.exe

It accepts the following parameters:

  • --password {String} → password to enter before proceeding with its intended routine
  • --paths {Directory} → defines the path that parses directories; if this flag is used and left empty, all directories will be scanned
  • --ips {IP Addresses} → Allows for providiing IP addresses
  • --excludes {directory} → exclude directory for encryption
  • --timer → Sets a time delay before execution.
  • --no-sandbox
  • --no-escalate
  • --impersonate
  • --safe
  • --no_priority
  • --should_be_admin
  • --no-local
  • --no-domain
  • --no-network
  • --no-ef
  • --no-ff
  • --no-df
  • --no-proc
  • --no-services
  • --no-vmkill-cluster
  • --no-extension
  • --no-wallpaper
  • --no-note
  • --no-destruct
  • --no-zero
  • --print-image
  • --print-delay
  • --force
  • --spreads
  • --debugspread
  • --spread-vcenter
  • --dry-run

Ransomware Routine

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

  • desktop.ini
  • autorun.ini
  • ntldr
  • bootsect.bak
  • thumbs.db
  • boot.ini
  • ntuser.dat
  • iconcache.db
  • bootfont.bin
  • ntuser.ini
  • ntuser.dat.log
  • autorun.inf
  • bootmgr
  • bootmgr.efi
  • bootmgfw.efi
  • #recycle
  • autorun.inf
  • boot.ini
  • bootfont.bin
  • bootmgr
  • bootmgr.efi
  • bootmgfw.efi
  • desktop.ini
  • iconcache.db
  • ntldr
  • ntuser.dat
  • ntuser.dat.log
  • ntuser.ini
  • thumbs.db
  • #recycle
  • bootsect.bak

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

  • windows
  • system volume information
  • intel
  • admin$
  • ipc$
  • sysvol
  • netlogon
  • $windows.~ws
  • application data
  • mozilla
  • program files (x86)
  • program files
  • $windows.~bt
  • msocache
  • tor browser
  • programdata
  • boot
  • config.msi
  • google
  • perflogs
  • appdata
  • windows.old
  • appdata
  • boot
  • windows
  • windows.old
  • $recycle.bin
  • admin$

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

  • {Original filename}.{Original Extension}.CcXB9wE4s7.{Random}

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

  • {All Available Directories}\README-RECOVER-CcXB9wE4s7.txt

It avoids encrypting files with the following file extensions:

  • themepack
  • nls
  • diapkg
  • msi
  • lnk
  • exe
  • scr
  • bat
  • drv
  • rtp
  • msp
  • prf
  • msc
  • ico
  • key
  • ocx
  • diagcab
  • diagcfg
  • pdb
  • wpx
  • hlp
  • icns
  • rom
  • dll
  • msstyles
  • mod
  • ps1
  • ics
  • hta
  • bin
  • cmd
  • ani
  • 386
  • lock
  • cur
  • idx
  • sys
  • com
  • deskthemepack
  • shs
  • theme
  • mpa
  • nomedia
  • spl
  • cpl
  • adv
  • icl
  • msu
  • CcXB9wE4s7

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

19.412.03

FIRST VSAPI PATTERN DATE:

18 Jun 2024

VSAPI OPR PATTERN File:

19.413.00

VSAPI OPR PATTERN Date:

19 Jun 2024

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

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

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_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • *vxvjgf = {Malware file path} --password {String} --no-admin
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
    • EnableLinkedConnections = 1
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\LanmanServer\Parameters
    • MaxMpxCt = 65535
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FileSystem
    • SymlinkRemoteToRemoteEvaluation = 1
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FileSystem
    • SymlinkRemoteToLocalEvaluation = 1

Step 5

Search and delete these folders

[ 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.
  • %User Temp%\QLOG

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.
  • %Temp%\QLOG\ThreadId(Number).LOG
  • {All Available Directories}\README-RECOVER-CcXB9wE4s7.txt

Step 7

Scan your computer with your Trend Micro product to delete files detected as Ransom.Win32.AGENDA.YPEFR. 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 8

Restore encrypted files from backup.


Did this description help? Tell us how we did.