TROJ_KOVTER.YAFD
Trojan:Win32/Kovter (Microsoft); Trojan.Win32.Kovter.pfe (Kaspersky); Trojan.Kovter (Malwarebytes); Ransom.Kovter (Symantec); Trojan.Kovter.Gen.1 (BitDefender)
Windows

Threat Type: Trojan
Destructiveness: No
Encrypted: Yes
In the wild: Yes
OVERVIEW
Downloaded from the Internet, Dropped by other malware
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 modifies the Internet Explorer Zone Settings.
It connects to certain websites to send and receive information. It deletes the initially executed copy of itself.
TECHNICAL DETAILS
282,457 bytes
EXE
Yes
23 Nov 2016
Connects to URLs/IPs
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:
- %Application Data%\{random string}\{random string}.exe
(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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 the following files:
- %AppDataLocal%\{random foldername}\{random filename}.lnk - shortcut to Batch file
- %AppDataLocal%\{random foldername}\{random filename}.bat - starts Encrypted file
- %AppDataLocal%\{random foldername}\{random filename}.{random extension} - Encrypted file
(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.)
It adds the following processes:
- regsvr32.exe
It creates the following folders:
- %Application Data%\{random string}
- %AppDataLocal%\{random foldername}
(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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.. %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.)
It injects codes into the following process(es):
- created regsvr32.exe
Autostart Technique
This Trojan adds the following registry entries to enable its automatic execution at every system startup:
HKEY_CURRENT_USER\Software\Classes\
{random key 2}\shell\open\
command
(Default) = ""%System%\mshta.exe" javascript:{random}="{random}";{variable 1}=new%20ActiveXObject("WScript.Shell");{random}="{random}";{variable 2}={variable 1}.RegRead("HKCU\software\{random key 1}\{random valuename 2}");{random}="{random}";eval({variable 2});{random}="{random}";"
HKEY_CURRENT_USER\Software\Classes\
.{random extension}
(Default) = "{random key 2}"
HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
(Default) = ""%System%\mshta.exe" javascript:{random}="{random}";{variable 1}=new%20ActiveXObject("WScript.Shell");{random}="{random}";{variable 2}={variable 1}.RegRead("HKCU\software\{random key 1}\{random valuename 2}");{random}="{random}";eval({variable 2});{random}="{random}";"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
(Default) = ""%System%\mshta.exe" javascript:{random}="{random}";{variable 1}=new%20ActiveXObject("WScript.Shell");{random}="{random}";{variable 2}={variable 1}.RegRead("HKLM\software\{random key 1}\{random valuename 2}");{random}="{random}";eval({variable 2});{random}="{random}";"
HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
(Default) = "%Application Data%\{random string}\{random string}.exe"
HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
(Default) = "%AppDataLocal%\{random foldername}\{random filename}.lnk" ← shortcut to Batch file
Other System Modifications
This Trojan adds the following registry keys:
HKEY_CURRENT_USER\Software\{random key 1}
HKEY_LOCAL_MACHINE\SOFTWARE\{random key 1}
HKEY_CURRENT_USER\Software\Classes\
.{random extension}
HKEY_CURRENT_USER\Software\Classes\
{random key 2}
It adds the following registry entries:
HKEY_CURRENT_USER\Software\{random key 1}
{random valuename 1} = "{Encrypted Data}"
HKEY_CURRENT_USER\Software\{random key 1}
{random valuename 2} = "{Loader Script}"
HKEY_CURRENT_USER\Software\{random key 1}
{random valuename 3} = "{User-Agent}"
HKEY_CURRENT_USER\Software\{random key 1}
{random valuename 4} = "{3 random number}"
HKEY_CURRENT_USER\Software\{random key 1}
{random valuename 5} = "{16 hex numbers}"
HKEY_CURRENT_USER\Software\{random key 1}
{random valuename 6} = "{10 random numbers}"
HKEY_LOCAL_MACHINE\SOFTWARE\{random key 1}
{random valuename 1} = "{Encrypted Data}"
HKEY_LOCAL_MACHINE\SOFTWARE\{random key 1}
{random valuename 2} = "{Loader Script}"
HKEY_LOCAL_MACHINE\SOFTWARE\{random key 1}
{random valuename 3} = "{User-Agent}"
HKEY_LOCAL_MACHINE\SOFTWARE\{random key 1}
{random valuename 4} = "{3 random number}"
HKEY_LOCAL_MACHINE\SOFTWARE\{random key 1}
{random valuename 5} = "{16 hex numbers}"
HKEY_LOCAL_MACHINE\SOFTWARE\{random key 1}
{random valuename 6} = "{10 random numbers}"
Web Browser Home Page and Search Page Modification
This Trojan modifies the Internet Explorer Zone Settings.
Other Details
This Trojan connects to the following website to send and receive information:
- http://{BLOCKED}.{BLOCKED}.72.90/upload.php - inaccessible
- {random generated ip address} → used for click-fraud activity
It does the following:
- It may download and install the following software on the affected system:
- Microsoft .Net Framework
- Microsoft Powershell
- Adobe Flash Player
- Connects to certain IP address for its click-fraud activity.
- Uses power shell to execute the obfuscated javascript codes in the registry.
It deletes the initially executed copy of itself
SOLUTION
9.800
12.916.08
23 Nov 2016
12.917.00
24 Nov 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
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
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
- (Default) = ""%System%\mshta.exe" javascript:{random}="{random}";{variable 1}=new%20ActiveXObject("WScript.Shell");{random}="{random}";{variable 2}={variable 1}.RegRead("HKCU\\software\\{random key 1}\{random string 4}");{random}="{random}";eval({variable 2});{random}="{random}";"
- (Default) = ""%System%\mshta.exe" javascript:{random}="{random}";{variable 1}=new%20ActiveXObject("WScript.Shell");{random}="{random}";{variable 2}={variable 1}.RegRead("HKCU\\software\\{random key 1}\{random string 4}");{random}="{random}";eval({variable 2});{random}="{random}";"
- In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
- (Default) = ""%System%\mshta.exe" javascript:{random}="{random}";{variable 1}=new%20ActiveXObject("WScript.Shell");{random}="{random}";{variable 2}={variable 1}.RegRead("HKLM\\software\\{random key 1}\{random string 4}");{random}="{random}";eval({variable 2});{random}="{random}";"
- (Default) = ""%System%\mshta.exe" javascript:{random}="{random}";{variable 1}=new%20ActiveXObject("WScript.Shell");{random}="{random}";{variable 2}={variable 1}.RegRead("HKLM\\software\\{random key 1}\{random string 4}");{random}="{random}";eval({variable 2});{random}="{random}";"
- In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
- (Default) = "%Application Data%\{random string}\{random string}.exe"
- (Default) = "%Application Data%\{random string}\{random string}.exe"
- In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
- (Default) = "%AppDataLocal%\{random foldername}\{random filename}.lnk"
- (Default) = "%AppDataLocal%\{random foldername}\{random filename}.lnk"
Step 5
Delete this registry key
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
- {random key 1}
- {random key 1}
- In HKEY_LOCAL_MACHINE\SOFTWARE
- {random key 1}
- {random key 1}
- In HKEY_CURRENT_USER\Software\Classes
- .{random extension}
- .{random extension}
- In HKEY_CURRENT_USER\Software\Classes
- {random key 2}
- {random key 2}
Step 6
Search and delete these folders
- %Application Data%\{random string}
- %AppDataLocal%\{random foldername}
Step 7
Restart in normal mode and scan your computer with your Trend Micro product for files detected as TROJ_KOVTER.YAFD. 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.