Ransom.Win32.NEMTY.N

 Analysis by: Kennard Yap

 ALIASES:

W32/EKJD!tr (FORTINET)

 PLATFORM:

Windows

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

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

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.

  TECHNICAL DETAILS

File Size:

106,370 bytes

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:

  • %Cookies%\{username}@dp-ip[1].txt

(Note: %Cookies% is the Internet Explorer browser cookies folder, which is usually C:\Documents and Settings\{user name}\Cookies on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Roaming\Microsoft\Windows\Cookies on Windows Vista and 7, or C:\Users\{user name}\AppData\Local\Microsoft\Windows\INetCookies on Windows 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It adds the following processes:

  • "%System%\cmd.exe" /c vssadmin resize shadowstorage /for={drive letter}: /on={drive letter}: /maxsize=401MB
  • "%System%\cmd.exe" /c vssadmin resize shadowstorage /for={drive letter}: /on={drive letter}: /maxsize=unbounded
  • "C:\Windows\System32\cmd.exe" /c taskkill /f /im sql.* & taskkill /f /im winword.* & taskkill /f /im wordpad.* & taskkill /f /im outlook.* & taskkill /f /im thunderbird.* & taskkill /f /im oracle.* & taskkill /f /im excel.* & taskkill /f /im onenote.* & taskkill /f /im virtualboxvm.* & taskkill /f /im node.* & taskkill /f /im QBW32.* & taskkill /f /im WBGX.* & taskkill /f /im Teams.* & taskkill /f /im Flow.* ;
  • "C:\Windows\System32\cmd.exe" /c bcdedit /set {default} bootstatuspolicy ignoreallfailures & bcdedit /set {default} recoveryenabled no & wbadmin delete catalog -quiet & wmic shadowcopy delete;
  • "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -e RwBlAHQALQBXAG0AaQBPAGIAagBlAGMAdAAgAFcAaQBuADMAMgBfAFMAaABhAGQAbwB3AGMAbwBwAHkAIAB8ACAARgBvAHIARQBhAGMAaAAtAE8AYgBqAGUAYwB0ACAAewAkAF8ALgBEAGUAbABlAHQAZQAoACkAOwB9AA==;
  • net stop DbxSvc ;
  • net stop OracleXETNSListener ;
  • net stop OracleServiceXE ;
  • net stop AcrSch2Svc ;
  • net stop AcronisAgent ;
  • net stop Apache2.4 ;
  • net stop SQLWriter ;
  • net stop MSSQL$SQLEXPRESS ;
  • net stop MSSQLServerADHelper100 ;
  • net stop MongoDB ;
  • net stop SQLAgent$SQLEXPRESS ;
  • net stop SQLBrowser ;
  • net stop CobianBackup11 ;
  • net stop cbVSCService11 ;
  • net stop QBCFMontorService ;
  • net stop QBVSS ;
  • taskkill /f /im sql.* ;
  • taskkill /f /im winword.* ;
  • taskkill /f /im wordpad.* ;
  • taskkill /f /im outlook.* ;
  • taskkill /f /im thunderbird.* ;
  • taskkill /f /im oracle.* ;
  • taskkill /f /im excel.* ;
  • taskkill /f /im onenote.* ;
  • taskkill /f /im virtualboxvm.* ;
  • taskkill /f /im node.* ;
  • taskkill /f /im QBW32.* ;
  • taskkill /f /im WBGX.* ;
  • taskkill /f /im Teams.* ;
  • taskkill /f /im Flow.* ;
  • bcdedit /set {default} bootstatuspolicy ignoreallfailures ;
  • bcdedit /set {default} recoveryenabled no ;
  • C:\Windows\system32\net1 stop DbxSvc ;
  • C:\Windows\system32\net1 stop OracleXETNSListener ;
  • C:\Windows\system32\net1 stop OracleServiceXE ;
  • C:\Windows\system32\net1 stop AcrSch2Svc ;
  • C:\Windows\system32\net1 stop AcronisAgent ;
  • C:\Windows\system32\net1 stop Apache2.4 ;
  • C:\Windows\system32\net1 stop SQLWriter ;
  • C:\Windows\system32\net1 stop MSSQL$SQLEXPRESS ;
  • C:\Windows\system32\net1 stop MSSQLServerADHelper100 ;
  • C:\Windows\system32\net1 stop MongoDB ;
  • C:\Windows\system32\net1 stop SQLAgent$SQLEXPRESS ;
  • C:\Windows\system32\net1 stop SQLBrowser ;
  • C:\Windows\system32\net1 stop CobianBackup11 ;
  • C:\Windows\system32\net1 stop cbVSCService11 ;
  • C:\Windows\system32\net1 stop QBCFMontorService ;
  • C:\Windows\system32\net1 stop QBVSS ;
  • wbadmin delete catalog -quiet ;
  • wmic shadowcopy delete;

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

Other System Modifications

This Ransomware adds the following registry entries:

HKEY_CURRENT_USER\Software\NEMTY
cfg = {random characters}

HKEY_CURRENT_USER\Software\NEMTY
fid = NEMTY_{7 random characters}

HKEY_CURRENT_USER\Software\NEMTY
pbkey = {random characters}

Other Details

This Ransomware adds the following registry keys:

HKEY_CURRENT_USER\Software\NEMTY

It connects to the following URL(s) to get the affected system's IP address:

  • www.myexternalip.com
  • http://api.dp-ip.com

It connects to the following possibly malicious URL:

  • http://ocsp.{BLOCKED}i.goog/gsr2/ME4wTDBKMEgwRjAJBgUrDgMCGgUABBTgXIsxbvr2lBkPpoIEVRE6gHlCnAQUm%2BIHV2ccHsBqBt5ZtJot39wZhi4CDQHjtJ13zfQMBhkWtuM%3D
  • http://ocsp.{BLOCKED}i.goog/gts1d2/MFEwTzBNMEswSTAJBgUrDgMCGgUABBT4YwNSyUnwC88de5a5l4eUO%2BLQewQUsd0yXei3N3LSzlzOJv5HeeIBCOkCEGmJiasGJ4WACgAAAAAJZOI%3D

Ransomware Routine

This Ransomware appends the following extension to the file name of the encrypted files:

  • NEMTY_{7 random characters}

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

  • NEMTY_{7 random characters}-DECRYPT.txt

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.710.03

FIRST VSAPI PATTERN DATE:

27 Feb 2020

VSAPI OPR PATTERN File:

15.711.00

VSAPI OPR PATTERN Date:

28 Feb 2020

Step 1

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 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 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\NEMTY
    • cfg = {random characters}
  • In HKEY_CURRENT_USER\Software\NEMTY
    • fid = NEMTY_{7 random characters}
  • In HKEY_CURRENT_USER\Software\NEMTY
    • pbkey = {random characters}

Step 5

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.

  • HKEY_CURRENT_USER\Software\NEMTY

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.
  • %Cookies%\{username}@dp-ip[1].txt
  • NEMTY_{7 random characters}-DECRYPT.txt

Step 7

Restart in normal mode and scan your computer with your Trend Micro product for files detected as Ransom.Win32.NEMTY.N. 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 8

Restore encrypted files from backup.


Did this description help? Tell us how we did.