How It Works: Viruses
They're the common cold for computers; we'll show you how they operate and how to protect your PC.
Kim Zetter
How Did I Get This Virus, Anyway?
You get a virus when you copy infected files to your computer, then activate the code inside by running the infected application or opening an infected document. How you copy the infected files is irrelevant: Viruses don't care if you get them as an e-mail attachment, a download, or via a shared floppy disk, though e-mail attachments are the most prevalent (and easiest) mode of transport.
Once you open an infected file or application, the malicious code copies itself into a file on your system, where it waits to deliver its payload--whatever the programmer designed it to do to your system. Simply deleting the e-mail after you open the attachment won't get rid of the virus, since it has already entered the machine.
A virus writer can set the payload to trigger immediately, at a preset future time or date, or upon the execution of a specific command, such as when you save or open a file. The Michelangelo virus, for example, was programmed to release its payload on March 6 of any year--the artist's birthday.
General Virus Types
While there are thousands of variations of viruses, most fall into one of the following six general categories, each of which works its magic slightly differently:
Boot Sector Virus: replaces or implants itself in the boot sector---an area of the hard drive (or any other disk) accessed when you first turn on your computer. This kind of virus can prevent you from being able to boot your hard disk.
File Virus: infects applications. These executables then spread the virus by infecting associated documents and other applications whenever they're opened or run.
Macro Virus: Written using a simplified macro programming language, these viruses affect Microsoft Office applications, such as Word and Excel, and account for about 75 percent of viruses found in the wild. A document infected with a macro virus generally modifies a pre-existing, commonly used command (such as Save) to trigger its payload upon execution of that command.
Multipartite Virus: infects both files and the boot sector--a double whammy that can reinfect your system dozens of times before it's caught.
Polymorphic Virus: changes code whenever it passes to another machine; in theory these viruses should be more difficult for antivirus scanners to detect, but in practice they're usually not that well written.
Stealth Virus: hides its presence by making an infected file not appear infected, but doesn't usually stand up to antivirus software.
All Malicious Code Isn't a Virus
A common misconception is that other kinds of electronic nasties, such as worms and Trojan horse applications, are viruses. They aren't. Worms, Trojan horses, and viruses are in a broader category analysts call "malicious code."
A worm program replicates itself and slithers through network connections to infect any machine on the network and replicate within it, eating up storage space and slowing down the computer. But worms don't alter or delete files.
A Trojan horse doesn't replicate itself, but it is a malicious program disguised as something benign such as a screen saver. When loaded onto your machine, a Trojan horse can capture information from your system--such as user names and passwords--or could allow a malicious hacker to remotely control your computer.
The Best of PC World
Mobile Computing
Featured APC Accessories
-
APC Back-UPS ES
Safeguards your equipment from damaging surges and spikes that travel along your utility & data lines.
- APC SurgeArrest Performance Highest level of protection for your professional computers, electronics and connected devices, as well as provides surge protection.
Deal Breakers
Special Offers for PC World Users
-
Dell Windows 7 Deals
Win7 Weekend Sale at dell.com!
Laptops starting at $499 after Instant Savings
Focus on Personal Productivitysponsored by Microsoft
- Personal Finance 2.0 These free and fee-based Web services not only aggregate data from your online bank accounts, they give you tools for managing your money.
- High-Tech Travel Tips Plenty of stories provide advice for elite mobile professionals. But what about you, the unproductive traveler?
People who read this also read:
Best Prices on Antivirus Software
Norton Antivirus 2010 (Full Product, 1 User)Price: $17.95
Norton AntiVirus 2009 (Full Product)Price: $15.72
Anti-virus 2010 (OEM Product, 1 User)Price: $21.79
Norton Antivirus 2010 (Full Product, 1 User)Price: $20.99
Anti-Virus 2009 (Full Product)Price: $17.00
Norton Antivirus 2010 (Full Product, 3 Users)Price: $36.98
- Acer Laptop Center Forget the Mouse...check out the next generation multi-gesture touch screen technology from Acer.
- Dell Shopping Center Check out great deals from Dell!
Cameras
Camcorders
Cell Phones
Components
Desktops
HDTV
Home Theater
GPS
Laptops
Monitors
MP3 Players
Networking &
Printers
Storage





