Analysis by: Jay Garcia

ALIASES:

W32/Injector.EFJS!tr (Fortinet); a variant of Win32/Injector.EFLD trojan (NOD32)

 PLATFORM:

Windows

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

  • Threat Type: Backdoor

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel: Dropped by other malware, Downloaded from the Internet

This Backdoor 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 commands from a remote malicious user, effectively compromising the affected system.

  TECHNICAL DETAILS

File Size: 487,424 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 16 May 2019
Payload: Connects to URLs/IPs, Steals information

Arrival Details

This Backdoor 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 Backdoor drops the following files:

  • %Application Data%\remcos\logs.dat <- component file
  • %User Temp%\install.bat <- executes the dropped copy of the malware

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

It drops the following copies of itself into the affected system:

  • %Application Data%\remcos\remcos.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 creates the following folders:

  • %Application Data%\remcos

(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 mutexes to ensure that only one of its copies runs at any one time:

  • Remcos_Mutex_Inj

Autostart Technique

This Backdoor adds the following registry entries to enable its automatic execution at every system startup:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
remcos = "%Application Data%\remcos\remcos.exe"

Other System Modifications

This Backdoor adds the following registry keys:

HKEY_CURRENT_USER\Software\remcos_{Random}

It adds the following registry entries:

HKEY_CURRENT_USER\Software\remcos_{Random}
EXEpath = {hex values}

Backdoor Routine

This Backdoor executes the following commands from a remote malicious user:

  • Perform ping
  • Enumerate drives
  • List all files
  • Open file/s
  • Get file/s from affected computer
  • Upload file/s to affected computer
  • Delete file/s from affected computer
  • Rename file/s from affected computer
  • Create new directory
  • Search a file from affected computer
  • Download file from url
  • Download file from local
  • Enumerate process
  • Terminate process
  • Maximize/Minimize application
  • Switch application
  • Terminate application
  • Open cmd
  • Open webpage
  • Open screen capture
  • Open keylogger
  • Set affected computer to send logs automatically
  • Deletes cookies and stored browser logins
  • Get screenshot
  • Capture image from camera if available
  • Capture voice from mic if available
  • Acquire user password
  • Display a messagebox to affected computer
  • Sends keyboard input
  • Sends mouse click
  • Shutdown affected Computer
  • Copy clipboard data
  • Set clipboard data
  • Clear clipboard data
  • Manipulate registry entries

It connects to the following URL(s) to send and receive commands from a remote malicious user:

  • {BLOCKED}.{BLOCKED}.100.57:3475

Other Details

This Backdoor does the following:

  • This Backdoor gathers the following information and reports it to its servers:
    • Computer Name
    • Operating System Version
    • Product Name
    • Primary Adapter
    • User Access (Admin or Non-admin)
    • User Profile
    • User Name
    • User Domain
    • Processor Revision No.
    • Processor Level
    • Processor Identifier
    • Processor Architecture
    • System Type (32-bit or 64-bit)

  SOLUTION

Minimum Scan Engine: 9.850
FIRST VSAPI PATTERN FILE: 15.114.05
FIRST VSAPI PATTERN DATE: 16 May 2019
VSAPI OPR PATTERN File: 15.115.00
VSAPI OPR PATTERN Date: 17 May 2019

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\Microsoft\Windows\CurrentVersion\Run
    • remcos = "%Application Data%\remcos\remcos.exe"

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.

  • In HKEY_CURRENT_USER\Software
    • remcos_{Random}

Step 6

Search and delete these folders

[ Learn More ]
Please make sure you check the Search Hidden Files and Folders checkbox in the More advanced options option to include all hidden folders in the search result.
  • %Application Data%\remcos

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%\install.bat

Step 8

Restart in normal mode and scan your computer with your Trend Micro product for files detected as Backdoor.Win32.REMCOS.GAK. 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.


Did this description help? Tell us how we did.