Search
Windows 7

Security Essentials - Blocking Viruses and Worms with an Antivirus Program

Published 8 min readBy Programming4us Editorial Team
A virus is a computer program that replicates by attaching itself to another object. Viruses can infect program files, documents (in the form of macro viruses), or low-level disk and file-system structures such as the boot sector and partition table. Viruses can run when an infected program file runs; they can also reside in memory and infect files as the user opens, saves, or creates the files. A worm is a standalone program that replicates by copying itself from one computer to another, usually over a network or through e-mail attachments. The distinction between viruses and worms can be blurry and for practical purposes is unimportant.

Historically, the most common source of widespread computer virus outbreaks is the class of hostile software that replicates by sending itself to other potential victims as an attachment to an e-mail message. The accompanying message often uses "social engineering" techniques designed to lure inattentive or gullible users into opening the infected attachment. For example, some viruses arrive as attachments that mimic delivery failure reports from an e-mail server administrator. The attachment, in .zip format, ostensibly includes details of the failed message but actually contains the virus payload.


Although viruses that spread through e-mail attachments have been to blame for the majority of attacks in recent years, some security experts believe that other modes of transmission represent a far greater threat and will become more prevalent in the future. By their nature, attachments (as well as files transferred with an instant messenger program, a more recent attack vector) require some cooperation from an unwitting or distracted user; that requirement dramatically limits their potential to spread unchecked. As a result, authors of hostile software are always on the lookout for techniques they can use to spread infections automatically.

The Conficker worm, which made headlines in 2009, provides an example: one of its propagation methods relies on AutoPlay, the feature that displays a menu of options when you insert a removable drive, such as a USB flash drive. On unprotected computers it displays an option to "open folder to view files" when a victim inserts an infected USB flash drive in the computer and AutoPlay runs. When clicked, that option actually executes the worm, which then attempts to spread to other computers. Windows 7 doesn't have the vulnerability that Conficker exploits in earlier (unpatched) Windows versions—but it also closes the AutoPlay vulnerability, as AutoRun (the feature that placed the bogus option in the AutoPlay dialog box) is disabled on removable drives.

Another popular mechanism is the use of scripts—written in languages such as JavaScript, JScript, or Microsoft Visual Basic Scripting Edition (often abbreviated as VBScript or VBS)—that automatically take actions on the intended victim's computer when he or she visits a webpage or views an HTML-formatted e-mail message. Protected Mode in Internet Explorer is one defense against this type of intrusion.

Yet another increasingly common mode of transmission uses e-mail to send a link to a compromised website. If the intended victim clicks the link, she's taken to a page that attempts to install hostile code automatically or prompts the visitor to download a seemingly harmless file. The file is typically disguised as something innocuous, such as a codec required to view a salacious file.

You can review "top ten" lists of current threats and detections, along with links to details about each one, at the Microsoft Malware Protection Center, w7io.com/1518.

Viruses and worms are not necessarily, by their very nature, dangerous. Most are, however—why else would a programmer need to resort to such sneaky techniques?—and you don't want them on your computer. Besides replicating itself, a virus can be programmed to do just about anything that the current user account is allowed to do, such as erase files, make registry changes, and send information over the internet. An important layer in a basic PC protection strategy, therefore, is to use up-to-date antivirus software. Windows does not include any antivirus software, but it's readily available from Microsoft and many other vendors.

1. Finding an Antivirus Program

Plenty of good antivirus programs are available. You can start your search at the Windows 7 Security Software Providers page, w7io.com/1510, which provides links to publishers of Windows 7–compatible security software, including antivirus programs. (If you haven't yet installed antivirus software, you'll find a link to this page in Action Center. Next to Virus Protection, click Find A Program Online.)

This Windows 7 Security Software Providers page provides no independent evaluation. Besides the usual review sites managed by computer magazines, you should look to ICSA Labs, which tests antivirus programs and certifies those that meet its criteria for effectiveness. You can find lists of certified programs at w7io.com/1511. Another independent tester is Austria-based AV-Comparatives.org (w7io.com/1512).



Note:

Microsoft's entry in the consumer antivirus arena is Microsoft Security Essentials (w7io.com/1513). Microsoft Security Essentials is based on the antivirus feature of Microsoft Forefront Client Security, a business-oriented program for protection against viruses and spyware. Microsoft Security Essentials is available to Windows users at no charge.


2. Using an Antivirus Program

Installing an antivirus program is a good first step. But you're not done yet! The initial setup enables the antivirus scanning engine—the code that checks files for possible viruses. The most important part of the package is the database of virus definitions (sometimes called the signature file). After installing an antivirus package on a new computer, update it to the latest definitions immediately. Then configure the program to enable these features:

  • Install updates to program files and virus definitions using the program developer's recommended schedule, at least daily.

  • Scan each file that you access in any way. This feature is typically called real-time scanning, virus monitoring, or something similar. Don't confuse this type of scanning with scheduled scans, which periodically scan the files stored on your computer to find infected files.

  • Scan e-mail attachments and block access to infected files.

3. Scanning for Viruses—Without an Antivirus Program

On the second Tuesday of each month, as part of its normal security releases, Microsoft releases an updated version of a utility called the Malicious Software Removal Tool (MSRT). This utility is not designed to block new viruses from entering a computer; rather, its function is to clean up systems that have been infected with well-known and widespread viruses and other forms of malware. The MSRT is delivered by Windows Update, and on most computers, this tool runs silently and then deletes itself; it alerts you if it finds any infections, and lets you know if they were successfully removed.

If you prefer to scan one or more systems manually, you can download the current executable version of the MSRT from w7io.com/1514. Because this utility is updated at least monthly, we do not recommend that you save this file. For details about this tool, read Microsoft Knowledge Base article 890830 (w7io.com/1515).

As an alternative to the MSRT, free web-based virus scanning services are available from several antivirus vendors. The Windows Live safety scanner can be run from w7io.com/1516.


Warning:

Periodic scanning by the MSRT or an online tool does not provide continuous protection against virus infections. For that, you need to install and run an antivirus program.