1- A BSV infects boot sectors on floppy disks and\or hard disks.
On floppy disks, the boot sector contains normally the code to load the files of the operating system.
The BSV replaces the original boot sector by itself and stores the original boot sector somewhere else in the floppy disk or replace it totally.
When the computer is then restarted from this floppy disk, the virus takes the control and hides in the RAM.
It will load and will then run the original boot sector, then everything will be as usual.
Naturally, every floppy disk inserted into the computer will be infected by the virus, unless it is write protected .
A BSV usually hides above the memory, reducing slightly the quantity of memory which the system sees.
Most of the BSV can also infect hard disks, where the process is similar to that described above.
2- The program viruses, the second type of virus, infect the executable programs, usually Com and Exe, but they infect sometimes also DLL files or device drivers.
An infected program will contain a copy of the virus, usually at the end, in certain cases at the beginning of the original program, and in some cases the virus is inserted in the middle of the original program.
When an infected program is run, the virus can remain memory resident and infect every execution of any program.
Viruses use this method to propagate the infection are called "resident viruses ".
Other viruses can try to infect a new file when an infected program is run.
The virus then transfers the original command to the original program.
Viruses using this method to propagate the infection are called " the direct action viruses ".
It is possible that a virus uses both methods of infection.
Most of the viruses try to identify the existing infections, so they do not infect what was already infected.
This makes it possible to inoculate against specific viruses, by making the "victim" appear to be infected.
However, this method is useless as a general defense, as it is not possible to inoculate the same program against multiple viruses.
3- Application viruses, the third type of viruses do not infect
normal programs, but instead spread as "macros" in various types of files,
typically word-processor documents or spreadsheets. This type of viruses
can easily spread through E-mail, when users unknowingly exchange infected
documents.
In general, viruses are just program - rather unusual programs perhaps,
but written just like any other program. It does not take a genius to
write one - many ten year old kids can easily create viruses.
Now - to correct some common misconceptions, here are a few bits of
information about what viruses cannot do.
A virus cannot appear all by itself, it has to be written, just
like any other program.
Not all viruses are intentionally harmful - some may only cause
minor damage as a side effect - however, there is no such thing
as a "harmless" virus.
Reading plain data from an infected diskette cannot cause an
infection. (However, it is not trivial to determine what "plain data" is)
A write-protected diskette cannot become infected, if the
hardware is working properly.
It used to be the case that a virus could not infect a computer unless it
was booted from an infected diskette or an infected program was run on it,
but alas, this is no longer true. It is possible for a virus infection to
spread, just by the act of reading an infected Microsoft Word document,
for example, or through use of Lotus Notes, to name two well-known
applications.
It also used to be the case that a virus could not infect data files or
spread from one type of computer to another - a virus designed to infect
Macintosh computers could not infect PCs or vice versa, but with the
appearance of application viruses this has changed as well - there are now
a few viruses that can infect WinWord as well as MacWord.
Apart from using anti-virus programs, there are several ways to protect
your computer from viruses:
BASIC CARE against VIRUSES
Write it, think it, say it, say it again: MAKE BACKUPS!!!
Keep good backups (more than one) of
everything you do not want to lose. This will not only protect you
from serious damage caused by viruses, but is also necessary in the
case of a serious hardware failure.
Never boot a computer with a hard disk from a diskette because that
is the only way the hard disk could become infected with a boot
sector virus. (Well, strictly speaking, it can happen if you run
a "dropper" program too, but that happens extremely rarely).
If your BIOS allows you to change the boot sequence to "C: A:",
do it. This will give you very good protection against boot
sector virus infections.
Should you, by accident, have left a non-bootable diskette in
drive A: when you turn the computer on, the message "
Not a system disk" may ppear. If the diskette was infected with a virus, it will now
be active, but may not have infected the hard disk yet (Most
boot sector viruses will do it right way, however). If this
happens, remove the diskette from the A: drive and turn the computer
off (or press the reset button). It is important to note that pressing Ctrl-Alt-Del is not sufficient, as a few viruses can survive that.
Keep all diskettes write-protected unless you need to write to them.
When you obtain new software on a diskette, write-protect the
diskette before you make a backup copy of it. If it is not possible to make a backup of the diskette, because of some idiotic copy-protection, I do not recommend using the software.
Be really careful regarding your sources of software. In general,
shrink-wrapped commercial software should be "clean", but there have been a few documented cases of infected commercial software and even Microsoft has occasionally distributed infected files.
Public-Domain, Freeware and Shareware packages do not have to be
any more dangerous than "regular" commercial programs - it all
depends on the source. If you obtain software from a BBS, check
what precautions the SysOp takes against viruses. If he does not screen the software made available for downloading, you should find another source.
Check all new software for infection before you run it for the
first time. It may even be advisable to use a couple of scanners from different manufacturers, as no single scanner is able to detect all viruses.
Obtain Shareware, Freeware and Public-Domain software from the original author or reliable distribution sites, if at all possible.
Look out for any "unusual" behavior on your computer, like: