Worm:VBS/Invadesys.F is a worm written in VBscript that spreads by infecting writable drives. The worm could execute automatically by exploiting a vulnerability discussed in and mitigated by
Microsoft Security Bulletin MS10-046. The worm may lower the computer's security settings and disable processes. Twelve weeks after infecting the local computer, the worm ejects the optical drive and displays an image of a skull and crossbones.
Installation
When run, this worm copies itself as an alternate data stream on NTFS formatted drives as the following:
%windir%\system32\smss.exe:<hard disk serial number>.vbs
%windir%\explorer.exe:<hard disk serial number>.vbs
Example:
%windir%\system32\smss.exe:1396643362.vbs
Otherwise if the local drive is formatted as a FAT partition, the worm copies itself as the following:
%windir%\system32\<hard disk serial number>.vbs
%windir%\<hard disk serial number>.vbs
The worm drops a copy of Windows scripting host "wscript.exe" as "%windir%\system\svchost.exe". The registry is modified to run the worm copy at each Windows start.
In subkey: HKCU\SoftWare\Microsoft\Windows NT\CurrentVersion\Windows
Sets value: "Load"
With data: "%SystemRoot%\system\svchost.exe "<worm path and file name>""
For each subfolder found in the root of the system drive, the worm sets the attribute of that folder as "hidden" and creates a shortcut link file that matches the subfolder name. For example:
C:\Windows.lnk
C:\Users.lnk
C:\Program Files.lnk
… and so on …
The worm deletes the registry subkey "HKCR\lnkfile\IsShortcut" to remove the "shortcut arrow" commonly associated with Windows shortcut file icons. When a user browses the root of the infected drive, Windows Explorer will display the shortcut link files in place of the subfolders. Opening the shortcut link file runs the worm copy and opens the hidden subfolder by the same name.
The worm modifies the registry to run the worm copy when the following file types are opened:
txt - includes text file types such as ".log" and ".txt"
ini - includes configuration file types such as ".ini"
inf - includes installation configuration file types such as ".inf"
bat - includes Windows batch script file types such as ".bat"
cmd - includes command console file types such as ".cmd"
hlp - includes Windows help file types such as ".hlp"
reg - includes registry import file types such as ".reg"
chm - includes compiled HTML file types such as ".chm"
The above listed file types are defined in the Windows registry and can include several file extensions. For example, files defined as type "txt" could include files having the extensions .dic, .exc, .log, .scp and .txt. The following are registry modifications made by the worm:
In subkey: HKLM\Software\Classes\txtfile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\txtfile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\inifile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\inffile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\batfile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\cmdfile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\hlpfile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\regfile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
In subkey: HKLM\Software\Classes\chmfile\shell\open\command
Sets value: "(Default)"
With data: "%SystemRoot%\System32\WScript.exe "<worm path and file name>" %1 %*"
Spreads via…
Writable drives
This worm spreads by copying itself to all writable drives as the following:
<drive:>\<hard disk serial number>.vbs (for example, 1396643362.vbs)
Worm:VBS/Invadesys.F first deletes any existing autorun configuration file named "
<drive:>\autorun.inf", then writes a new one pointing to the worm copy. When a users browses the infected drive and has the Windows feature Autorun enabled, the worm could spread to the browsing computer and further infect other drives. The malicious "autorun.inf" file may be detected as
VirTool:INF/Autorun.gen!L.
Payload
Changes Windows settings
The worm creates the following registry data:
In subkey: HKCU\Software\Microsoft\Windows NT\CurrentVersion
Sets value: "Ver"
With data: "<version of Windows>"
In subkey: HKCU\Software\Microsoft\Windows NT\CurrentVersion
Sets value: "Date"
With data: "<date of infection by the worm>"
The worm makes other changes that affect the viewing of files with "hidden" attributes using Windows Explorer.
In subkey: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN
Sets value: "CheckedValue"
With data: "3"
In subkey: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL
Sets value: "CheckedValue"
With data: "2"
Enables the Windows Autorun feature
The worm modifies the registry to enable the Windows Autorun feature. When this feature is enabled, Windows processes Autorun configuration files "autorun.inf" that exist on drives.
In subkey: HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Sets value: "NoDriveTypeAutoRun"
With data: "0"
Terminates certain processes
The worm terminates the following processes:
ras.exe - Remote Access Service
360tray.exe - Symantec's Norton 360 service
taskmgr.exe - Windows Task manager
cmd.exe - Command line console
cmd.com - renamed Command line console
regedit.exe - Windows Registry Editor
regedit.scr - renamed Windows Registry Editor
regedit.pif - renamed Windows Registry Editor
regedit.com - renamed Windows Registry Editor
msconfig.exe - Microsoft Configuration utility
Disables certain utilities
The worm disables running the following applications:
cmd.exe - Command line console
regedit.exe - Windows Registry Editor
taskmgr.exe - Windows Task Manager
Ejects optical drive
Twelve weeks after infecting the local drive, the worm ejects the optical drive a number of times equal to the numerical value of the current month. For instance, if the month is November and twelve weeks have passed since first infecting the local drive, the optical drive could be ejected 11 times.
Displays an image of a skull and crossbones
Also after twelve weeks after infecting the local drive, the worm displays the following graphic:
Analysis by Patrik Vicol