RANSOM_DISKDOC.THFOEAH

 Analysis by: Carl Maverick Pascual

 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

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 found in specific folders. It drops files as ransom note.

  TECHNICAL DETAILS

File Size:

219,648 bytes

File Type:

EXE

Memory Resident:

No

Initial Samples Received Date:

05 Jun 2018

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%\Local Security Authority Process.exe

(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.)

It drops the following files:

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

(Note: %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000, XP, and Server 2003, or C:\Users\{user name} on Windows Vista and 7.)

It adds the following processes:

  • mshta.exe "javascript:o=new ActiveXObject('Scripting.FileSystemObject');setInterval(function(){try{o.DeleteFile('{malware filename}');close()}catch(e){}},10) -> delete malware copy
  • mshta.exe "javascript:o=new ActiveXObject('WScript.Shell');x=new ActiveXObject('Scripting.FileSystemObject');setInterval(function(){try{i=x.GetFile('Local Security Authority Process.exe').Path;o.RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\JMAHRDUU',i);}catch(e){}},10) -> create auto-run registry
  • cmd.exe /c wbadmin DELETE SYSTEMSTATEBACKUP -keepVersions:0 -> deletes all the system state backups
  • cmd.exe /c wmic SHADOWCOPY DELETE -> deletes shadow copies
  • cmd.exe /c vssadmin Delete Shadows /All /Quiet -> deletes shadow copies
  • cmd.exe /c bcdedit /set {default} recoveryenabled No -> disable Windows Recovery option
  • cmd.exe /c bcdedit /set {default} bootstatuspolicy ignoreallfailures -> disable system's trigger to call the Error Recovery screen on startup
  • %System%\cmd.exe /c start /max notepad.exe "%UserProfile%\HOW TO RECOVER ENCRYPTED FILES.TXT" -> display ransom note
  • mshta.exe "javascript:o=new ActiveXObject('Scripting.FileSystemObject');setInterval(function(){try{o.DeleteFile('%Application Data%\Local Security Authority Process.exe');close()}catch(e){}},10) -> delete malware copy

(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.)

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

  • JMAHRDUU

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
JMAHRDUU = notepad.exe "%User Profile%\HOW TO RECOVER ENCRYPTED FILES.TXT"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\RunOnce
JMAHRDUU = %Application Data%\Local Security Authority Process.exe

Other System Modifications

This Ransomware adds the following registry entries:

HKEY_CURRENT_USER\Software\JMAHRDUU
idle = 1

HKEY_CURRENT_USER\Software\{5-random characters #1}
{5-random characters #2} = "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)"

HKEY_CURRENT_USER\Software\JMAHRDUU
temp = {Encrypted malicious code}

Process Termination

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

  • agntsvc.exe
  • isqlplussvc.exe
  • ncsvc.exe
  • msftesql.exe
  • sqlagent.exe
  • sqlbrowser.exe
  • sqlservr.exe
  • sqlserver.exe
  • sqlwriter.exe
  • oracle.exe
  • ocssd.exe
  • dbsnmp.exe
  • synctime.exe
  • mydesktopqos.exe
  • agntsvc.exe
  • isqlplussvc.exe
  • xfssvccon.exe
  • mydesktopservice.exe
  • ocautoupds.exe
  • agntsvc.exeagntsvc.exe
  • agntsvc.exeencsvc.exe
  • firefoxconfig.exe
  • tbirdconfig.exe
  • ocomm.exe
  • mysqld.exe
  • mysqld-nt.exe
  • mysqld-opt.exe
  • dbeng50.exe
  • sqbcoreservice.exe
  • agntsvc.exe
  • isqlplussvc.exe
  • ncsvc.exe
  • msftesql.exe
  • sqlagent.exe
  • sqlbrowser.exe
  • sqlservr.exe
  • sqlserver.exe
  • sqlwriter.exe
  • oracle.exe
  • ocssd.exe
  • dbsnmp.exe
  • synctime.exe
  • mydesktopqos.exe
  • agntsvc.exe
  • isqlplussvc.exe
  • xfssvccon.exe
  • mydesktopservice.exe
  • ocautoupds.exe
  • agntsvc.exe
  • encsvc.exe
  • firefoxconfig.exe
  • tbirdconfig.exe
  • ocomm.exe
  • mysqld.exe
  • mysqld-nt.exe
  • mysqld-opt.exe
  • dbeng50.exe
  • sqbcoreservice.exe

Ransomware Routine

This Ransomware encrypts files found in the following folders:

  • {Fixed drives}
  • {Remote drives}
  • {Shared Folders}
  • Microsoft\Exchange Server
  • Microsoft SQL Server
  • Firebird
  • MSSQL.1
  • Microsoft SQL Server CompactEdition
  • Adobe
  • Oracle

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

  • :\$RECYCLE.BIN\
  • \All Users\
  • \AppData\
  • \Application Data\
  • :\Program Files (x86)\
  • :\Program Files\
  • :\System VolumeInformation\
  • :\Windows\
  • :\intel\
  • :\nvidia\

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

  • .DiskDoctor

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

  • {Encrypted directory}\HOW TO RECOVER ENCRYPTED FILES.TXT

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

14.296.01

FIRST VSAPI PATTERN DATE:

05 Jun 2018

VSAPI OPR PATTERN File:

14.297.00

VSAPI OPR PATTERN Date:

06 Jun 2018

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

Terminate a malware/grayware process

[ Learn More ]

*Note: If the detected process is not displayed in theWindows Task Manager, continue doing the next steps.

    • %Application Data%\Local Security Authority Process.exe

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
    • JMAHRDUU = %Application Data%\Local Security Authority Process.exe
  • In HKEY_CURRENT_USER\Software\{5-random characters #1}
    • {5-random characters #2} = "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)"
  • In HKEY_CURRENT_USER\Software\JMAHRDUU
    • temp = {Encrypted malicious code}
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • JMAHRDUU = notepad.exe "%User Profile%\HOW TO RECOVER ENCRYPTED FILES.TXT"
  • In HKEY_CURRENT_USER\Software\JMAHRDUU
    • idle = “1”

Step 5

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.
  • %Application Data%\Local Security Authority Process.exe
  • %User Profile%\HOW TO RECOVER ENCRYPTED FILES.TXT
  • {Encrypted directory}\HOW TO RECOVER ENCRYPTED FILES.TXT

Step 6

Restore encrypted files from backup.

Step 7

Scan your computer with your Trend Micro product to delete files detected as RANSOM_DISKDOC.THFOEAH. 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:

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.