TSPY_DYRE.YYYR

 Analysis by: Cris Nowell Pantanilla

 ALIASES:

Trojan.Win32.Staser.bfya (Kaspersky), PWS:Win32/Dyzap.M (Microsoft)

 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, Dropped by other malware


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:

418,816 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

28 Jan 2015

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:

  • %System%\config\systemprofile\Application Data\{random}.dat (For Windows XP and below)
  • %AppDataLocal%\{random}.dat (For Windows Vista and above)

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %AppDataLocal% is the Application Data folder found in Local Settings, where it is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local 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 copies of itself into the affected system:

  • %Windows%\{random filename}.exe (For Windows XP and below)
  • %AppDataLocal%\{random filename}.exe (For Windows Vista and above)

(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.. %AppDataLocal% is the Application Data folder found in Local Settings, where it is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local 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 mutexes to ensure that only one of its copies runs at any one time:

  • Global\zx5fwtw4ep

It injects codes into the following process(es):

  • explorer.exe
  • svchost.exe

Autostart Technique

This spyware registers itself as a system service to ensure its automatic execution at every system startup by adding the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\googleupdate
DisplayName = "Google Update Service"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\googleupdate
ImagePath = "%Windows%\{random filename}.exe" (For Windows XP and below)

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
GoogleUpdate = "%AppDataLocal%\{random filename}.exe" (For Windows Vista and above)

It registers as a system service to ensure its automatic execution at every system startup by adding the following registry keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\googleupdate (For Windows XP and below)

Information Theft

This spyware s configuration file contains the following information:

  • Proxy address for the Man-in-the-middle attack
  • List of strings related to banking/bitcoin

It gathers the following data:

  • Computer Name
  • Host Name
  • Public IP Address
  • OS Version
  • User Name
  • OS platform
  • Installed programs

Other Details

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

  • google.com
  • microsoft.com

It connects to the following URL(s) to get the affected system's IP address:

  • http://icanhazip.com

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

  • {BLOCKED}.{BLOCKED}70.191.212:443
  • {BLOCKED}.{BLOCKED}120.40.82:443
  • {BLOCKED}.{BLOCKED}122.122.136:4443
  • {BLOCKED}.{BLOCKED}162.197.144:443
  • {BLOCKED}.{BLOCKED}216.78.201:443
  • {BLOCKED}.{BLOCKED}30.40.44:4443
  • {BLOCKED}.{BLOCKED}165.239.151:443
  • {BLOCKED}.{BLOCKED}165.239.151:4443
  • {BLOCKED}.{BLOCKED}111.243.60:4443
  • {BLOCKED}.{BLOCKED}31.138.151:4443
  • {BLOCKED}.{BLOCKED}31.138.33:4443
  • {BLOCKED}.{BLOCKED}31.143.37:4443
  • {BLOCKED}.{BLOCKED}02.233.138:4443
  • {BLOCKED}.{BLOCKED}7.101.221:4443
  • {BLOCKED}.{BLOCKED}51.254.183:443
  • {BLOCKED}.{BLOCKED}65.228.151:443
  • {BLOCKED}.{BLOCKED}3.241.244:4443
  • {BLOCKED}.{BLOCKED}3.96.214:443
  • {BLOCKED}.{BLOCKED}3.96.84:443
  • {BLOCKED}.{BLOCKED}3.97.196:443
  • {BLOCKED}.{BLOCKED}3.97.215:4443
  • {BLOCKED}.{BLOCKED}3.97.216:443
  • {BLOCKED}.{BLOCKED}3.97.49:443
  • {BLOCKED}.{BLOCKED}3.98.108:4443
  • {BLOCKED}.{BLOCKED}3.98.128:443
  • {BLOCKED}.{BLOCKED}3.98.232:4443
  • {BLOCKED}.{BLOCKED}3.98.248:4443
  • {BLOCKED}.{BLOCKED}22.69.144:443
  • {BLOCKED}.{BLOCKED}22.69.150:443
  • {BLOCKED}.{BLOCKED}22.69.151:4443
  • {BLOCKED}.{BLOCKED}22.69.159:4443
  • {BLOCKED}.{BLOCKED}22.69.172:4443
  • {BLOCKED}.{BLOCKED}7.99.67:443
  • {BLOCKED}.{BLOCKED}34.34.137:443
  • {BLOCKED}.{BLOCKED}51.250.93:443
  • {BLOCKED}.{BLOCKED}62.123.76:443
  • {BLOCKED}.{BLOCKED}36.224.45:443
  • {BLOCKED}.{BLOCKED}36.228.155:443
  • {BLOCKED}.{BLOCKED}6.249.207:443
  • {BLOCKED}.{BLOCKED}96.99.217:443
  • {BLOCKED}.{BLOCKED}38.74.70:443
  • {BLOCKED}.{BLOCKED}42.52.191:443
  • {BLOCKED}.{BLOCKED}42.52.192:443
  • {BLOCKED}.{BLOCKED}42.53.142:4443
  • {BLOCKED}.{BLOCKED}42.54.100:4443
  • {BLOCKED}.{BLOCKED}2.177.142:4443
  • {BLOCKED}.{BLOCKED}31.114.243:443
  • {BLOCKED}.{BLOCKED}31.178.46:4443
  • {BLOCKED}.{BLOCKED}5.41.34:4443
  • {BLOCKED}.{BLOCKED}54.91.230:443
  • {BLOCKED}.{BLOCKED}11.195.147:443
  • {BLOCKED}.{BLOCKED}7.88.84:4443
  • {BLOCKED}.{BLOCKED}0.108.85:443
  • {BLOCKED}.{BLOCKED}zrn2p2gejk57wveao5kxa7b3nhtc4saoonjpsy65mapycaua.b32.i2p:443

It does the following:

  • Monitors the following browsers:
    • chrome.exe
    • firefox.exe
    • iexplore.exe
    • chromium.exe
  • Connects to the following STUN (Session Traversal Utilities for NAT) server in order to determine the public IP address of the compromised computer:
    • 203.183.172.196:3478
    • numb.viagenie.ca
    • s1.taraba.net
    • s2.taraba.net
    • stun.2talk.co.nz
    • stun.callwithus.com
    • stun.ekiga.net
    • stun.faktortel.com.au
    • stun.ideasip.com
    • stun.internetcalls.com
    • stun.ipshka.com
    • stun.iptel.org
    • stun.l.google.com:19302
    • stun.noc.ams-ix.net
    • stun.phonepower.com
    • stun.rixtelecom.se
    • stun.schlund.de
    • stun.sipgate.net
    • stun.stunprotocol.org
    • stun.voip.aebc.com
    • stun.voiparound.com
    • stun.voipbuster.com
    • stun.voipstunt.com
    • stun.voxgratia.org
    • stun1.l.google.com:19302
    • stun1.voiceeclipse.net
    • stun2.l.google.com:19302
    • stun3.l.google.com:19302
    • stun4.l.google.com:19302
    • stunserver.org
  • Receive configuration(web injects)
  • Receive New connections
  • Download file and execute
  • Download Module(VNC,TV)
  • Browser Snapshot
  • Shutdown/restart system

  SOLUTION

Minimum Scan Engine:

9.750

FIRST VSAPI PATTERN FILE:

11.442.07

FIRST VSAPI PATTERN DATE:

28 Jan 2015

VSAPI OPR PATTERN File:

11.443.00

VSAPI OPR PATTERN Date:

29 Jan 2015

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • (Default) = "%AppDataLocal%\{random filename}.exe" (For Windows Vista and above)

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_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
    • googleupdate (For Windows XP and below)

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.
  • %System%\config\systemprofile\Application Data\{random}.dat
  • %AppDataLocal%\{random}.dat

Step 7

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

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