RANSOM_CRYPTROTCOD.A

 Analysis by: Hazel Ann Poligratis

 ALIASES:

Trojan.Ransom.RotorCrypt (ALYac), Win32/Filecoder.RotoCrypt.C (ESET-NOD32), Ransom:Win32/Cryproto.B (Microsoft)

 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.

  TECHNICAL DETAILS

File Size:

227,840 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

11 Oct 2017

Payload:

Terminates processes, Displays windows, 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:

  • %AppDataLocal%\{Random Folder}\{8 Random Characters}.exe

(Note: %AppDataLocal% is the Application Data folder found in Local Settings, where it is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local on Windows Vista (32- and 64-bit), Windows 7 (32- and 64-bit), Windows 8 (32- and 64-bit), Windows 8.1 (32- and 64-bit), Windows Server 2008, and Windows Server 2012.)

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

  • Local\{GUID}
  • Global\{GUID}

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
nMBWTgVW = %AppDataLocal%\{Random Folder}\{8 Random Character}.exe

It drops the following files:

  • %Application Data%\Microsoft\Windows\Start Menu\Programs\Startup\nMBWTgVW.lnk (LNK file points to the dropped copy of the malware file)

(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming on Windows Vista (32- and 64-bit), Windows 7 (32- and 64-bit), Windows 8 (32- and 64-bit), Windows 8.1 (32- and 64-bit), Windows Server 2008, and Windows Server 2012.)

Other System Modifications

This Ransomware adds the following registry keys:

HKEY_LOCAL_MACHINE\BCD00000000\Objects\
{GUID}\Elements\250000e0
Element = 01 00 00 00 00 00 00 00

HKEY_LOCAL_MACHINE\BCD00000000\Objects\
{GUID}\Elements\16000009
Element = 00

HKEY_CURRENT_USER\SOFTWARE\{8 Random Characters}
nsxKHgVW = {Hex Values}

HKEY_LOCAL_MACHINE\SOFTWARE\{8 Random Characters}
nsxKHgVW = {Hex Values}

Process Termination

This Ransomware terminates processes or services that contain any of the following strings if found running in the affected system's memory:

  • sql
  • backup
  • restore
  • SDRSVC (Windows Backup Service)

Dropping Routine

This Ransomware drops the following files:

  • {Folder containing the encrypted files}\DOCTOR

Other Details

This Ransomware does the following:

  • It deletes the shadow volume copies and disable system recovery.
    • "C:\Windows\System32\vssadmin.exe" delete shadows /all /Quiet
    • "C:\Windows\System32\bcdedit.exe" /set {current} bootstatuspolicy ignoreallfailures
    • "C:\Windows\System32\bcdedit.exe" /set {current} recoveryenabled no
    • "C:\Windows\System32\bcdedit.exe" /set {default} bootstatuspolicy ignoreallfailures
    • "C:\Windows\System32\bcdedit.exe" /set {default} recoveryenabled no

Ransomware Routine

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

  • It does not encrypt the files with the following extensions:
    • .admx
    • .adv
    • .ani
    • .ann
    • .aos
    • .asec
    • .bat
    • .bcd
    • .bio
    • .bk2
    • .blf
    • .bmk
    • .bud
    • .cdmp
    • .chs
    • .ci
    • .clb
    • .cnt
    • .cpi
    • .cpl
    • .cpq
    • .com
    • .cur
    • .desklink
    • .deskthemepack
    • .dev
    • .diagcab
    • .diagcfg
    • .diagpkg
    • .dimax
    • .dit
    • .dlx
    • .dll
    • .dls
    • .dmp
    • .drv
    • .dss
    • .dvd
    • .dyc
    • .ebd
    • .efi
    • .evtx
    • .exe
    • .ffa
    • .ffl
    • .ffo
    • .ffx
    • .ftg
    • .fts
    • .gmmp
    • .grl
    • .group
    • .grp
    • .h1s
    • .hdmp
    • .hhc
    • .hhk
    • .hiv
    • .hlp
    • .hpj
    • .hsh
    • .htt
    • .icl
    • .icns
    • .ico
    • .idi
    • .idx
    • .ime
    • .img3
    • .inf
    • .inf_loc
    • .ini
    • .ins
    • .ion
    • .itemdata-ms
    • .its
    • .jpn
    • .kbd
    • .kor
    • .library-ms
    • .lng
    • .lnk
    • .lib
    • .manifest
    • .mapimail
    • .mdmp
    • .mlc
    • .mnu
    • .msc
    • .msp
    • .msstyle
    • .msstyles
    • .mui
    • .mui_cccd5ae0
    • .mum
    • .mydocs
    • .nfo
    • .nls
    • .nt
    • .ntfs
    • .ocx
    • .p7b
    • .pck
    • .pdr
    • .pid
    • .pol
    • .ppd
    • .prf
    • .printerexport
    • .prt
    • .ps2
    • .pwl
    • .regtrans-ms
    • .rs
    • .rnd
    • .savedsearch
    • .scf
    • .scr
    • .sdb
    • .shd
    • .shsh
    • .str
    • .swp
    • .sys
    • .tha
    • .theme
    • .trx_dll
    • .uce
    • .vga
    • .vgd
    • .vx_
    • .vxd
    • .wdf
    • .wdgt
    • .webpnp
    • .wer
    • .wph
    • .wpx
    • .xrm-ms

It avoids encrypting files found in the following folders:

  • Crypto
  • Credentials
  • AppCache
  • Firefox
  • Explorer
  • Chrome
  • Opera
  • Mozilla
  • Outlook
  • Safari
  • Google

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

  • !_____FIDEL4000@{BLOCKED}IL.COM______.biz

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

13.712.04

FIRST VSAPI PATTERN DATE:

11 Oct 2017

VSAPI OPR PATTERN File:

13.713.00

VSAPI OPR PATTERN Date:

12 Oct 2017

Step 1

Before doing any scans, Windows XP, Windows Vista, and Windows 7 users must disable System Restore to allow full scanning of their computers.

Step 2

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 3

Restart in Safe Mode

[ Learn More ]

Step 4

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_LOCAL_MACHINE\SOFTWARE\{8 Random Characters)
    • nsxKHgVW = {HEX VALUES}
  • In HKEY_CURRENT_USER\SOFTWARE\{8 Random Characters)
    • nsxKHgVW = {HEX VALUES}

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
    • nMBWTgVW = %AppDataLocal%\{Random Folder}\{8 Random Character}.exe

Step 6

Restore this modified 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\BCD00000000\Objects\{GUID}\Elements\250000e0
    • From: Element = 01 00 00 00 00 00 00 00
      To: Element = 00 00 00 00 00 00 00 00
  • In HKEY_LOCAL_MACHINE\BCD00000000\Objects\{GUID}\Elements\16000009
    • From: Element = 00
      To: Element = 01

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.
  • %AppDataLocal%\{Random Folder}\{8 Random Character}.exe
  • %Application Data%\Microsoft\Windows\Start Menu\Programs\Startup\nMBWTgVW.lnk
  • {Folder containing the encrypted files}\DOCTOR

Step 8

Restart in normal mode and scan your computer with your Trend Micro product for files detected as RANSOM_CRYPTROTCOD.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 this Knowledge Base page for more information.

Step 9

Restore encrypted files from backup.

NOTES:

Enabling Volume Shadow Service

  1. Run the command prompt (cmd.exe) as administrator.
  2. Enable Volume Shadow Service by typing the following command:

    net start vss

Enabling Windows Error Recovery

  1. Run the command prompt (cmd.exe) as administrator.
  2. Enable Windows Error Recovery Screen on Startup use the following command:

    bcdedit /set {default} bootstatuspolicy displayallfailures

Enabling Startup Repair

  1. Run the command prompt (cmd.exe) as administrator.
  2. Enable Startup Repair use the following command:

    /bcedit /set {default} recoveryenabled Yes


Did this description help? Tell us how we did.