TrojanSpy.Win32.TRICKBOT.TIABOFFC

 Analysis by: Arvin Roi Macaraeg
 Modified by: Carl Maverick Pascual

 ALIASES:

Trojan-Banker.Win32.Emotet.egyy (Kaspersky) ; Trojan:Win32/TrickBot.I (Fortinet)

 PLATFORM:

Windows

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 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. It may be dropped by other malware.

It uses the Windows Task Scheduler to add a scheduled task that executes the copies it drops. It uses Windows Task Scheduler to create a scheduled task that executes the dropped copy.

It exploits software vulnerabilities to propagate to other computers across a network.

It does not have any backdoor routine.

It attempts to steal sensitive online banking information, such as user names and passwords. This routine risks the exposure of the user's account information, which may then lead to the unauthorized use of the stolen data. It steals certain information from the system and/or the user.

It connects to certain websites to send and receive information.

  TECHNICAL DETAILS

File Size:

391,168 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

26 Nov 2019

Payload:

Connects to URLs/IPs, Collects system information

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.

It may be dropped by the following malware:

  • EMOTET

Installation

This Trojan Spy adds the following folders:

  • %Application Data%\cmdcache
  • %Application Data%\cmdcache\data
  • %Application Data%\cmdcache\data\injectDll{XX}_configs
  • %Application Data%\cmdcache\data\networkDll{XX}_configs
  • %Application Data%\cmdcache\data\pwgrab{XX}_configs
  • %Application Data%\cmdcache\data\tabDlll{XX}_configs
  • %Application Data%\cmcache\data\injectDll{XX}_configs

(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 drops the following copies of itself into the affected system:

  • %Application Data%\cmdcache\{malware file name}.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 drops the following files:

  • %Application Data%\cmdcache\settings.ini -> Contains encrypted victim key
  • Encrypted configuration files for networkDll:
    • %Application Data%\cmdcache\networkDll{XX}_configs\dpost
  • Encrypted configuration files for injectDll:
    • %Application Data%\cmdcache\injectDll{XX}_configs\dinj
    • %Application Data%\cmdcache\injectDll{XX}_configs\dpost
    • %Application Data%\cmdcache\injectDll{XX}_configs\sinj
  • Encrypted configuration files for networkDll:
    • %Application Data%\cmdcache\networkDll{XX}_configs\dpost
  • Encrypted configuration files for pwgrab:
    • %Application Data%\cmdcache\pwgrab{XX}_configs\dpost
  • Encrypted configuration files for tablDll:
    • %Application Data%\cmdcache\tabDll{XX}_configs\dpost
  • Downloaded encrypted modules used to perform different malicious behaviors:
    • %Application Data%\cmdcache\importDll{XX}
    • %Application Data%\cmdcache\injectDll{XX}
    • %Application Data%\cmdcache\mshareDll{XX}
    • %Application Data%\cmdcache\mwormDll{XX}
    • %Application Data%\cmdcache\networkDll{XX}
    • %Application Data%\cmdcache\pwgrab{XX}
    • %Application Data%\cmdcache\tabDll{XX}
    where {XX} can be 32 or 64 depending on the OS architecture.

(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 uses the Windows Task Scheduler to add a scheduled task that executes the copies it drops.

It adds the following processes:

  • cmd /c ipconfig /all
  • cmd /c net config workstation
  • cmd /c net view /all
  • cmd /c net view /all /domain
  • cmd /c nltest /domain_trusts
  • cmd /c nltest /domain_trusts /all_trusts

It uses Windows Task Scheduler to create a scheduled task that executes the dropped copy.

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

  • Global\{17-character Victim ID}

It injects codes into the following process(es):

  • svchost.exe

Autostart Technique

This Trojan Spy adds and runs the following services:

  • Service Name: SystemTypeSvc
    • Display Name: TechnicalSvc
    • ImagePath: %System Root%\stsvc.exe
  • Service Name: SystemTypeSvc
    • Display Name: TechnicalSvc
    • ImagePath: %Windows%\stsvc.exe

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

Propagation

This Trojan Spy exploits the following software vulnerabilities to propagate to other computers across a network:

Backdoor Routine

This Trojan Spy does not have any backdoor routine.

Rootkit Capabilities

This Trojan Spy does not have rootkit capabilities.

Download Routine

This Trojan Spy downloads an updated copy of itself from the following website(s):

  • http://{BLOCKED}.{BLOCKED}.208.25/images/mini.png
  • http://{BLOCKED}.{BLOCKED}.208.25/images/lastimg.png

Information Theft

This Trojan Spy attempts to steal sensitive online banking information, such as user names and passwords. This routine risks the exposure of the user's account information, which may then lead to the unauthorized use of the stolen data.

It steals the following information:

  • System Information:
    • OS Information
    • CPU
    • Memory
    • User Accounts
    • Installed Programs
    • Installed Services
  • Network Information
    • IP Configuration
    • Domain Information (Users, Settings, Configuration)
  • Credentials in the following Applications:
    • Microsoft Outlook
    • Filezilla
    • WinSCP
    • Putty
    • TeamViewer
    • KeePass
    • OpenSSH
    • OpenVPN
    • Git
  • Internet Credentials (Internet Explorer, Microsoft Edge, Google Chrome, Mozilla Firefox):
    • Usernames and Passwords
    • Internet Cookies
    • Browsing History
    • Autofills
    • HTTP Posts responses
  • Private Key Files (.ppk)
  • Digital Certificate File (.p12 and .pfx)
  • Cryptocurrency wallet files (.dat)

Other Details

This Trojan Spy connects to the following website to send and receive information:

  • http://{BLOCKED}.{BLOCKED}.117.187:8082
  • http://{BLOCKED}.{BLOCKED}.243.70:8082
  • http://{BLOCKED}.{BLOCKED}.180.226:8082
  • http://{BLOCKED}.{BLOCKED}.105.206:8082
  • http://{BLOCKED}.{BLOCKED}.16.210:8082
  • http://{BLOCKED}.{BLOCKED}.232.124:80
  • http://{BLOCKED}.{BLOCKED}.168.198:80
  • http://{BLOCKED}.{BLOCKED}.102.50:80
  • http://{BLOCKED}.{BLOCKED}.238.3:80
  • http://{BLOCKED}.{BLOCKED}.2.83:80
  • http://{BLOCKED}.{BLOCKED}.161.198:443
  • http://{BLOCKED}.{BLOCKED}.3.23:443
  • http://{BLOCKED}.{BLOCKED}.171.62:443
  • http://{BLOCKED}.{BLOCKED}.97.44:443
  • http://{BLOCKED}.{BLOCKED}.19.158:443
  • http://{BLOCKED}.{BLOCKED}.40.89:443
  • http://{BLOCKED}.{BLOCKED}.29.117:443
  • http://{BLOCKED}.{BLOCKED}.208.27:443
  • http://{BLOCKED}.{BLOCKED}.117.45:443
  • https://{BLOCKED}.{BLOCKED}.104.38:446/response/rcrd.php?
  • https://{BLOCKED}.{BLOCKED}.104.38:446/response.php?
  • https://{BLOCKED}.{BLOCKED}.104.38:446/response/getq.php?
  • http://{BLOCKED}.{BLOCKED}.161.196:443/getinj/aggregator
  • http://{BLOCKED}.{BLOCKED}.161.196:443/getinj/accounts
  • http://{BLOCKED}.{BLOCKED}.161.196:2020/q1MPVi7phg/swap
  • http://{BLOCKED}.{BLOCKED}.161.196:2020/q1MPVi7phg/getinj
  • http://{BLOCKED}.{BLOCKED}.161.196:2020/q1MPVi7phg/final
  • http://{BLOCKED}.{BLOCKED}.22.0:80/

It does the following:

  • It drops copies of itself in connected Windows Admin Shares across the network:
    • %System Root%\stsvc.exe
    • %Windows%\stsvc.exe

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

It adds the following scheduled tasks:

  • Task Name:Command cache application
    • Task Action: %Application Data%\cmdcache\{malware file name}.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).)

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.524.03

FIRST VSAPI PATTERN DATE:

27 Nov 2019

VSAPI OPR PATTERN File:

15.525.00

VSAPI OPR PATTERN Date:

28 Nov 2019

Step 1

Trend Micro Predictive Machine Learning detects and blocks malware at the first sign of its existence, before it executes on your system. When enabled, your Trend Micro product detects this malware under the following machine learning name:

    • Troj.Win32.TRX.XXPE50FFF033

Step 2

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 3

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 4

Restart in Safe Mode

[ Learn More ]

Step 5

Disable this malware service

[ Learn More ]
  • SystemTypeSvc

Step 6

Deleting Scheduled Tasks

The following {Task Name} - {Task to be run} listed should be used in the steps identified below:

  • Command cache application = "%Application Data%\cmdcache\{malware file name}.exe"

For Windows 2000, Windows XP, and Windows Server 2003:

  1. Open the Windows Scheduled Tasks. Click Start>Programs>Accessories>
    System Tools>Scheduled Tasks.
  2. Locate each {Task Name} values listed above in the Name column.
  3. Right-click on the said file(s) with the aforementioned value.
  4. Click on Properties. In the Run field, check for the listed {Task to be run}.
  5. If the strings match the list above, delete the task.

For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:

  1. Open the Windows Task Scheduler. To do this:
    • On Windows Vista, Windows 7, and Windows Server 2008, click Start, type taskschd.msc in the Search input field, then press Enter.
    • On Windows 8, Windows 8.1, and Windows Server 2012, right-click on the lower left corner of the screen, click Run, type taskschd.msc, then press Enter.
  2. In the left panel, click Task Scheduler Library.
  3. In the upper-middle panel, locate each {Task Name} values listed above in the Name column.
  4. In the lower-middle panel, click the Actions tab. In the Details column, check for the {Task to be run} string.
  5. If the said string is found, delete the task.

Step 7

Search and delete this folder

[ 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%\cmdcache

Step 8

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