How Does a Virus Infect a PC?

How Does a Computer Virus Infect a Computer?

[Anti-Virus Page] [Help Center]

How does a virus spread?

The way a virus spreads to other computers varies with the type of virus.

A macro virus becomes active when a document infected with the virus is opened using the program it is designed to attack. (So far--as of October 1997--only Microsoft Word, Microsoft Excel, and Lotus Ami Pro are vulnerable to macro viruses.) The program must have its ability to run macros enabled (turned on). Generally, when a virus in a document becomes active, it will spread to global settings for the application, so that other documents will become infected when they are opened. When an infected document is opened on another computer, the global settings used by that copy of the application will be infected as well.

A boot sector virus infects hard disks and diskettes. If a computer is re-booted or its power is turned on while an infected diskette is in drive A, the virus will spread to the hard disk, even if the diskette is not capable of starting up the computer. Once the hard disk is infected, all diskettes used in the computer will be infected and can spread the infection to other computers. On Macintoshes, a boot sector virus can become active when an infected diskette is inserted in a diskette drive because the Macintosh reads the diskette immediately.

A program virus becomes active when a program infected with a virus is run. Once a program virus is active, it will usually infect other programs on the computer. If a copy of an infected program is moved to and run on another computer, it can then infect programs on that computer.

Can a virus spread through e-mail?

It is possible to get a virus through e-mail but only in very limited circumstances. If you are using an e-mail program that can handle files attached to an e-mail message, you may be vulnerable. To get an infection, the attachment must carry an infection and the e-mail program must be set to do something automatically when it sees the attachment. If the attatchment is a program, the e-mail program would have to run the program without asking you; if the attachment is a document, the e-mail program would have to run a program to open that document. In the latter case (opening a document), the program would have to be configured to allow running macros. If any of the above circumstances are not true for you, you're in no danger of being infected by a virus when you read e-mail. If you save the attachment from an e-mail message, and it is a program or a file that might contain a macro virus, you should scan it with an anti-virus program before opening it.


[Top] [Anti-Virus Page] [Help Center]
Last modified: November 25, 1997
Copyright © University of Delaware 1997.