TSPY_BEBLOH.GL

 Analysis by: Michael Jay Villanueva

 ALIASES:

Win32/Spy.Bebloh.O (ESET-NOD32)

 PLATFORM:

Windows

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

  • Threat Type: Spyware

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Via email, Dropped by other malware, Downloaded from the Internet


This Spyware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites. It may be downloaded by other malware/grayware from remote sites.

It connects to certain websites to send and receive information. However, as of this writing, the said sites are inaccessible. It gathers information and reports it to its servers.

  TECHNICAL DETAILS

File Size:

219,648 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

28 Jul 2017

Payload:

Connects to URLs/IPs, Steals information

Arrival Details

This Spyware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It may be downloaded by the following malware/grayware from remote sites:

It may be downloaded from the following remote sites:

  • http://{BLOCKED}p.com/ego.exe

Installation

This Spyware drops the following copies of itself into the affected system:

  • %Application Data%\{random string}.exe
    (Note: Creation of this copy is triggered when the affected system is shutting down)

(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 processes:

  • explorer.exe

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

  • Uz{Random Hex}

It injects codes into the following process(es):

  • explorer.exe

Autostart Technique

This Spyware creates the following registry entries to enable automatic execution of dropped component at every system startup:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{random string} = "%Application Data%\{random string}.lnk”
(Note: Creation of this registry entry is triggered when the affected system is shutting down)

Other System Modifications

This Spyware adds the following registry keys:

HKEY_CURRENT_USER\Software\{random key}

It adds the following registry entries:

HKEY_CURRENT_USER\Software\{random key}
{random value} = "{hex values}"

HKEY_CURRENT_USER\Software\{random key}
(Default) = "{hex values}"

Dropping Routine

This Spyware drops the following files:

  • %Application Data%\{random string}.lnk <- points to the copy
    (Note: Creation of this file is triggered when the affected system is shutting down, appends parameter "-autorun" to executed 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.)

Stolen Information

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

  • https://{BLOCKED}r.at/auth/?tver={Value}&vcmd={Value}&cc={Value}&hh={Hex Value}&ipcnf={IP address}+&sckport={Value}&pros={Value}&keret={Keyboard Layout};&email={Value}

Other Details

This Spyware connects to the following URL(s) to check for an Internet connection:

  • www.google.com

It connects to the following website to send and receive information:

  • {Random Generated Domain}.com
  • {Random Generated Domain}.net
  • https://{BLOCKED}r.at

It does the following:

  • Update itself
  • It does not proceed to its malicious routine if it detects that it is running in a VMWare environment
  • It deletes the cache files of Google Chrome and Mozilla Firefox
  • This malware does any of the following depending on the reply from the C&C:
    • Sleep and wait for next reply
    • Receive download URL to download other possibly malicious files

However, as of this writing, the said sites are inaccessible.

It gathers the following information and reports it to its servers:

  • Machine Name
  • OS Information (Version, Product ID, Name, Install Date)
  • Explorer File Information
  • Volume Serial Number
  • Network Configuration (IP address, Socket, Ports)
  • Keyboard Layout

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

13.560.04

FIRST VSAPI PATTERN DATE:

28 Jul 2017

VSAPI OPR PATTERN File:

13.561.00

VSAPI OPR PATTERN Date:

29 Jul 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. Before you could do this, you must restart in Safe Mode. For instructions on how to do this, you may refer to this page If the preceding step requires you to restart in safe mode, you may proceed to edit the system registry.

  • In HKEY_CURRENT_USER\Software
    • {random key}

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
    • {random string} = "%Application Data%\{random string}.lnk"

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.
  • %Application Data%\{random string}.lnk

Step 7

Remove the malware/grayware file that dropped/downloaded TSPY_BEBLOH.GL. (Note: Please skip this step if the threat(s) listed below have already been removed.)

     
    • X2KM_POWMET.GL

Step 8

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