A computer virus is a program or piece of code
that is loaded onto your computer without your knowledge and runs
against your wishes. Viruses can also replicate themselves. All computer viruses are man-made. A simple virus that can make a copy
of itself over and over again is relatively easy to produce. Even such a
simple virus is dangerous because it will quickly use all available memory and bring the system to a halt. An even more dangerous type of virus is one capable of transmitting itself across networks and bypassing security systems.
Since 1987, when a virus infected ARPANET, a large network used by the Defense Department and many universities, many antivirus programs have become available. These programs periodically check your computer system for the best-known types of viruses.
Some people distinguish between general viruses and worms. A worm is a special type of virus that can replicate itself and use memory, but cannot attach itself to other programs.
Classification
In order to replicate itself, a virus must be permitted to execute
code and write to memory. For this reason, many viruses attach
themselves to executable files that may be part of legitimate programs
(see code injection).
If a user attempts to launch an infected program, the virus' code may
be executed simultaneously. Viruses can be divided into two types based
on their behavior when they are executed. Nonresident viruses
immediately search for other hosts that can be infected, infect those
targets, and finally transfer control to the application program
they infected. Resident viruses do not search for hosts when they are
started. Instead, a resident virus loads itself into memory on execution
and transfers control to the host program. The virus stays active in
the background and infects new hosts when those files are accessed by
other programs or the operating system itself.
Nonresident viruses
Nonresident viruses can be thought of as consisting of a finder module and a replication module.
The finder module is responsible for finding new files to infect. For
each new executable file the finder module encounters, it calls the
replication module to infect that file.
Resident viruses
Resident viruses contain a replication module that is similar to the
one that is employed by nonresident viruses. This module, however, is
not called by a finder module. The virus loads the replication module
into memory when it is executed instead and ensures that this module is
executed each time the operating system is called to perform a certain
operation. The replication module can be called, for example, each time
the operating system executes a file. In this case the virus infects
every suitable program that is executed on the computer.
Resident viruses are sometimes subdivided into a category of fast infectors and a category of slow infectors.
Fast infectors are designed to infect as many files as possible. A fast
infector, for instance, can infect every potential host file that is
accessed. This poses a special problem when using anti-virus software,
since a virus scanner will access every potential host file on a
computer when it performs a system-wide scan. If the virus scanner fails
to notice that such a virus is present in memory the virus can
"piggy-back" on the virus scanner and in this way infect all files that
are scanned. Fast infectors rely on their fast infection rate to spread.
The disadvantage of this method is that infecting many files may make
detection more likely, because the virus may slow down a computer or
perform many suspicious actions that can be noticed by anti-virus
software. Slow infectors, on the other hand, are designed to infect
hosts infrequently. Some slow infectors, for instance, only infect files
when they are copied. Slow infectors are designed to avoid detection by
limiting their actions: they are less likely to slow down a computer
noticeably and will, at most, infrequently trigger anti-virus software
that detects suspicious behavior by programs. The slow infector
approach, however, does not seem very successful.
No comments:
Post a Comment