Analysis by: Patrick Noel Collado

ALIASES:

a variant of Win32/Filecoder.NHQ trojan (Nod32), Trojan-Ransom.Babuk (Ikarus)

 PLATFORM:

Windows

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

Infection Channel: Downloaded from the Internet

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.

  TECHNICAL DETAILS

File Size: 31,232 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 26 Jan 2021
Payload: Displays message/message boxes, Terminates processes, Encrypts files

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

  • /c vssadmin.exe delete shadows /all /quiet

It adds the following mutexes to ensure that only one of its copies runs at any one time:

  • DoYouWantToHaveSexWithCoungDong

Process Termination

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

  • AcronisAgent 
  • AcrSch2Svc 
  • backup 
  • BackupExecAgentAccelerator 
  • BackupExecAgentBrowser 
  • BackupExecDiveciMediaService 
  • BackupExecJobEngine 
  • BackupExecManagementService 
  • BackupExecRPCService 
  • BackupExecVSSProvider 
  • CAARCUpdateSvc 
  • CASAD2DWebSvc 
  • ccEvtMgr 
  • ccSetMgr 
  • DefWatch 
  • GxBlr 
  • GxCIMgr 
  • GxCVD 
  • GxFWD 
  • GxVss 
  • Intuit.QuickBooks.FCS 
  • memtas 
  • mepocs 
  • PDVFSService 
  • QBCFMonitorService 
  • QBFCService 
  • QBIDPService 
  • RTVscan 
  • SavRoam 
  • sophos 
  • stc_raw_agent 
  • veeam 
  • VeeamDeploymentService 
  • VeeamNFSSvc 
  • VeeamTransportSvc 
  • VSNAPVSS 
  • YooBackup 
  • YooIT 
  • zhudongfangyu 

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

  • agntsvc.exe 
  • dbeng50.exe 
  • dbsnmp.exe 
  • encsvc.exe 
  • excel.exe 
  • firefox.exe 
  • infopath.exe 
  • isqlplussvc.exe 
  • msaccess.exe 
  • mspub.exe 
  • mydesktopqos.exe 
  • mydesktopservice.exe 
  • Notepad.exe 
  • ocautoupds.exe 
  • ocomm.exe 
  • ocssd.exe 
  • onenote.exe 
  • oracle.exe 
  • outlook.exe 
  • powerpnt.exe 
  • sqbcoreservice.exe 
  • sql.exe 
  • steam.exe 
  • synctime.exe 
  • tbirdconfig.exe 
  • thebat.exe 
  • thunderbird.exe 
  • visio.exe 
  • winword.exe 
  • wordpad.exe 
  • xfssvccon.exe 

Other Details

This Ransomware does the following:

  • Empties Recycle Bin Contents.
  • Uses Windows Restart Manager to unlock files it will encrypt.
  • Encrypts all fixed and removable drives
  • It encrypts files from network shares.

Ransomware Routine

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

  • $Recycle.Bin 
  • All Users 
  • autorun.inf 
  • boot.ini 
  • bootfont.bin 
  • bootmgfw.efi 
  • bootmgr 
  • bootmgr.efi 
  • bootsect.bak 
  • desktop.ini 
  • Google 
  • iconcache.db 
  • Internet Explorer 
  • Mozilla Firefox 
  • Mozilla 
  • ntldr 
  • ntuser.dat 
  • ntuser.dat.log 
  • ntuser.ini 
  • Opera Software 
  • Opera 
  • Program Files (x86)
  • Program Files 
  • ProgramData 
  • thumbs.db 
  • Tor Browser 
  • Windows 
  • Windows.old 

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

  • .babyk

It leaves text files that serve as ransom notes containing the following text:

  • {Encrypted directory}\How To Restore Your Files.txt

  SOLUTION

Minimum Scan Engine: 9.800
FIRST VSAPI PATTERN FILE: 16.500.06
FIRST VSAPI PATTERN DATE: 26 Jan 2021
VSAPI OPR PATTERN File: 16.501.00
VSAPI OPR PATTERN Date: 27 Jan 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.XXPE50FFF040

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

Identify and terminate files detected as Ransom.Win32.BABUK.YNBA-THABGBA

[ Learn More ]
  1. Windows Task Manager may not display all running processes. In this case, please use a third-party process viewer, preferably Process Explorer, to terminate the malware/grayware/spyware file. You may download the said tool here.
  2. If the detected file is displayed in either Windows Task Manager or Process Explorer but you cannot delete it, restart your computer in safe mode. To do this, refer to this link for the complete steps.
  3. If the detected file is not displayed in either Windows Task Manager or Process Explorer, continue doing the next steps.

Step 5

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. {Encrypted directory}\How To Restore Your Files.txt

Step 6

Scan your computer with your Trend Micro product to delete files detected as Ransom.Win32.BABUK.YNBA-THABGBA. 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 7

Restore encrypted files from backup.


Did this description help? Tell us how we did.