Analysis by: RonJay Kristoffer Caragay

ALIASES:

TrojanDownloader:Win32/Dofoil.T (Microsoft); Trojan.Smoaler (Symantec); Trojan.Win32.Sharik.tsm (Kaspersky); Dofoil.DL (Norman); Trojan-Downloader.Win32.Dofoil (VIPRE); Win32/TrojanDownloader.Zurgop.BK (ESET-NOD32); W32/DOFOIL.WYTK!tr (Fortinet

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel: Downloaded from the Internet, Dropped by other malware

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

It is injected into all running processes to remain memory resident.

It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size: 121,344 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 17 Sep 2014
Payload: Connects to URLs/IPs

Arrival Details

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

  • %Application Data%\{random folder name}\{random 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, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista and 7.)

It creates the following folders:

  • %Application Data%\{random folder name}

(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 and 7.)

It is injected into all running processes to remain memory resident.

It injects codes into the following process(es):

  • svchost.exe

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{installed program name} = "%Application Data%\{random folder name}\{random file name}.exe"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Policies\
Explorer\Run
{installed program name} = "%Application Data%\{random folder name}\{random file name}.exe"

Dropping Routine

This Trojan drops the following files:

  • %Application Data%\{random folder name}\{folder's name} ← config file

(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 and 7.)

Download Routine

This Trojan accesses the following websites to download files:

  • http://{BLOCKED}vicekl2.ru/

It downloads a possibly malicious file from a certain URL. The URL where this malware downloads the said file depends on the parameter passed on to it by its components.

Other Details

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

  • http://www.msn.com/

It deletes the initially executed copy of itself

NOTES:

This Trojan connects to the URLs that are found in the following registry entries:

HKEY_LOCAL_MACHINE\Software\Microsoft\
Windows\CurrentVersion\Uninstall\{Installed Program}
HelpLink = "{url related to installed program}"

HKEY_LOCAL_MACHINE\Software\Microsoft\
Windows\CurrentVersion\Uninstall\{Installed Program}
URLInfoAbout = "{url related to installed program}"

It perform infinite sleep once it is executed in the following virtual environments:

  • sbiedll
  • dbghelp
  • qemu
  • virtual
  • vmware
  • xen

It looks for the window name Shell_TrayWnd and then opens the process associated with the said window to execute its code. This Trojan does this routine to inject its code to svchost.exe, avoiding HIPS detection.

  SOLUTION

Minimum Scan Engine: 9.700
FIRST VSAPI PATTERN FILE: 11.154.02
FIRST VSAPI PATTERN DATE: 17 Sep 2014
VSAPI OPR PATTERN File: 11.155.00
VSAPI OPR PATTERN Date: 17 Sep 2014

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
    • {installed program name} = "%Application Data%\{random folder name}\{random file name}.exe"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
    • {installed program name} = "%Application Data%\{random folder name}\{random file name}.exe"

Step 5

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

The following created files/folders/registry keys/registry entries cannot be identified by the user since there are no reference values in the created key. The only way it can be identified is by comparing the present system information with a backup. Note that the said components do not have to be deleted since it won't be harmful to the system.


Did this description help? Tell us how we did.