VBS.Legion@mm

Printer Friendly Page

Discovered: October 16, 2002
Updated: February 13, 2007 11:46:16 AM
Type: Worm
Systems Affected: Windows


VBS.Legion@mm is a Visual Basic Script (VBS) worm that uses Microsoft Outlook MAPI to send itself to first 8,000 contacts in the Outlook Address Book. It also attempts to spread through the KaZaA file-sharing network. It deletes some antivirus product files when it is executed. The email has the following characteristics:

Subject:  Legion Game
Attachment: Legion.vbs

NOTE: Definitions dated before October 17, 2002, detect this threat as Bloodhound.VBS.Worm.

Antivirus Protection Dates

  • Initial Rapid Release version October 17, 2002
  • Latest Rapid Release version September 28, 2010 revision 054
  • Initial Daily Certified version October 17, 2002
  • Latest Daily Certified version September 28, 2010 revision 036
  • Initial Weekly Certified release date October 23, 2002

Click here for a more detailed description of Rapid Release and Daily Certified virus definitions.

Writeup By: Yana Liu

Discovered: October 16, 2002
Updated: February 13, 2007 11:46:16 AM
Type: Worm
Systems Affected: Windows


When VBS.Legion@mm runs, it does the following:

It copies itself as these files, if the path exists:

  • C:\Legion.vbs
  • C:\%windir%\Temp.vbs
  • C:\%windir%\Legion.vbs
  • C:\%windir%\.vbe
  • C:\%windir%\System\legion.vbs
  • C:\%windir%\Menú Inicio\Programas\Inicio\legionworm.vbs
  • C:\%windir%\Escritorio\legion.vbs
  • C:\Documents and Settings\All Users\Menú Inicio\Programas\Inicio\legionworm.vbs
  • C:\Documents and Settings\All Users\Escritorio\legion.vbs
  • C:\Recycled\Legion.exe.vbs
  • C:\Recycler\Legion.exe.vbs

NOTE: %windir% is a variable. The worm locates the Windows installation folder (by default this is C:\Windows or C:\Winnt) and copies the files to that location.

It creates a folder named C:\Legion and copies itself to the folder as:
  • Legion.exe.vbs
  • Shakira.mp3.vbs
  • Hey Baby.mp3.vbs
  • BritneySpears.mp3.vbs
  • StarCraft.exe.vbs
  • WarCraft.exe.vbs
  • Morpheus.exe.vbs
  • Pink.mp3.vbs

It creates a file named C:\Legion.hta, which contains this text:

Virus Legion
Virus Legion Rindance han sido conquistados......
LeGion Actived In Your Computer
La Ultima vez que legion se ejecuto fue el <date when this file was created> a las <time when this file was created>

NOTE : C:\Legion.hta is not viral by itself and is not detected by Symantec antivirus products. You should delete this file manually if your compuuter was infected by VBS.Legion@mm.

Registry modifications
The worm makes the following changes to the registry:
  • It adds the values
    htalegion C:\legion.hta
    Legion C:\%Windir%\legion.vbs
    VBE C:\%Windir%\.vbe
    wormlegion C:\%Windir%\System\legion.exe.vbs
    legionworm C:\Recycled\legion.exe.vbs
    viruslegion C:\Recycler\legion.exe.vbs
    Shaleg C:\Legion\Shakira.mp3.vbs
    Slegion C:\Legion\StarCraft.exe.vbs
    warlegion C:\Legion\WarCraft.exe.vbs

    to the registry key

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

    so that the worm runs when you restart Windows.
  • It adds the values

    RegisteredOwner Virus Legion
    RegisteredOrganization Legion
    ProductName Legiowns 2002

    to the registry key

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
  • It changes the values of

    Start Page http:/ /www.legion.com
    Window title legion Actived in your Computer !Rindance han sido conquistados!

    in the registry key

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
  • It creates a registry subkey named

    HKEY_CURRENT_USER\Software\Legion

    and sets the value to

    execution <the worm executed times>

    The worm records in this registry key the number of times it is executed. When it runs the for thirtieth time, it first displays this message:

    Title: VBScript: Carmina
    Message: Carmina Ti Amo

    It then overwrites C:\Autoexec.bat. The overwritten file is 458 bytes in length. When you restart the computer, commands in Autoexec.bat begin to format drive C (on Windows 95/98/Me-based computers only).
  • If the registry key

    HKEY_CURRENT_USER\Software\Kazaa\LocalContent

    does not exist, the worm creates this key first, and then adds the following values:

    DisableSharing dword:00000000
    Dir0 012345:c:\Legion

    so that other KaZaA users can download files from the C:\Legion folder.

The worm retrieves information about the \Program Files folder from the registry and deletes all files in the following subfolders of the \Program Files folder:
  • Kaspersky Lab\Kaspersky AntiVirus Personal
  • Antiviral Toolkit Pro
  • AVPersonal
  • Trend PC-cillin 98
  • Trend Micro\PC-cillin 2000
  • McAfee\McAfee VirusScan
    • Perav

It deletes all .dll files in the Norton Antivirus 2002 subfolder of the \Program Files folder. It also deletes
  • C:\%windir%\Regedit.exe
  • C:\%windir%\System32\Regedt32.exe

If the current system day is Tuesday, the worm first displays this message:

Title:  VBScript: Virus Legion
Message:  La Conquista ah llegado termino el juego

The worm then deletes all files in the C:\, C:\Windows, and C:\Windows\Command folders and all .dll files in the C:\Windows\System folder.

The worm appends itself to all .htt, .htm, and .html files in all folders. The worm may append itself to the same files multiple times.

If the \Program Files\Mirc\Mirc.ini file exists, the worm creates Script.ini to send C:\Pathdearchivo to other mIRC users who connect to the same channel as the infected computer. The worm does not copy itself to or create C:\Pathdearchivo. Therefore, the worm cannot send itself to other mIRC users.

It creates C:\Mail.vbs to use Microsoft Outlook MAPI to send itself to first 8,000 contacts in Outlook Address Book. The email has the following characteristics,

Subject:  Legion Game
Message:  YA jugaste el juego Legion? si no aqui te lo doy checalo y hay me dices que tal...
Attachment: Legion.vbs

Recommendations

Symantec Security Response encourages all users and administrators to adhere to the following basic security "best practices":

  • Use a firewall to block all incoming connections from the Internet to services that should not be publicly available. By default, you should deny all incoming connections and only allow services you explicitly want to offer to the outside world.
  • Enforce a password policy. Complex passwords make it difficult to crack password files on compromised computers. This helps to prevent or limit damage when a computer is compromised.
  • Ensure that programs and users of the computer use the lowest level of privileges necessary to complete a task. When prompted for a root or UAC password, ensure that the program asking for administration-level access is a legitimate application.
  • Disable AutoPlay to prevent the automatic launching of executable files on network and removable drives, and disconnect the drives when not required. If write access is not required, enable read-only mode if the option is available.
  • Turn off file sharing if not needed. If file sharing is required, use ACLs and password protection to limit access. Disable anonymous access to shared folders. Grant access only to user accounts with strong passwords to folders that must be shared.
  • Turn off and remove unnecessary services. By default, many operating systems install auxiliary services that are not critical. These services are avenues of attack. If they are removed, threats have less avenues of attack.
  • If a threat exploits one or more network services, disable, or block access to, those services until a patch is applied.
  • Always keep your patch levels up-to-date, especially on computers that host public services and are accessible through the firewall, such as HTTP, FTP, mail, and DNS services.
  • Configure your email server to block or remove email that contains file attachments that are commonly used to spread threats, such as .vbs, .bat, .exe, .pif and .scr files.
  • Isolate compromised computers quickly to prevent threats from spreading further. Perform a forensic analysis and restore the computers using trusted media.
  • Train employees not to open attachments unless they are expecting them. Also, do not execute software that is downloaded from the Internet unless it has been scanned for viruses. Simply visiting a compromised Web site can cause infection if certain browser vulnerabilities are not patched.
  • If Bluetooth is not required for mobile devices, it should be turned off. If you require its use, ensure that the device's visibility is set to "Hidden" so that it cannot be scanned by other Bluetooth devices. If device pairing must be used, ensure that all devices are set to "Unauthorized", requiring authorization for each connection request. Do not accept applications that are unsigned or sent from unknown sources.
  • For further information on the terms used in this document, please refer to the Security Response glossary.

Writeup By: Yana Liu

Discovered: October 16, 2002
Updated: February 13, 2007 11:46:16 AM
Type: Worm
Systems Affected: Windows



NOTES:

  • These instructions are for all current and recent Symantec antivirus products, including the Symantec AntiVirus and Norton AntiVirus product lines.
  • If the worm has run, you may first have to reinstall programs that were deleted by the worm. In some cases, you may have to reinstall the operating system.
  1. Update the virus definitions.
  2. Run a full system scan, and delete all files that are detected as VBS.Legion@mm. On Windows 95/98/Me, delete C:\Autoexec.bat and restore it from a clean backup if it was overwritten by the worm. Delete C:\Legion.hta if it exists.
  3. Reinstall deleted antivirus products as necessary, and restore the infected .htt, .htm, and .html files from clean backup files, if necessary.
  4. Reverses the changes that the worm made to the registry.

For details on how to do this, read the following instructions.

To update the virus definitions:
There are two ways to obtain the most recent virus definitions:
  • Run LiveUpdate, which is the easiest way to obtain virus definitions. These virus definitions have undergone full quality assurance testing by Symantec Security Response and are posted to the LiveUpdate servers one time each week (usually Wednesdays) unless there is a major virus outbreak. To determine whether definitions for this threat are available by LiveUpdate, look at the Virus Definitions (LiveUpdate) line at the top of this write-up.
  • Download the definitions using the Intelligent Updater. Intelligent Updater virus definitions have undergone full quality assurance testing by Symantec Security Response. They are posted on U.S. business days (Monday through Friday). They must be downloaded from the Symantec Security Response Web site and installed manually. To determine whether definitions for this threat are available by the Intelligent Updater, look at the Virus Definitions (Intelligent Updater) line at the top of this write-up.

    Intelligent Updater virus definitions are available here. For detailed instructions on how to download and install the Intelligent Updater virus definitions from the Symantec Security Response Web site, click here.
To scan for and delete the infected files:
  1. Start your Symantec antivirus program, and make sure that it is configured to scan all files.
  2. Run a full system scan.
  3. If any files are detected as infected with VBS.Legion@mm, click Delete.
  4. If the C:\Autoexec.bat file was overwritten, then on Windows 95/98/Me-based computers use Windows Explorer to delete C:\Autoexec.bat and then restore it from a clean backup.
  5. Using Windows Explorer, delete C:\Legion.hta.

To reinstall deleted antivirus products and restore .htt, .htm, and .html files:
Restore deleted files from a backup if you need them. Reinstall any software that the worm deleted.

To edit the registry:

CAUTION : We strongly recommend that you back up the registry before you make any changes to it. Incorrect changes to the registry can result in permanent data loss or corrupted files. Modify only the keys that are specified. Read the document How to make a backup of the Windows registry for instructions.
  1. Click Start, and click Run. The Run dialog box appears.
  2. Type regedit and then click OK. The Registry Editor opens.
  3. Navigate to the key

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  4. In the right pane, delete the following values:

    htalegion C:\legion.hta
    Legion C:\%Windir%\legion.vbs
    VBE C:\%Windir%\.vbe
    wormlegion C:\%Windir%\System\legion.exe.vbs
    legionworm C:\Recycled\legion.exe.vbs
    viruslegion C:\Recycler\legion.exe.vbs
    Shaleg C:\Legion\Shakira.mp3.vbs
    Slegion C:\Legion\StarCraft.exe.vbs
    warlegion C:\Legion\WarCraft.exe.vbs

  5. Navigate to the key

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion
  6. In the right pane, delete the following values:

    RegisteredOwner Virus Legion
    RegisteredOrganization Legion
    ProductName Legiowns 2002
  7. Navigate to the key

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
  8. In the right pane, modify the following values as desired:

    Start Page http:/ /www.legion.com
    Window title legion Actived in your Computer !Rindance han sido conquistados!
  9. Delete the key

    HKEY_CURRENT_USER\Software\Legion
  10. Navigate to the key

    HKEY_CURRENT_USER\Software\Kazaa\LocalContent
  11. In the right pane, delete the value

    Dir0 012345:c:\Legion
  12. Click Registry, and click Exit.


Writeup By: Yana Liu