TSPY_DYRE.B

 Analysis by: Sammy Chua

 ALIASES:

Spyware.Dyre (Malwarebytes); Win32/Battdil.AO (ESET-NOD32); Trojan.Dyre.582 (DrWeb)

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

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 uses Windows Task Scheduler to create a scheduled task that executes the dropped copy.

  TECHNICAL DETAILS

File Size:

585,728 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

24 Aug 2015

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:

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

(Note: %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.. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)

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

Dropping Routine

This Trojan drops the following files:

  • %System%\config\systemprofile\Application Data\{random filename 2} (for Windows XP and below)
  • %AppDataLocal%\{random filename 2} (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.)

Other Details

This Trojan connects to the following possibly malicious URL:

  • {BLOCKED}.{BLOCKED}.116.240:443
  • {BLOCKED}.{BLOCKED}.49.163:443
  • {BLOCKED}.{BLOCKED}.247.133:4443
  • {BLOCKED}.{BLOCKED}.21.168:4443
  • {BLOCKED}.{BLOCKED}.22.227:443
  • {BLOCKED}.{BLOCKED}.75.159:4443
  • {BLOCKED}.{BLOCKED}.169.172:443
  • {BLOCKED}.{BLOCKED}.122.42:443
  • {BLOCKED}.{BLOCKED}.145.111:4443
  • {BLOCKED}.{BLOCKED}.145.121:443
  • {BLOCKED}.{BLOCKED}.214.50:443
  • {BLOCKED}.{BLOCKED}.19.156:443
  • {BLOCKED}.{BLOCKED}.88.78:443
  • {BLOCKED}.{BLOCKED}.196.26:443
  • {BLOCKED}.{BLOCKED}.199.11:443
  • {BLOCKED}.{BLOCKED}.214.12:443
  • {BLOCKED}.{BLOCKED}.97.238:4443
  • {BLOCKED}.{BLOCKED}.54.6:4443
  • {BLOCKED}.{BLOCKED}.55.101:4443
  • {BLOCKED}.{BLOCKED}.12.19:4443
  • {BLOCKED}.{BLOCKED}.15.194:4443
  • {BLOCKED}.{BLOCKED}.67.128:443
  • {BLOCKED}.{BLOCKED}.203.9:443
  • {BLOCKED}.{BLOCKED}.243.172:4443
  • {BLOCKED}.{BLOCKED}.249.171:4443
  • {BLOCKED}.{BLOCKED}.173.18:4443
  • {BLOCKED}.{BLOCKED}.100.179:443
  • {BLOCKED}.{BLOCKED}.85.128:4443
  • {BLOCKED}.{BLOCKED}.51.81:443
  • {BLOCKED}.{BLOCKED}.53.233:4443
  • {BLOCKED}.{BLOCKED}.94.197:4443
  • {BLOCKED}.{BLOCKED}.195.53:4443
  • {BLOCKED}.{BLOCKED}.145.138:4443
  • {BLOCKED}.{BLOCKED}.50.85:443
  • {BLOCKED}.{BLOCKED}.191.206:4443
  • {BLOCKED}.{BLOCKED}.204.74:443
  • {BLOCKED}.{BLOCKED}.2.228:443
  • {BLOCKED}.{BLOCKED}.17.76:4443
  • {BLOCKED}.{BLOCKED}.39.126:443
  • {BLOCKED}.{BLOCKED}.224.143:4443
  • {BLOCKED}.{BLOCKED}.194.108:4443
  • {BLOCKED}.{BLOCKED}.4.90:4443
  • {BLOCKED}.{BLOCKED}.106.26:443
  • {BLOCKED}.{BLOCKED}.115.117:443
  • {BLOCKED}.{BLOCKED}.19.13:443
  • {BLOCKED}.{BLOCKED}.224.118:4443
  • {BLOCKED}.{BLOCKED}.186.146:4443
  • {BLOCKED}.{BLOCKED}.231.42:4443
  • {BLOCKED}.{BLOCKED}.44.38:4443

  SOLUTION

Minimum Scan Engine:

9.750

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 and note files detected as TSPY_DYRE.B

Step 4

Restart in Safe Mode

[ Learn More ]

Step 5

Delete the Scheduled Tasks added by this malware/grayware

[ Learn More ]

To delete the added Scheduled Task file:

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

  1. Open the Windows Scheduled Tasks. To do this, click Start>Programs>Accessories>System Tools>Scheduled Tasks.
  2. Double-click on a .JOB file.
  3. Check if the malware path and file name exists in the .JOB file. To do this, check the value in the Run field.
  4. If found, select the .JOB file then press SHIFT+DELETE to permanently delete the file.
  5. Repeat the steps above for the remaining .JOB files.

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 of the Task Scheduler Window, click Task Scheduler Library.
  3. In the upper-middle panel, click a Task.
  4. In the lower middle panel, click the Actions tab
  5. Check if the malware path and file name exists in the task. To do this, check the value in the Details column under the Actions tab.
  6. If found, select the task and press DELETE and click Yes to delete the task.
  7. Repeat the steps above for the remaining tasks.

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 filename 2} (for Windows XP and below)
%AppDataLocal%\{random filename 2} (for Windows Vista and above)

Step 7

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