Norman Book On Cumputer Virus PDF
Norman Book On Cumputer Virus PDF
Norman Book On Cumputer Virus PDF
Computer Viruses
Peace of Mind
Norman is one of the world’s leading companies within
the field of data security. With products for virus
control, spam control, email control, download control,
personal firewall, encryption, data recovery, certified
data erasure and computer forensics, the company
plays an important role in the data industry.
www.norman.com
Norman ASA is not liable for any other form of loss or damage arising
from use of the documentation or from errors or deficiencies therein,
including but not limited to loss of earnings.
Norman documentation is
Copyright © 1990-2003 Norman ASA.
All rights reserved.
Contents
Contents ........................................................................................................v
Introduction .................................................................................................7
MS-DOS .................................................................................................37
Windows .................................................................................................37
OS/2 ........................................................................................................38
Windows 95/98/ME ................................................................................39
Windows NT/2000/XP ............................................................................41
Sandbox ......................................................................................................46
Index ...........................................................................................................53
Introduction
It’s hard to believe that the first IBM personal computer (PC)
was introduced in August, 1981. In the beginning they were used
by a small group of people. Today, however, we can’t imagine
life without them, both at work and at home. Look around your
office when the electricity goes out, and you’ll see people
standing around talking because they feel they can’t get any
work done without their computers.
We have become dependent on these machines and the
information stored within. As the importance of a “thing” rises, it
becomes equally as important, if not more, to secure it. (How
many of you have alarm systems in your cars?)
A large portion of modern computing life is to secure the
information that we are creating and processing. There are many
aspects of information security, ranging from physical access to
ensuring that the information has not been changed in any way.
"The only secure computer is one One of the most high-profile threats to information integrity is
that’s unplugged, locked in a safe, the computer virus. Surprisingly, PC viruses have been around
and buried 20 feet under the for two-thirds of the IBM PC’s lifetime, appearing in 1986. With
ground in a secret location...and
I’m not even too sure about that global computing on the rise, computer viruses have had more
one.” visibility in the past two years. In fact, the entertainment industry
Attributed Dennis Huges, FBI has helped by illustrating the effects of viruses in movies such as
“Independence Day”, “The Net” and “Sneakers”.
Note that computer viruses are also found on Macintoshes and
other platforms, but in this book, we will focus on PC viruses.
The topics we will cover are:
• what a virus is
• the evolution of the virus problem
• viruses on different operating systems
• solutions to the virus problem
• how Norman Virus Control products help
What is a virus?
The terms “computer virus” and “virus” are used very loosely in
everyday conversation and have become synonymous with
“trouble”.
A virus is usually not something that creates cool screen effects
and enables you to hack into Pentagon. The “Launching virus”
screen as seen in Hollywood movies bear no resemblance with
real life viruses. In reality, a virus infection is most often
invisible to the user. The machine may slow down a little. Some
programs may be unstable and crash at irregular intervals, but
then again that happens ever so often on clean systems too.
Still, some viruses have some sort of screen effect. The Windows
virus “Marburg” fills the desktop with red circles with a white
“X” inside”. A couple of viruses will make desktop icons escape
the mouse cursor. Such effects are not particularly common,
since they expose the existence of the virus.
In order to explain such vexing programs, we will need to look at
what programs really are.
What is a program
A program is a recipe for a computer’s behavior. Now,
computers do not read these things as we humans do. They
cannot understand free text messages – instead they have to rely
on numbers, because computers are really only glorified
calculators. For example, let’s look at the instruction for “do
nothing” in ordinary Intel processors (yes, there is an instruction
for that) – it’s the number 144. If the number 144 is translated
into binary it can be written as 10010000 – which physically
means voltage on, off, off, on, off, off, off, off in wires going into
the processor.
When a program is run on your computer, what happens is that
the operating system, for example Windows, reads the program
What is residency
“Residency” is a term you will come across far and wide in this
book. It means “active in memory”. A resident program is a
program that exists in the computer’s memory for an extended
period of time. The term was more relevant in the DOS heyday,
when most programs were non-resident – i.e. they did what they
were supposed to do and died. In the Windows world, however,
it’s fair to say that most programs are resident. They stay active
until you close them.
Virus
Viruses require a host, and their goal is to infect other files so
that the virus can “live” longer. Some viruses perform
destructive actions although this is not necessarily the case.
Many viruses attempt to hide from being discovered.
Replicates?
Yes. All viruses make copies of themselves, infecting boot
sectors, programs, or “data files” as the opportunity arises.
Worm
A host is not required, although one in some cases may argue
that a worm’s host is the machine it has infected. As such, some
researchers define worms as a subtype of viruses. In the
beginning worms were considered to be mainly a mainframe
problem. This changed after Internet became widespread; worms
quickly got accustomed to the Windows operating system and
started to send themselves via e-mail, IRC, and other network
functions. In addition we have lately seen a re-emergence of the
UNIX-based worms, which exploit security holes in the different
flavours of UNIX.
Replicates?
Yes. A worm makes copies of itself as it finds the opportunity.
Hoax
A hoax is a chain letter, typically sent over e-mail, which carries
false warnings about viruses or trojans. This causes well-
meaning users to send the warning on in the belief that they are
doing other users a favor. Often such warnings apparently stem
from well-known companies and organizations, but this is not the
case. Hoaxes may also contain other messages that are supposed
to trick people to send the message on, for example they will
offer money or a cell phone as a reward for forwarding the
message to friends.
If you receive a warning about a virus, do not pass the warning
on to other users! This rule applies even if the virus actually does
exist, and applies doubly if the warning asks to be sent on. It
whips up anxiety and increases the workload.
Replicates?
No, not by itself. They trick the user into making copies instead.
Macro virus
Macro viruses infect data files, or files that normally are
perceived as data files, like documents and spreadsheets. Many
“data file types” have the possibility to include instructions along
with the normal content – f.ex. Microsoft Word files can contain
instructions that tells Word how to show a particular document,
Boot virus
Boot viruses infect boot sectors of hard drives and floppy disks.
These are not able to infect over networks.
Multipartite virus
Multipartite viruses infect both executable files and boot sectors,
or executable files and data files. These are able to infect over
networks.
You may also have come across terms like “polymorphic”,
“stealth”, and “encrypted”. These are not types of viruses per se,
but rather methods that viruses use to disguise themselves from
anti-virus products.
The next sections describe binary, script, macro, and boot viruses
more thoroughly.
The pure prepending virus may simply place all of its code at the
top of your original program. When you run a program infected
by a prepending file virus, the virus code runs first, and then your
original program runs.
Macro virus
Since the introduction of the first macro virus in August 1995
and until quite recently, this virus type has been the fastest
growing category. The first time we discussed this phenomenon
in this publication, in January 1997, the number of known macro
viruses was 100. Some four years later, Norman had identified
more than 8,000 macro viruses, and the number is still growing.
Even though bigger threats have emerged since the heyday of the
macro virus, the problem still exists and cannot be ignored.
How it works
Traditional file viruses do not attempt to infect data files, for data
files are not an ideal ground for replication. That is, one does not
“run” a data file one “reads” and “edits” a data file. However,
in the past few years, organizations have been building upon
open systems, in which data is shared more readily. This in turn
means that there is little security. Macro viruses take advantage
of the fact that many applications now contain macro
programming languages. These languages allow users (and
virus authors) more flexibility and power within the application
than ever before, and in fact convert what used to be data files
into programs. Often macro viruses are not detected early
enough because many users are not familiar with the nuances of
macros. As a result, macro viruses have an infection rate much
higher than traditional file and boot viruses.
In the beginning, the most targeted macro programming
language was WordBasic, the language within early versions of
Microsoft Word. Later, the predominant macro programming
language used in viruses became Visual Basic for Applications,
or VBA. This programming language is shared by a lot of
applications – Word, Excel, Access, PowerPoint, Project, Visio
and many others.
MS Word
By far the most common macro viruses have been written for
Microsoft Word. This is partly because Word was the first
application to be riddled with macro viruses, but also because
Word documents are exchanged more frequently than any other
file type. The first Word macro virus, WM/Concept.A was
created in the middle of 1995 and was quickly one of the most
widespread viruses in the world - in spite of the fact that it
contained no mail-spreading functionality that became popular
towards the turn of the century.
MS Excel
It did not take long after the first Word Macro virus before the
first Excel virus appeared: XM/Laroux.A. This was an event that
was expected, as the techniques necessary to create such a virus
are the same as for Word macro viruses.
The difference between the first viruses for Word and Excel is
that viruses for Word were written in WordBasic, whereas
viruses for Excel were written in VBA3 (Visual Basic for
Applications version 3). The format was different, and the
macros were not stored inside the spreadsheet (viruses for Word
6/7 are stored in the Word document), but in separate streams.
This technique complicated detection, identification, and
removal.
Macro viruses for Excel can sometimes pose a bigger threat than
Word viruses, because of the possible practical implications.
Imagine that a macro virus for Excel multiplies a certain cell by a
factor 10 and that this particular cell specifies your salary.
Definitely not the end of the world, but what if this cell was
divided by 10?
These are minor inconveniences compared to similar changes to
calculation formulas for estimating the strength of concrete for a
Boot viruses
Boot viruses infect System Boot Sectors (SBS) and Master Boot
Sectors (MBS).
The MBS is located on all physical hard drives. It contains,
among other data, information about the partition table
(information about how a physical disk is divided into logical
disks), and a short program that can interpret the partition
information to find out where the SBS is located. The MBS is
operating system independent. The SBS contains, among other
data, a program whose purpose is to find and run an operating
system.
Because floppy diskettes are exchanged more frequently than
program files boot viruses are able to propagate more effectively
than file viruses.
A bootable diskette
When a floppy disk is formatted, a System Boot Sector is
created. The diskette can have two functions: contain program
files and data files and/or be a bootable diskette.
Until 26 April 1998 it was true that viruses could inflict serious
damages on software, but not on hardware. On this particular
day, the virus W95/CIH.1003.A struck for the first time. The
victims had to replace the flash BIOS chip, and even (especially
on laptops) the PC’s motherboard. In the months to follow, the
CIH virus was reported in the wild from most parts of the world.
It now exists in a heap of different variants, some triggering on
the 26th of the month.
to the fifty first entries in the user’s address book. A delicate side
effect was the involuntary distribution of documents to others.
Word documents quite often contain sensitive or semi-sensitive
information, so the damage because of this spread pattern may
have been substantial.
attention when you read the mail, the file may easily be mistaken
for an original uninfected file.
A grim consequence of this trick is that personal and/or
confidential information may be sent out unintentionally. The
worm doesn’t care whether it sends an innocent memo or
business-sensitive financial information. We have experienced
that very personal letters from infected users have arrived in our
mailbox. This demonstrates the hazard of today’s computing—
even your own hard disk can be exposed for everyone to see.
Sensitive information should always be encrypted and preferably
stored on a removable media such as floppies or CDs.
book. Many users accept this, either because they don’t read the
license information, or because they don’t care. In this manner
the software spreadsfar because it has permission by the user to
do so.
It is advisable to read all license agreements carefully so that you
do not get inadvertently caught in such schemes.
1. Steve R White, Jeffrey O Kephart and David M Chess, ‘The Changing Ecology of Computer
Viruses’ Proceedings of the Fifth International Virus Bulletin Conference, Brighton, UK, 1996.
MS-DOS
Since the macro viruses that we have seen to date infect data files
generated from and read by Windows applications, macro
viruses are not a problem on MS-DOS-only machines.
Traditional file viruses and boot viruses prosper in MS-DOS
machines because MS-DOS has no inherent security features.
Viruses, therefore, have free rein to infect memory, and program
files as described in “Binary file virus” on page 14.
Windows
When Windows was introduced, users had to change the way
they interacted with their computers. The images on the screen
were more colorful, navigating around in a program was more
intuitive, and the prospect of being able to switch tasks without
exiting an application was very enticing.
Since DOS ran “underneath” Windows 3.x, file viruses were able
to infect machines that ran Windows, but their lifespans were cut
short. In general, file viruses are able to infect Windows
executables, but the executables then do not generally work
properly. Impatient users would either replace the executables, or
if they were frustrated enough, reinstall Windows. This was
enough to cause the demise of the traditional file virus. In
addition, the structure of the executables in Windows 3.x is more
complicated than DOS and even Windows 9x/NT executables,
and memory has in some respects better protection. Viruses
under Windows 3.x therefore never became the nuisance as they
have proved to be under newer Windows versions.
Macro viruses and boot viruses, however, have not suffered the
same fate. To date, macro viruses have been written to target
Windows applications, and therefore the presence of Windows is
required. Combining the wide acceptance of Windows with the
fact that macro viruses infect data files rather than program files
(see “Macro virus” on page 19) has led to six macro viruses
being amongst the ten most common viruses overall.
The actual booting process on a Windows machine is no different
than on a DOS-only machine. Therefore, boot viruses have not
been hindered by Windows, and they continue to propagate by
infecting hard drives, going memory resident, and then infecting
floppy disks.
OS/2
As mentioned above, OS/2 is not as widely used as Windows and
other Microsoft operating systems. Because of the way that OS/2
was designed, however, it is still susceptible to non-OS/2-
specific viruses.
Unlike Windows, MS-DOS does not run “underneath” OS /2.
OS/2 is a powerful 32-bit operating system that supports DOS
applications, Windows applications, and native OS/2
applications. In order to run DOS applications, OS/2 furnishes
VDMs (virtual DOS machines). As the name suggests, VDMs
“look” like DOS to DOS programs. Therefore, an infected DOS
program can infect other DOS program files within that VDM,
but not DOS programs in other VDMs. The newly infected DOS
program file can then continue infecting other program files
which might be started in VDMs in the future. So the infection
path continues.
If Windows applications which include macro programming
languages are run on an OS/2 machine, then the OS/2 machine is
equally as susceptible to macro viruses as a Windows machine.
Again, since the booting process is the same on IBM-compatible
machines prior to the operating system being loaded, boot
viruses can infect OS/2 machines. OS/2 handles diskettes
differently than DOS and Windows so the likelihood that the
boot virus will propagate after it has infected the hard drive is
lower on an OS/2 machine than on a Windows or DOS-only
Windows 95/98/ME
Windows 95 was launched at a time when the Internet became
public property. Today the world wide web is available for
everybody, not just for the seasoned user. Even though the
majority of PC users welcome the Internet, e-mail, and chat
programs, the flip side is a huge playground for virus makers,
sometimes referred to as the Internet terrorists. The widespread
use of these facilities has contributed to manifold the propagation
of viruses under Windows 9x/ME.
Unlike Windows and DOS, Windows 95/98 is marketed as
having built-in security features. Unfortunately, such features are
not robust enough to safeguard Windows 95/98 against viruses.
In fact, the first virus written especially to target Windows 95
(the Boza virus) emerged late in 1995. Furthermore, Windows
95’s workgroup networking environment has no file-level
protection and therefore can potentially lead to increases in virus
spreading.
After the rather primitive Boza virus, the Windows 95/98 and
Windows NT/2000 viruses have increased in numbers and
complexity. Like in the DOS environment, the first viruses were
amateurish. Then they have become more technically complex as
the virus writers have gained experience. Some of the viruses
under Windows 95/98 and Windows NT/2000 spread by active
use of the network protocol. A temporary "climax" of complexity
and destructive capacity was reached with the CIH virus in 1998
(see page 24). Later viruses have become increasingly sly.
Windows 95/98 shares many characteristics with OS/2 with
respect to system architecture and interaction with viruses:
Windows NT/2000/XP
As discussed in the sections on OS/2 and Windows 95/98/ME,
Windows NT supports DOS applications, Windows applications,
and native Windows NT applications. Like Windows 95/98,
Windows NT is backwards compatible, and to some extent with
DOS and Windows. Despite the fact that NT’s security features
are more robust than Windows 95/98’s, file viruses can still
infect and propagate within Windows NT. DOS applications run
in separate VDMs (virtual DOS machines), and file viruses can
function within the VDM. Some DOS file viruses might not
work in the intended fashion under NT, but there is little about
NT’s security that prevents file viruses from infecting. NT has a
feature called System File Checker (SFC), but that can be
bypassed.
As with Windows 95/98, Windows NT supports applications that
contain macro programming languages, making NT as
vulnerable to macro viruses as old Windows machines.
Because Windows NT machines boot the same way that DOS
machines do (up to the point at which NT takes over), boot
viruses are able to infect NT hard drives. However, when these
boot viruses attempt to go memory resident, they will be stopped
by NT and therefore be unable to infect floppies. In effect, this
stops the infection path, but the user must still deal with any side
effects that the boot virus may have on the system — destructive
payloads or manhandling NT’s boot area in such a way that NT
refuses to load.
Some viruses target Windows NT directly. The W32/Funlove
and W32/Bolzano viruses undermine the NT security handling,
and the recently discovered NT/CodeRed series of viruses
exploit security holes found in software that runs exclusively on
NT.
Establish routines
Unless organizations and single-users have established internal
routines for data handling, the chance for running a virus-free
computing environment is not likely to succeed. We have seen
that when strategies and routines for data handling are initiated at
management level, the organization is less exposed to virus
infections. And when they occur, routines make it easier to root
out the infected files before they spread.
Anti-virus solutions
When people think of anti-virus solutions, they normally think of
scanners. Scanners are the most readily available type of anti-
virus solution, but they are not the only type.
It’s perhaps best to think of anti-virus solutions in terms of:
• what is required to detect the virus
- generic methods
- specific methods
and
• when the virus is detected
- prior to the attempted infection
- after the infection
A virus can be detected using either generic methods or specific
methods. Generic methods look for virus-like behavior rather
than specific viruses. As a result, even new viruses can be
detected, and there is little need for frequent updates to the tool
that is being used. Because generic methods look for behavior
rather than specific viruses, the name of the virus is normally not
given. Instead users are simply warned that a virus is likely to be
present. Some shy away from this method because it can give
false alarms.
Examples of generic detection methods are:
• checksumming and integrity checking
• heuristics
• decoys
• behavior blocking
Specific methods, on the other hand, rely on having prior
knowledge of the virus. In this case the tool is able to both detect
that the virus is present as well as identify it. As a result, frequent
updates to the tool are necessary. Most users like to know what
they’re “up against” if a virus is found, and the best way to do
that is to determine the exact nature of the beast. For this reason,
many users prefer this method, but they do not ultimately
appreciate how often the tool must be updated.
Examples of specific detection methods are:
• on-demand and scheduled scanning
• on-access (real-time) scanning
Note that the methods above are not always specific – heuristic
methods are usually implemented as parts of on-demand and on-
access scanning.
An equally important consideration is when the virus is detected.
All users would probably agree that the ideal situation would be
to prevent viruses from continuing to infect, and the next most
ideal would be to identify those areas that have already been
infected.
Sandbox
About Sandboxing
In the paragraphs below we’ll take a closer look at the sandbox
concept, and how it’s implemented. A major challenge is to
integrate the new technology in the product without slowing
down scanning speed, for example.
Industry facts
Virus statistics
“99,67% of companies surveyed experienced at least one virus
encounter during the survey period. 51% claimed they had at
least one “virus disaster” during the 12-month period before they
were surveyed.”
! Source: 2000 Computer Virus Prevalence Survey,
IICSA.net, October 23, 2000
General Statistics
“Today, 45% of all corporate information and ideas are stored in
an organization’s email system.” denote
! Source: SC Magazine, August 2001
Financial Statistics
“Including hard and soft dollar figures, the true cost of virus
disasters is between $100,000 and $ 1 Millon per company.”
! Source: Computer Crime & Security Survey, Computer
Security Institute, March 12, 2001
NVC version 5
The product was designed from scratch, emphasizing
transparency, reliability and ease of use. Some key objectives
were defined, including:
• Invisibility
• Scalability
• Accountability
• Automatic support and maintenance
The final design is the result of a philosophy that in many ways is
very different from the mainstream virus control products.
Certification
Norman Virus Control 5 is certified by West Coast Labs with the
Check Mark level 1 certification, and ICSA labs certified for on-
access and on–demand antivirus product.
Awards
Index Decoys 44
—D—
Diskette, bootable 23
DOS 23
DOS BAT language 18
—E—
Embed 20
—Symbols—
Evolution of the virus problem 35
/S 24 Excel virus 21
—Numerics— —F—
32-bit 38 FAT 39
File allocation table 39
—A— File virus 14
Appending virus 17
—H—
—B— Heuristics 44
Basic Input/Output System 23 High performance file system 39
BBS 35 hoax 12
Behavior blocking 44 How many viruses 32
BIOS 23 HPFS 39
Bomb
logic 12 —I—
time 12 In the wild viruses 33
Boot virus 19 In the zoo viruses 33
Boot virus, how it infects 24 Information security 7
Bootable diskette 23 inserting virus 16
Booting process 23 Integrity checking 44
Boza 39 Internet 35
Bug 12 Introduction 7
Bulletin board system 35 IRC scripts 18
ITW 33
—C— ITZ 33
chat programs 39
Check-summing 44 —J—
Chess, David 35 JavaScript 18
CIH 24, 25 JScript 18
CodeRed 26, 31 Jump 17
companion 14
Concept.A 21
—O— —T—
Office 2000 22 Time bomb 12
Office XP 22 Trojan 12
OLE 20 Trojan horse 10
On-access scanning 44
On-demand scanning 44 —U—
Operating systems, viruses on 36
UNIX shell script 18
OS/2 23, 38
Overwriting virus 14, 15
—V—
—P— Variant 32
VBA 19
PC 7
VBA3 21
POST 23
VBA5 22
Power On Self Test 23
VBA6 22
VDM 38 CodeRed 26
viral 47 Sircam 28
Virtual DOS machine 38
Virtual Machine 48
Virus
appending 17
boot 19
boot, how it infects 24
Boza 39
CIH 24
Concept.A 21
evolution 35
file 14
Friends Greetings 30
how many 32
in the wild 33
in the zoo 33
Klez 29
Laroux.A 21
Lehigh 32
LoveLetter 27
macro 19
Melissa 25
most common 38
Nimda 27
on different operating systems 36
overwriting 14, 15
prepending 14, 16
solution 42
Virus Bulletin 46
Virus, what it is 8
Visual Basic Script 17
—W—
W32/Elkern.C 30
WAN 35
White, Steve 35
Wide area network 35
Windows 23, 37
Windows 95 39
Windows 9x/ME 23
Windows NT/2000 23
WordBasic 19, 21
Worm 10
w w w. n o r m a n . c o m