TSPY_TANDFUY.A

 Analysis by: RonJay Kristoffer Caragay

 ALIASES:

Trojan:Win32/Danglo!gmb (Microsoft); Infostealer.Bankeiya.B (Symantec); Trojan/PSW.Magania.bczm (Jiangmin); W32/Kryptik.CEJO!tr (Fortinet)

 PLATFORM:

Windows

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

  • Threat Type: Spyware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW


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.

  TECHNICAL DETAILS

File Size:

58,510 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

27 May 2014

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:

  • %Temp%\version361.dat
  • %System%\midimapbits.dll

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

Other System Modifications

This spyware adds the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\BITS
WOW64 = "1"

It modifies the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\BITS\Parameters
ServiceDll = "%System%\midimapbits.dll"

(Note: The default value data of the said registry entry is "%System%\qmgr.dll".)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\BITS
Start = "2"

(Note: The default value data of the said registry entry is "3".)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\BITS
Type = "272"

(Note: The default value data of the said registry entry is "32".)

Download Routine

This spyware downloads the file from the following URL and renames the file when stored in the affected system:

  • http://www.{BLOCKED}pg.co.jp/bbs/data/update/ja527.jpg
  • http://www.{BLOCKED}int.jp/member/img/ja527.jpg
  • http://update.{BLOCKED}k.net/ja527.jpg
  • http://www.{BLOCKED}e.net/ja527.jpg
  • http://snsdate.{BLOCKED}t.com/ja527.jpg
  • http://{BLOCKED}ata.com/images/ja527.jpg
  • http://www.yahoo.co.jp/{BLOCKED}7.jpg
  • http://www.{BLOCKED}e.com/{BLOCKED}7.jpg
  • http://www.{BLOCKED}n.co.kr/bbs/data/free/{BLOCKED}7.jpg
  • http://www.{BLOCKED}ng.jp/{BLOCKED}7.jpg
  • http://www.{BLOCKED}e.com/{BLOCKED}7.jpg
  • http://www.gizmodo.jp/{BLOCKED}7.jpg
  • http://www.{BLOCKED}sn.com/{BLOCKED}7.jpg
  • http://www.{BLOCKED}c.jp/{BLOCKED}7.jpg
  • http://www.{BLOCKED}y.com/start/{BLOCKED}7.jpg
  • http://www.{BLOCKED}n.com/{BLOCKED}7.jpg
  • http://www.{BLOCKED}ble.net/{BLOCKED}7.jpg

It saves the files it downloads using the following names:

  • %System Root%\a.dat
  • %Temp%\image.jpg
  • %Temp%\setupviewtmp.exe

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

Other Details

This spyware connects to the following possibly malicious URL:

  • http://{BLOCKED}ata.com/eng/test/jp525.php?m={mac address}&os={OS version}_{Service Pack}&ie={Internet Explorer version}

  SOLUTION

Minimum Scan Engine:

9.700

FIRST VSAPI PATTERN FILE:

10.826.05

FIRST VSAPI PATTERN DATE:

27 May 2014

VSAPI OPR PATTERN File:

10.827.00

VSAPI OPR PATTERN Date:

28 May 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_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS
    • WOW64 = "1"

Step 5

Restore this modified 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\SYSTEM\CurrentControlSet\Services\BITS\Parameters
    • From: ServiceDll = "%System%\midimapbits.dll"
      To: ServiceDll = %System%\qmgr.dll
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BITS
    • From: Start = "2"
      To: Start = "3"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BITS
    • From: Type = "272"
      To: Type = "32"

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.
  • %Temp%\version361.dat
  • %Temp%\image.jpg
  • %Temp%\setupviewtmp.exe
  • %System Root%\a.dat

Step 7

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