TECHNICAL DETAILS
The virus arrives as an email message that has the following characteristics:
Subject : Important: Windows update
Message: Hey, at work we are applying this update because it makes Windows over 50% faster and more secure. I thought I should forward it as you may like it.
Attachment: Ms02-010.exe
When the attachment is executed, the virus does the following:
It makes a copy of itself as C:Ms02-010.exe.
It drops the file Sharp.vbs, which then performs the mass-mailing routine, sending the previously described message. Sharp.vbs then deletes itself.
NOTE: Even if you have not updated to the virus definition set that includes detection for W32.HLLP.Sharpei@mm, Sharp.vbs will be detected heuristically by Norton AntiVirus as Bloodhound.VBS.Worm. Once you have updated to this definition set, it will be detected as W32.HLLP.Sharpei@mm.
After the messages are successfully sent, they are deleted from the Outlook Sent folder. As a result, you will not see the messages in Outlook. This is an attempt to hide its activity.
If Mscoree.dll is found in the System folder, the virus creates Cs.exe in the Windows folder, and then executes it. The virus assumes that this library is installed only when the Microsoft .NET Framework is installed. Cs.exe is a .NET executable that is written in C# and runs only in the .NET Framework.
Finally Ms02-010.exe creates the following key in the registry:
HKEY_LOCAL_MACHINESoftwareSharp
with a string value set to the path of the .exe that was run. This is used later as a reference from Cs.exe to the executed application. This portion of the virus code is Intel assembly, which can run on all Intel-based Win32 systems.
NOTE: In some cases, this key will already exist, having been installed by a legitimate program, rather than the virus
Cs.exe runs in the .NET Framework and looks for the "Sharp" key in the registry to get a path to the application that executed it. This portion of the code is a complete prepending virus logic written in C#. The virus copies the complete contents of Ms02-010.exe to the front of .NET executables in the Program Files and Windows folders.
When an infected executable is run, it attempts to mail the virus again and looks for other files to infect; it also executes the host program after itself whenever possible. During this process, the virus uses temporary file names such as Hostcopy.exe and Temp.exe, which are then deleted.
The virus portion also creates another Sharp.vbs file, which contains code to only display a message. This file is created in the Windows Startup folder, so that the message appears when you start Windows.
Cs.exe attempts to handle some exceptions, but in our test environment it produced .NET Framework error messages. However, the virus was able to infect .NET files on the system.
Recommendations
Symantec Security Response encourages all users and administrators to adhere to the following basic security "best practices":
- Turn off and remove unneeded services. By default, many operating systems install auxiliary services that are not critical, such as an FTP server, telnet, and a Web server. These services are avenues of attack. If they are removed, blended threats have less avenues of attack and you have fewer services to maintain through patch updates.
- If a blended 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 (for example, all Windows-based computers should have the current Service Pack installed.). Additionally, please apply any security updates that are mentioned in this writeup, in trusted Security Bulletins, or on vendor Web sites.
- 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.
- Configure your email server to block or remove email that contains file attachments that are commonly used to spread viruses, such as .vbs, .bat, .exe, .pif and .scr files.
- Isolate infected computers quickly to prevent further compromising your organization. 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.