TSPY_BANBRA.MUJL

 Analysis by: Francis Xavier Antazo

 ALIASES:

Trojan:Win32/Skeeyah.A!rfn (Microsoft); a variant of Win32/Injector.Autoit.AD (ESET);

 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:

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 connects to certain websites to send and receive information.

  TECHNICAL DETAILS

File Size:

15630903 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

23 Jun 2016

Payload:

Connects to URLs/IPs

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.

Installation

This spyware drops the following files:

  • %User Temp%\sock.txt
  • %All Users Profile%\BSystem\ksystem.exe
  • %User Temp%\avinquer.txt
  • %Application Data%\win64.txt
  • %User Temp%\hookmgr.sys (detected as TROJ_GEN.R047C0DFR16)
  • %User Temp%\chaves.txt
  • %User Temp%\data.xml (contains scheduled task xml format)
  • %User Temp%\data2.xml (contains scheduled task file)
  • %User Temp%\modelo.txt (contains list of folders to delete)
  • %Program Files%\{random file name 1}.txt (contains list of folders to delete)

(Note: %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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.. %All Users Profile% is the All Users folder, where it usually is C:\Documents and Settings\All Users on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData 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.. %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.. %Program Files% is the Program Files folder, where it usually is C:\Program Files on all Windows operating system versions; C:\Program Files (x86) for 32-bit applications running on Windows 64-bit operating systems.)

It drops and executes the following files:

  • %System Root%\cleanup.bat (executed to remove traces of Avenger-related-files file-execution)
  • %System Root%\cleanup.exe (executes cleanup.bat and avenger.txt at %root drive%)
  • %User Temp%\mod.bat (executes mod.exe to load modelo.txt)

(Note: %System Root% is the Windows root folder, where it usually is C:\ on all Windows operating system versions.. %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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 non-malicious file:

  • %System%\drivers\{random file name 2}.sys (part of Avenger by swandog)
  • %System Root%\zip.exe
  • %User Temp%\mod.exe (part of Avenger by swandog)

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %System Root% is the Windows root folder, where it usually is C:\ on all Windows operating system versions.. %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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.)

Autostart Technique

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\RunOnce
Cleanup = "%System Root%\cleanup.exe"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\hookmgr
ImagePath = "\??\%User Temp%\hookmgr.sys"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
ImagePath = "system32\drivers\{random file name 2}.sys"

It registers its dropped component as a system service to ensure its automatic execution at every system startup. It does this by creating the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
ImagePath = "system32\drivers\{random file name 2}.sys"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
Start = "0"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
Type = "1"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
ErrorControl = "1"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
{random characters} = "\??\%Program Files%\{random file name 1}.txt"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
{random characters} = "%Windows%"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{random service name 1}
{random characters} = "{random characters}"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\hookmgr
ImagePath = "\??\%User Temp%\hookmgr.sys"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\hookmgr
Type = "{random characters}" =

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\hookmgr
Type = "{random characters}" =

Process Termination

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

  • notepad.exe
  • chrome.exe
  • firefox.exe

Information Theft

This spyware gathers the following data:

  • keybordlogs
  • clipboardlogs
  • computername
  • OS Version
  • Default Browser
  • Plugins
  • Installed AV

Other Details

This spyware connects to the following website to send and receive information:

  • {BLOCKED}tanadave.com/box/lop.php

NOTES:

This Trojan creates the following scheduled task:

  • %System%\Tasks\Update\ksystem.exe

It attempts to delete the following files:

  • %Program Files%\AVG
  • %Program Files%\Alwil Software
  • %Program Files%\AVAST Software
  • %Program Files%\Panda Security
  • %Program Files%\ESET
  • %Program Files%\KASPER~1
  • %Program Files%\Avira
  • %Program Files%\Softwin
  • %Program Files%\Grisoft
  • %Program Files%\NORTON~1
  • %Program Files%\Microsoft Security Client

It disables hardware acceleration mode in the following browsers:

  • Google Chrome
  • Mozilla Firefox

It checks the presence of the following files:

  • %Program Files%\GbPlugin\gbieh.dll
  • %Program Files%\GbPlugin\gbiehcef.dll
  • %Program Files%\GbPlugin\gbiehuni.dll
  • %Program Files%\GbPlugin\gbiehabn.dll
  • %Program Files%\GbPlugin\gbiehscd.dll
  • %Program Files%\Scpad\scpVista.exe
  • %Program Files%\Trusteer\Rapport\bin\RapportService.exe

It checks Chrome, Firefox and Internet Explorer browser windows for the presence of the following:

  • bb.com.br
  • Banco do Brasil
  • Banco Bradesco S/A
  • Banco Bradesco | Pessoa Fisica, Exclusive, Prime Private
  • 30 horas
  • Banco Ita' - Feito Para Voce
  • Pessoa Física - Santander
  • Pessoa Jurídica - Santander
  • Sicredi
  • Caixa - A vida pede mais que um banco
  • Portal Internet Banrisul
  • Serviços Financeiros Pessoa Física | HSBC Brasil
  • Citibank Brasil
  • Bradesco Cidadetran
  • www.sicoob.com.br

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

12.650.06

FIRST VSAPI PATTERN DATE:

13 Jul 2016

VSAPI OPR PATTERN File:

12.651.00

VSAPI OPR PATTERN Date:

14 Jul 2016

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

Scan your computer with your Trend Micro product to delete files detected as TSPY_BANBRA.MUJL. 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 4

Restart in Safe Mode

[ Learn More ]

Step 5

Remove malware/grayware files dropped/downloaded by TSPY_BANBRA.MUJL. (Note: Please skip this step if the threats listed below have already been removed.)

    • TROJ_GEN.R047C0DFR16

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.
  • %User Temp%\sock.txt
  • %All Users Profile%\BSystem\ksystem.exe
  • %System%\Tasks\Update\ksystem.exe
  • %User Temp%\avinquer.txt
  • %Application Data%\win64.txt
  • %User Temp%\chaves.txt
  • %User Temp%\data.xml (contains scheduled task xml format)
  • %User Temp%\data2.xml (contains scheduled task file)
  • %User Temp%\modelo.txt (contains list of folders to delete)
  • %Program Files%\{random file name 1}.txt (contains list of folders to delete)
  • %System Root%\cleanup.bat (executed to remove traces of Avenger-related-files file-execution)
  • %System Root%\cleanup.exe (executes cleanup.bat and avenger.txt at %root drive%)
  • %User Temp%\mod.bat (executes mod.exe to load modelo.txt)
  • %System%\drivers\{random file name 2}.sys (part of Avenger by swandog)
  • %System Root%\zip.exe
  • %User Temp%\mod.exe (part of Avenger by swandog)

Step 7

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\RunOnce
    • Cleanup = "%System Root%\cleanup.exe"

Step 8

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_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services
    • hookmgr
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services
    • {random service name 1}

Step 9

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