TROJ_COINMINE.WA

 Analysis by: Cris Nowell Pantanilla

 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:

Dropped by other malware, Downloaded from the Internet


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.

It connects to certain websites to send and receive information.

  TECHNICAL DETAILS

File Size:

151,552 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

17 Mar 2017

Payload:

Connects to URLs/IPs, Drops files, Executes files

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:

  • %ProgramData%\UpdateService\UpdateService.exe
  • %All User Profile%\UpdateService\UpdateService.exe

(Note: %ProgramData% is the Program Data folder, where it usually is C:\Program Files in Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData in 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 files:

  • %ProgramData%\UpdateService\settings.dat
  • %ProgramData%\UpdateService\UpdateService.exe.config
  • %All User Profile%\UpdateService\settings.dat
  • %All User Profile%\UpdateService\UpdateService.exe.config
  • %System%\Tasks\UpdateService ← scheduled task

(Note: %ProgramData% is the Program Data folder, where it usually is C:\Program Files in Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData in 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.. %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.)

It adds the following processes:

  • "%ProgramData%\UpdateService\UpdateService.exe"
  • "%System%\schtasks.exe" /Delete /TN "UpdateService" /F
  • "%System%\schtasks.exe" /Create /RU SYSTEM /SC ONSTART /TN "UpdateService" /TR "\"%ProgramData%\UpdateService\UpdateService.exe\" -t"
  • "%System%\schtasks.exe" /Run /TN "UpdateService"
  • taskeng.exe %ProgramData%\UpdateService\UpdateService.exe -t
  • "%Windows%\Microsoft.NET\Framework\v2.0.50727\csc.exe" /noconfig /fullpaths @"%Windows%\TEMP\q5k7spts.cmdline"

(Note: %ProgramData% is the Program Data folder, where it usually is C:\Program Files in Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData in 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.. %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %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.

It creates the following folders:

  • %ProgramData%\UpdateService
  • %All User Profile%\UpdateService

(Note: %ProgramData% is the Program Data folder, where it usually is C:\Program Files in Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData in 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\CLR_CASOFF_MUTEX
  • Global\d3091c53-b5db-4e3a-a345-c8a648bd6f1b
  • Global\.net clr networking

Autostart Technique

The scheduled task executes the malware every:

  • At every startup.

Other Details

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

  • http://{BLOCKED}uiden.se/wp-includes/js/tinymce/plugins/wpdialogs/js/log.php?url=/update/check
  • http://{BLOCKED}uiden.se/wp-includes/js/tinymce/plugins/wpdialogs/js/info.php?url=/update/check
  • http://{BLOCKED}los.net/wp-content/themes/themorningafter/images/log.php?url=/update/check
  • http://{BLOCKED}los.net/wp-content/themes/themorningafter/images/info.php?url=/update/check
  • http://{BLOCKED}t.ru/wp-admin/options-log.php?url=/update/check
  • http://{BLOCKED}t.ru/wp-admin/options-info.php?url=/update/check
  • http://{BLOCKED}oin.ru/wp-log.php?url=/update/check
  • http://{BLOCKED}oin.ru/wp-info.php?url=/update/check
  • http://{BLOCKED}nie62.ru/wp-content/plugins/revslider/admin/assets/images/sources/log.php?url=/update/check
  • http://{BLOCKED}nie62.ru/wp-content/plugins/revslider/admin/assets/images/sources/info.php?url=/update/check
  • http://{BLOCKED}stradoresdefincas.org/wp-includes/class-wp-log.php?url=/update/check
  • http://{BLOCKED}stradoresdefincas.org/wp-includes/class-wp-info.php?url=/update/check
  • http://{BLOCKED}proxy.com.ua/wp-admin/wp-info.php?url=/update/check
  • http://{BLOCKED}proxy.com.ua/wp-admin/wp-log.php?url=/update/check
  • http://{BLOCKED}s77.ru/index.php?route=product/category&path=8&url=/update/check
  • http://{BLOCKED}erring.dk/wp-admin/info.php?url=/update/check
  • http://{BLOCKED}erring.dk/wp-admin/log.php?url=/update/check
  • chttp://{BLOCKED}z.ru/wp-content/plugins/js_omposer/assets/vc/editors/ui/vc_ui-header-graphics/log.php?url=/update/check
  • http://{BLOCKED}z.ru/wp-content/plugins/js_composer/assets/vc/editors/ui/vc_ui-header-graphics/info.php?url=/update/check
  • http://{BLOCKED}s77.ru/index.php?route=checkout/cart&url=/update/check
  • http://{BLOCKED}casa.es/index.php?c=contacto&url=/update/check
  • http://{BLOCKED}casa.es/index.php?b=chollos&url=/update/check
  • http://www.{BLOCKED}ea-seeber.de/wp-includes/pomo/info.php?url=/update/check
  • http://www.{BLOCKED}ea-seeber.de/wp-includes/pomo/log.php?url=/update/check
  • http://{BLOCKED}.{BLOCKED}.118.135/system/log.php?url=/update/check
  • http://{BLOCKED}ell.co.uk/wp-includes/log.php?url=/update/check
  • http://{BLOCKED}ell.co.uk/wp-includes/info.php?url=/update/check
  • http://{BLOCKED}klubimoy.ru/admin/servis/sale/log.php?url=/update/check
  • http://{BLOCKED}.{BLOCKED}.118.135/system/info.php?url=/update/check
  • http://{BLOCKED}klubimoy.ru/admin/servis/sale/info.php?url=/update/check
  • http://{BLOCKED}66.hu/plugins/system/logout/info.php?url=/update/check
  • http://{BLOCKED}66.hu/plugins/system/logout/log.php?url=/update/check
  • http://{BLOCKED}op.ru/templates/beez3/html/layouts/joomla/system/info.php?url=/update/check
  • http://{BLOCKED}op.ru/templates/beez3/html/layouts/joomla/system/log.php?url=/update/check
  • http://{BLOCKED}k.ru/libraries/cms/schema/changeitem/log.php?url=/update/check
  • http://{BLOCKED}k.ru/libraries/cms/schema/changeitem/info.php?url=/update/check
  • http://{BLOCKED}n.ru/system/logs/log.php?url=/update/check
  • http://{BLOCKED}n.ru/system/logs/info.php?url=/update/check
  • http://{BLOCKED}x.com.ua/sass/ie/log.php?url=/update/check
  • http://{BLOCKED}x.com.ua/sass/ie/style.php?url=/update/check
  • http://{BLOCKED}eorth.com/info?url=/update/check
  • http://{BLOCKED}eorth.com/log?url=/update/check

NOTES:

It uses different command lines to trigger behavior:

  • -t = create and run schedule task
  • -u = create autorun registry entry
    • HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
      • UpdateService= %ProgramData%\UpdateService\UpdateService.exe
  • -r and -i = drop the following components:
    • C:\ProgramData\AppCache\1\cygidn-11.dll
    • C:\ProgramData\AppCache\1\cygintl-8.dll
    • C:\ProgramData\AppCache\1\cygk5crypto-3.dll
    • C:\ProgramData\AppCache\1\cygkrb5-3.dll
    • C:\ProgramData\AppCache\1\cygkrb5support-0.dll
    • C:\ProgramData\AppCache\1\cyglber-2-4-2.dll
    • C:\ProgramData\AppCache\1\cygldap-2-4-2.dll
    • C:\ProgramData\AppCache\1\cygnghttp2-14.dll
    • C:\ProgramData\AppCache\1\cygpsl-5.dll
    • C:\ProgramData\AppCache\1\cygsasl2-3.dll
    • C:\ProgramData\AppCache\1\cygssh2-1.dll
    • C:\ProgramData\AppCache\1\cygssl-1.0.0.dll
    • C:\ProgramData\AppCache\1\cygunistring-2.dll
    • C:\ProgramData\AppCache\1\cygwin1.dll
    • C:\ProgramData\AppCache\1\cygz.dll
    • C:\ProgramData\AppCache\1\java.exe - detected as TROJ_COINMINER.AUSF
    • C:\ProgramData\AppCache\1\cygcom_err-2.dll
    • C:\ProgramData\AppCache\1\cygcrypto-1.0.0.dll
    • C:\ProgramData\AppCache\1\cygcurl-4.dll
    • C:\ProgramData\AppCache\1\cyggcc_s-1.dll
    • C:\ProgramData\AppCache\1\cyggssapi_krb5-2.dll
    • C:\ProgramData\AppCache\1\cygiconv-2.dll

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

13.282.03

FIRST VSAPI PATTERN DATE:

17 Mar 2017

VSAPI OPR PATTERN File:

13.283.00

VSAPI OPR PATTERN Date:

18 Mar 2017

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

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
    • UpdateService = "%ProgramData%\UpdateService\UpdateService.exe"

Step 4

Deleting Scheduled Tasks

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 that has the following value in the Schedule column:
    UpdateService
  3. Right-click on the said file(s) with the aforementioned value.
  4. Click on Properties. In the Run field, check for the following string:
    Cmd /c /rd /s /q C:
  5. If the said string is found, 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 that has the value in the Triggers column:
    UpdateService
  4. In the lower-middle panel, click the Actions tab. In the Details column, check for the following string:
    Cmd /c /rd /s /q C:
  5. If the said string is found, delete the task..

Step 5

Search and delete these folders

[ 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.  
  • %ProgramData%\UpdateService
  • %All User Profile%\UpdateService
  • %ProgramData%\AppCache

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%\Tasks\UpdateService

Step 7

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