WORM_COINMINER.FHE
Trojan:Win32/CoinMiner!rfn (Microsoft), Trojan.Win32.Miner.ays (Kaspersky)
Windows

Threat Type: Worm
Destructiveness: No
Encrypted: No
In the wild: Yes
OVERVIEW
Propagates via shared drives, Propagates via FTP
This worm 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
1,578,496 bytes
EXE
Yes
18 Oct 2016
Executes Bitcoin Miners
Arrival Details
This worm 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 worm drops the following files:
- %User Temp%\pools.txt - contains Bitcoin Mining Pool addresses
(Note: %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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 and executes the following files:
- %User Temp%\NsCpuCNMiner32.exe - detected as TROJ_COINMINER.FHE
(Note: %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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.)
Autostart Technique
This worm adds the following registry entries to enable its automatic execution at every system startup:
HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
Run = "{malware path and filename}"
Other Details
This worm does the following:
- This Trojan connects to the website http://{domain name}/test.html?{7 random numbers}to read its configuration file. The variable {domain name} may be any of the following:
- {BLOCKED}est.ru
- {BLOCKED}s.ru
- {BLOCKED}est.ru
- {BLOCKED}y.ru
- {BLOCKED}s.ru
- {BLOCKED}t.ru
- {BLOCKED}s.ru
- {BLOCKED}ts.ru
- {BLOCKED}i.ru
The configuration file contains the parameters to be used when executing the drop NsCpuCNMiner32.exe file.
- It executes the file %User Temp%\NsCpuCNMiner32.exe {parameter from the configuration file}. An example of the parameter is below:
- -dbg -1 -o {pool address} -t 0 -u {Wallet Address} -p x
- This Trojan is used for CryptoNote (cryptocurrency) CPU Mining. It can mine the following supported coins:
- AeonCoin(AEON)
- Bytecoin (BCN)
- Dashcoin (DSH)
- DuckDuckCoin (DUCK)
- Fantomcoin (FCN)
- Monero (XMR)
- MonetaVerde(MCN)
- OneEvilCoin(OEC)
- ORION
- QuazarCoin (QCN)
- It drops copies of itself in all drives using the following command line:
- xcopy /c for %%i in (A B C D E F G H J K L M N O P R S T Q U Y I X V X W Z) do xcopy /y ""%s"" %%i:\
- It generates random IP address where it attempts to connect as FTP. It then drops a copy of itself as "Photo.scr".
- It searches for ".php" files in the FTP folder and inserts an iframe code to automatically executed the dropped file "Photo.scr" when the PHP file is opened.
SOLUTION
9.800
12.844.04
18 Oct 2016
12.845.00
19 Oct 2016
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
Remove the malware/grayware file dropped/downloaded by WORM_COINMINER.FHE. (Note: Please skip this step if the threat(s) listed below have already been removed.)
- TROJ_COINMINER.FHE
Step 3
Identify and terminate files detected as WORM_COINMINER.FHE
- Windows Task Manager may not display all running processes. In this case, please use a third-party process viewer, preferably Process Explorer, to terminate the malware/grayware/spyware file. You may download the said tool here.
- If the detected file is displayed in either Windows Task Manager or Process Explorer but you cannot delete it, restart your computer in safe mode. To do this, refer to this link for the complete steps.
- If the detected file is not displayed in either Windows Task Manager or Process Explorer, continue doing the next steps.
Step 4
Delete this registry value
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
- Run = "{malware path and filename}"
- Run = "{malware path and filename}"
Step 5
Search and delete this file
Step 6
Scan your computer with your Trend Micro product to delete files detected as WORM_COINMINER.FHE. 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.