Computer viruses are analogous to biological viruses in many ways. A biological virus consists of nothing more than a
When a
Figure 7-4:
A computer virus
A computer virus can’t spread by itself; it must
A computer virus
Creation, or birth
Release, or initial distribution of the virus
Trigger, either a date or event (optional)
Activation
Detection
Elimination or removal
Modification
Figure 7-5:
The life cycle of a computer virus
| Note |
Other types of malware, including worms and blended threats, follow a similar cycle. |
Because viruses infect executable files, it’s important that you don’t arbitrarily execute files that you receive as e-mail attachments. Not all executable files end with the .exe file extension. Table 7-1 lists some other file extensions that
|
File Extension |
Associated Program or Function |
|---|---|
|
EXE |
An executable file, application, or program. |
|
VBS |
Visual Basic Script. Executable code created with Microsoft Visual Basic. |
|
BAT |
Batch file (example: autoexec.bat). Although initially created for MS DOS, batch files will still execute on
|
|
COM |
Another executable file, program, or application. |
|
PIF |
Program Information File. A link to an executable DOS file that stores information about window settings for the DOS file. |
|
LNK |
A windows shortcut used to link to an executable file. |
|
SCR |
A Windows screen saver file. |
|
VBE |
A Visual Basic Encoded script file, similar to a VBS file. It executes in the same way. |
|
JS |
A JavaScript external file, used to contain executable JavaScript rather than embedding the script directly in a web page. Potentially dangerous. |
|
HTA |
An executable HTML application file that can be embedded on a Web page. |
|
SHS |
An executable Windows OLE (object linking and embedding) package that can act as a container for executable code. |
If you encounter an attachment with an extension you don’t recognize, be safe. Don’t
An example of this is a file-infecting macro virus. The malicious code — in this case a Microsoft Word macro — is embedded in a Word document. In order for the macro virus to execute, Microsoft Word must run the macro. This is why disabling Microsoft Word’s macro feature defeats macro viruses.
Because data files are usually harmless, crackers and virus writers take advantage of this to trick people into opening executable attachments. They can use double extensions to confuse people or even hide the real extension of a file. The following file
Iloveyou.txt.exe
account_info.doc.pif
yourmessage.jpg.scr
In each of these examples, the false file extension that indicates a data file is followed by the actual file extension indicating that the file is actually an executable file. Windows allows the “.” character in a file
Figure 7-6:
A document with its extension hidden
All of the executable files appear to be harmless data files, and an unsuspecting user is likely to launch one of them inadvertently. Another method for hiding the actual extension is to create a long file name with nonprinting
|
yourmessage.jpg . |
scr |
Figure 7-7 shows this file displayed in a folder list. In the top window, the last extension is hidden because of the long file name and will
Figure 7-7:
A double extension can be hidden by a long file name with blank spaces
In late 2003, Microsoft announced the creation of a $5 million antivirus reward program (now called the
fink-fund
by the security community) that provides
Microsoft placed the first bounties on the heads of the creators of the Sobig virus, the MSBlast worm, and the Mydoom.B worm. Each reward currently stands at $250,000. Because the creators of malware often seek bragging rights trying to
So far, no arrests have resulted due to the bounty placed on the heads of these people, but it’s likely that this approach will aid in the investigation of future malware.
| On The Web |
For more information about the Microsoft antivirus reward program, visit www.microsoft.com/security/antivirus/ . |