WORM_WERVIK.H

 Analysis by: Pearl Charlaine Espejo

 ALIASES:

Worm:Win32/Wervik.D (Microsoft); W32.Wervik (Symantec)

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Propagates via removable drives, Downloaded from the Internet, Dropped by other malware, Propagates via network shares

This Trojan arrives via removable drives. It arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It deletes registry entries, causing some applications and programs to not function properly.

It executes commands from a remote malicious user, effectively compromising the affected system.

It connects to certain websites to send and receive information. It deletes the initially executed copy of itself. It gathers information and reports it to its servers.

  TECHNICAL DETAILS

File Size:

798,279 bytes

File Type:

EXE

File Compression:

AutoIt

Memory Resident:

No

Initial Samples Received Date:

06 Jul 2016

Payload:

Compromises system security, Drops files, Steals information

Arrival Details

This Trojan arrives via removable drives.

It may arrive via network shares.

It arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

This malware arrives via the following means:

  • Executing the infected RAR file that contains a copy of the malware

Installation

This Trojan drops the following files:

  • %Application Data%\svchost.exe.ini - contains USB availability status
  • %User Temp%\time.txt - contains system date
  • {Drive Letter}:\autoexec.bat - will be used in propagation via RAR files
  • {Drive Letter}:\system.bin - will be used in propagation via RAR files
  • %User Temp%\rar.dat - will be used in propagation via RAR files

(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.. %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 the following copies of itself into the affected system:

  • %Application Data%\svchost.exe
  • %User Temp%\readme.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.. %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 adds the following mutexes to ensure that only one of its copies runs at any one time:

  • appdatasvchost.exe

Autostart Technique

This Trojan adds the following registry entries to enable its automatic execution at every system startup:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
svchost.exe = "%Application Data%\svchost.exe"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
svchost.exe = "%Application Data%\svchost.exe"

It drops the following file(s) in the Windows User Startup folder to enable its automatic execution at every system startup:

  • %User Startup%\svchost.exe

(Note: %User Startup% is the current user's Startup folder, which is usually C:\Documents and Settings\{user}\Start Menu\Programs\Startup on Windows 2000 and XP, and C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows Vista, 7, and 8.)

Other System Modifications

This Trojan deletes the following files:

  • %User Temp%\{filename}.vbs
  • %User Startup%\{filename}.vbs
  • %Application Data%\{filename}.vbs
  • {Drive Letter}:\{filename}.vbs
  • {Drive Letter}:\{filename}.scr
  • {Drive Letter}:\{filename}.lnk

(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.. %User Startup% is the current user's Startup folder, which is usually C:\Documents and Settings\{user}\Start Menu\Programs\Startup on Windows 2000 and XP, and C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows Vista, 7, and 8.. %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 adds the following registry keys:

HKEY_CURRENT_USER\Software\name

It adds the following registry entries:

HKEY_CURRENT_USER\Software\name
name = "baqa_{Volume Serial Number}"

It deletes the following registry entries:

HKEY_CLASSES_ROOT\lnkfile
IsShortcut = ""

Propagation

This Trojan creates the following folders in all removable drives:

  • {Removable Drive Letter}:\My Pictures
  • {Removable Drive Letter}:\My Documents
  • {Removable Drive Letter}:\Games

It drops copies of itself in network drives such as the following:

  • {Drive Letter}:\{malware filename}.exe

It drops the following copy(ies) of itself in all removable drives:

  • {Removable Drive Letter}:\My Pictures\svchost.exe
  • {Removable Drive Letter}:\My Documents\svchost.exe
  • {Removable Drive Letter}:\Games\svchost.exe

Backdoor Routine

This Trojan executes the following commands from a remote malicious user:

  • Collect information about the computer
  • Download file
  • Execute file
  • Uninstall itself
  • Restart the computer
  • Perform denial of service attacks
  • Start Internet Explorer
  • Display a message box
  • Send Facebook messages
  • Send Skype messages
  • Display advertisements

Process Termination

This Trojan terminates the following processes if found running in the affected system's memory:

  • wscript.exe

Other Details

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

  • {BLOCKED}to.{BLOCKED}o.org

It does the following:

  • It exits if it detects it is running in a Virtual Machine or Sandbox environment.
  • It searches for .rar files and inserts itself to the RAR container as:
    • readme.exe

  • It creates a Windows Firewall exception using the following command:
    • firewall add allowedprogram "%Application Data%\svchost.exe" "svchost.exe" ENABLE

(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 deletes the initially executed copy of itself

It gathers the following information and reports it to its servers:

  • contents of created registry entry: name = "baqa_{Volume Serial Number}"
  • Operating System
  • Computer Name
  • User Name
  • USB availability status
  • Installed .NET Framework
  • Installed Anti-Virus
  • Installed Firewall
  • System Date
  • Window Title

NOTES:

It does not have rootkit capabilities.

It does not exploit any vulnerability.

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

12.634.06

FIRST VSAPI PATTERN DATE:

06 Jul 2016

VSAPI OPR PATTERN File:

12.635.00

VSAPI OPR PATTERN Date:

07 Jul 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

[ Learn More ]

Step 4

Delete this registry key

[ 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
    • name

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.
  • {Removable Drive Letter}:\My Pictures
  • {Removable Drive Letter}:\My Documents
  • {Removable Drive Letter}:\Games

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.
  • %Application Data%\svchost.exe.ini
  • %User Temp%\time.txt
  • {Drive Letter}:\autoexec.bat
  • {Drive Letter}:\system.bin
  • %User Temp%\rar.dat

Step 7

Restore this deleted registry key/value from backup

*Note: Only Microsoft-related keys/values will be restored. If the malware/grayware also deleted registry keys/values related to programs that are not from Microsoft, please reinstall those programs on your computer.

  • In HKEY_CLASSES_ROOT\lnkfile
    • IsShortcut = ""

Step 8

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.

  • %User Temp%\{filename}.vbs
  • %User Startup%\{filename}.vbs
  • %Application Data%\{filename}.vbs
  • {Drive Letter}:\{filename}.vbs
  • {Drive Letter}:\{filename}.scr
  • {Drive Letter}:\{filename}.lnk
  • {filename}.rar

Step 9

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