TrojanSpy.MSIL.LOKI.THBABAI

 Analysis by: Jay Garcia

 ALIASES:

HEUR:Backdoor.MSIL.Androm.gen(Kaspersky), MSIL/Kryptik.QHB!tr(Fortinet)

 PLATFORM:

Windows

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 REPORTED INFECTION:
 SYSTEM IMPACT RATING:
 INFORMATION EXPOSURE:

  • Threat Type: Trojan Spy

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet, Dropped by other malware


This Trojan Spy 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:

323,072 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

12 Feb 2019

Payload:

Adds registry entries

Arrival Details

This Trojan Spy 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 Trojan Spy adds the following folders:

  • %Application Data%\{substring from hash of machine GUID}

(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, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, and 8.)

It drops the following files:

  • %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.kdb - keylogger data
  • %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.lck - used for resource locking
  • %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.hdb - hash database of stolen information

(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, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, and 8.)

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

  • %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.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, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista, 7, and 8.)

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

  • {Hash of Machine GUID}

Autostart Technique

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
{substring from hash of machine GUID} = %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.exe

Other System Modifications

This Trojan Spy adds the following registry keys:

HKEY_CURRENT_USER\http://{BLOCKED}vienanthea.com/line9/Panel/five/fre.php

It adds the following registry entries:

HKEY_CURRENT_USER\http://{BLOCKED}vienanthea.com/line9/Panel/five/fre.php
{substring from hash of machine GUID} = %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.exe

Information Theft

This Trojan Spy gathers the following data:

  • User name
  • Computer name
  • Machine GUID

It attempts to steal stored account information used in the following installed File Transfer Protocol (FTP) clients or file manager software:

  • 32BitFtp
  • 9bis.comKiTTY
  • AbleFTP
  • Automize
  • BitKinex
  • Cyberduck
  • DeluxeFTP
  • EasyFTP
  • Estsoft ALFTP
  • ExpanDrive
  • FTP Navigator
  • FTP Now
  • FTPBox
  • FTPGetter
  • FTPInfo
  • FTPShell
  • Far Manager
  • Fastream NETFile
  • FileZilla
  • FlashFXP
  • FlashPeak BlazeFtp
  • FreshWebmaster FreshFTP
  • Ghisler Total Commander
  • GoFTP
  • INSoftware NovaFTP
  • Ipswitch WS_FTP
  • JaSFtp
  • LinasFTP
  • Martin Prikryl
  • NCH Software ClassicFTP
  • NCH Software Fling
  • NetDrive
  • NetDrive 2
  • NetSarang Xftp
  • NexusFile
  • Notepad++ NppFTP
  • Odin Secure FTP Expert
  • Sherrod Computers Sherrod FTP
  • SimonTatham PuTTY
  • SmartFTP
  • Staff-FTP
  • Steed
  • UltraFXP
  • VanDyke SecureFX
  • WinFTP
  • oZone3D MyFTP

It attempts to steal stored email credentials from the following:

  • FossaMail
  • Foxmail
  • IncrediMail
  • Microsoft Outlook
  • Postbox
  • Thunderbird
  • yMail2

It attempts to get stored information such as user names, passwords, and hostnames from the following browsers:

  • 360 Browser
  • 8pecxstudios Cyberfox
  • Apple Safari
  • Baidu Spark
  • Catalina Group Citrio
  • Chromium
  • Coc Coc Browser
  • Comodo Chromodo
  • Comodo Dragon
  • Comodo IceDragon
  • Coowon
  • Epic Privacy Browser
  • Flock
  • Google Chrome
  • Google Chrome SxS
  • Internet Explorer
  • K-Meleon
  • Lunascape 6
  • MapleStudio ChromePlus
  • Moonchild Productions Pale Moon
  • Mozilla Firefox
  • Mozilla SeaMonkey
  • Mustang Browser
  • NETGATE Technologies BlackHawk
  • Nichrome
  • Opera Next
  • Opera Stable
  • QtWeb.NET QtWeb Internet Browser
  • QupZilla
  • RockMelt
  • Sleipnir Browser
  • Superbird
  • Titan Browser
  • Torch
  • Vivaldi
  • Yandex Browser

Stolen Information

This Trojan Spy sends the gathered information via HTTP POST to the following URL:

  • http://{BLOCKED}vienanthea.com/line9/Panel/five/fre.php

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

14.808.02

FIRST VSAPI PATTERN DATE:

12 Feb 2019

VSAPI OPR PATTERN File:

14.809.00

VSAPI OPR PATTERN Date:

13 Feb 2019

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 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\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • {substring from hash of machine GUID} = "%Appdata%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.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.

  • HKEY_CURRENT_USER\http://{BLOCKED}vienanthea.com/line9/Panel/five/fre.php

Step 6

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.
  • %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.lck
  • %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.hdb
  • %Application Data%\{substring from hash of machine GUID}\{substring from hash of machine GUID}.exe

Step 7

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