|
Softpanorama
(slightly skeptical)
Open Source Software Educational Society |
May the
source be with you,
but remember the KISS principle ;-)
|
Malware Defense History and its Secrets
(An Unorthodox Approach to the History of Malware Defense)
by Dr. Nikolai Bezroukov.
Skeptical Foreword
The preoccupation with computer "hacking"
is a way for physically unattractive males
to enter the mainstream of society.
Anonymous
Viruses are to a certain extent a byproduct of Microsoft’s dominance in
personal computers. MS-DOS, the first mass produced operating system for the
first mass produced computer, is amazingly virus friendly. Essentially each new
generation of computers leads to the creation and widespread adoption) of
certain new types of programs. Here, Microsoft certainly made a significant
contribution and it’s not accidental that among several new widespread programs
that came to light, due to the PC revolution, are computer viruses.
I do not want to give an exact definition, but viruses generally need to
replicate and attach themselves to other executable programs or executable
content (scripts that may be part of the document or e-mail). Depending on the
method of replication there are several types of virus -- boot viruses, file
viruses, macro viruses and mail worms (actually worms are distinct from viruses,
but very few people care; we can think about network propagation that is
characteristic to the worm as an additional replication method). A virus does
not need to belong to a single type: mixed, multi-environment viruses (for
example boot+file, macro+file, macro+worm) also exist.
Corporate AV protection became a branch of the software industry with a lot
of vendors trying to hype and sell (or sell and hype) different antiviral
products to corporations as well as to and the unsuspecting public. There are
several annual conferences devoted to this problem, and in each up to a dozen
vendors with anti-virus (AV) products are usually present.
The history of AV software closely corresponds to the history of viruses and
worms themselves. It can be viewed as consisting of the several overlapping stages:
- Boot and file viruses (1988-1996). Microsoft DOS was and early
version of Windows were the most virus friendly OSes available. First
of all due to their mass deployment, but not only because of that. Almost until
1996 when macro viruses appears and started of threaten Microsoft bottom line
it did absolutely nothing to make Windows more secure. No attempt of patching
major security holes present in its DOS and early Windows were undertaken as
they might break compatibility with old software.
- Macro viruses (1996-2000). This period was very interesting as AV
vendors proved to be completely unprepared to the new threat (the situation
that will repeat itself in the future many times). Please remember that in 1995-1996
it took almost a year for AV vendors to (more or less adequately) react on the
Concept macro virus. Each time a relatively new threat arise, AV vendors fall
far behind the regular upgrade cycle. Before that the value of AV products for
Ms Word macro virus protection was the same as the value of a simple grep-style
search utility, available for free from any good file repository ;-).
In late 90th Microsoft started to understand that native Office formats are
insecure and that can badly affect the revenue stream. So the company made some
improvements in Office 97 and especially in Office 2000. But it was too little
and too late. See
Note on virus
paranoia.
- Mail viruses and worms (1998-2004). Here Microsoft was in the game
again and managed to create a few new category of mail worms (due to a simple
and stupid decision of hiding the extension in files by default): "double extension
attachment" worms and Trojans ;-).
- Network viruses and worms (2001-present). This is a pretty new phenomena
although in the past there was Morris worm, which is the oldest network worm
known. Paradoxically it was written for Unix. Windows infection by network worms
stated with
Code Red ( July 16, 2001),
SQL Slammer (Jan, 2003),
MSBlaster (Aug,
2003);
Sasser (Apr 30, 2004) and
Zotob (Aug 17, 2005). Network works are probably
in decline now with the last one major incident happen more the a year in
the past. Many organizations blocked TFTP protocol outside of selected networking
devices as the proactive protection against copycats and now worms need to provide
its own reliable transmission protocol that negatively affect minimal size.
Also law enforcement is more vigilant now and chances to go to jail for unleashing
the worm are very real.
- Spyware (2002-present). It is discussed on
a separate page. Looks like they are now in
decline after several lawsuits and Microsoft release beta release of their very
effective, free and automatically undated via Windows Update
Windows Defender (currently in beta 2, but from the very beginning it was
actually a production quality software the Microsoft bought with the
antispyware company Giant Company Software in 2004)[PCMagazine2004]
:
Microsoft has purchased Giant Company Software of New York, which makes
software to detect a common form of malicious software programs known as
"spyware," the software giant says.
The Redmond, Washington, software company would not
say how much it paid for the 10-person company, but says it plans to use
Giant's technology to give Windows customers a new tool to detect spyware
running on Windows systems, according to Gordon Mangione, corporate vice
president of security products.
Microsoft plans to release a free evaluation version
of the software within a month that will run on Windows 2000, Windows XP,
and Windows Server 2003 systems, Mangione says. The company will use that
beta software release to collect and evaluate customer feedback on the product,
and make decisions about how it wants to distribute Giant AntiSpyware in
the future, he says.
- Rootkits (2006-present) If you system has rootkit installed often
only reinstallation of Ghost image is the viable solution. Rootkits are
probably the nastiest flavor of malware because it is designed both to provide
backdoor or other Trojan horse-style compromise and is stealthy. Such rootkits
as Hacker Defender, FU, HE4Hook, Vanquish, AFX now became parts of porno
spyware. If is also often propagated from "pseudo warez" sites the lure
naive users with downloads like Microsoft Office 2003, Adobe Photoshop and
similar popular programs. College campuses are especially hard hit.
I also would like to stress that viruses represent both a computer science
related problem and a social problem. So-called
virus paranoia (with virus hoaxes as
the most visible aspect of this problem), virus hype and the deception of the
public by virus writers, mass media and antivirus vendors are part of the social
dimension of the problem.
We can define several types of computer science research problems connected
with computer viruses:
- The analyses of possible attachment points and propagation methods of
computer viruses (vulnerability points): Viruses are a fairly generic
type of programs that attach themselves to another program. In principle a
virus can be written for any operating system (OS). But the vast majority of
known computer viruses were created for Microsoft operating systems (and some
popular applications) and exploits blunders or weak solutions in the design of
these system and applications (MS Word, Outlook and to a lesser extent Excel
and PowerPoint). Often they exploit architectural blunders in the design that
Microsoft could probably easily fix, if it care to. Generally viruses are much
more difficult to write for multi-user operating systems that have user-based
file protection mechanisms. For example in Unix any user except the
so-called superuser (called root in Unix) can write to only a very
small fraction of executables, documents and scripts available on a particular
computer. Most of these files are confined to few directories on the directory
tree of the system and often almost all of them are located in the user home
directory. The same is true for applications that assume that they can have
connections to a hostile environment (like Netscape Navigator or Internet
Explorer). In this case application developers take special measures to limit
exposure. Any such application does have its share of security holes, but they
are usually quickly fixed and thus are not very attractive as a playground for
virus writers.
- The pattern based analyses of computer programs. Detection
of a virus in a computer program can generally be considered as a pattern
recognition problem. Generic pattern recognition methods (even simple regular
expression recognition methods) can be fruitfully used for detection of
viruses. At the same time some viruses, called polymorphic viruses, try
to defeat these methods by making the body of the virus unique for each
infected file. Usually this is not enough to defeat pattern recognition
completely, but it does make it more difficult and some preprocessing might be
necessary before pattern recognition methods are applicable.
- The analyses of computer viruses. This is basically a branch of
reverse engineering and
includes the disassembly and reverse translation of the source code. This is a
very interesting problem because virus writers often use special methods to
make disassembly more difficult. For example they often dynamically
encrypt parts of the body of the virus with only a small sliding window
decrypted at any given moment of virus execution. The problem of disassembling
programs is often considered to be a "gray area" that borders on piracy. But
it has an undisputable justification and value in the case of the analysis of
criminal programs and viruses. Moreover, in case of viruses the notion of
copyright is seriously twisted if not reversed at all. Recently reverse
translation and disassembly became widely used for solving Y2K problems in
components that has no source code and some of these advancements can probably
be adapted for virus analysis.
- The epidemiology of computer virus infections. Computer viruses
are usually an operating system version (or in case of application-based macro
viruses a particular application version) specific. That means that
often the spread of the virus is limited to computers that have a particular
version of operating system of a particular version of application installed.
That also means that a virus life span is pretty tightly connected with a
lifespan of a particular operating system and/or an application. And it's not
surprising that a typical life span of a computer virus is only a couple of
years long. For example most of early macro viruses are unable to function on
the latest versions of MS Office. Very few viruses survive for more than a
decade and those which do survive are really very simple. for example many
boot viruses due when a change to FAT32 changed the structure of the boot
record. During the lifecycle the viruses progress through several phases: the
first is the initial undetected dissimulation (phase one); then virus enters
the mass discovery phase (phase two); after that -- so called mass
elimination phase (phase three, when most antivirus program detect and
eliminate the virus) and at last the virus enters a chronic period (phase
four). At this last stage of the lifecycle the virus is no longer widely
distributed, but still might survive on some computers, in archives and
especially virus collections, but new instances of infection became very rare.
Sometimes the speed of disappearance of virus into computer virus collections
is as impressive as its appearance. It looks like boot viruses are the
most long-lived and macro viruses are the most short-lived with file viruses
somewhere in-between (although famous Vienna virus is still works OK on
Windows 98 and NT DOS emulation box). The lifespan of viruses also
depends on complexity -- it's definitely longer for a very simple viruses and
shorter for a complex viruses -- but again on average it is probably less than
three years. The new version of OS usually means big problems for old viruses
as virus writers often use undocumented features of OS or access systems block
directly. The same is true for the application-based viruses.
- The anti-virus programs design issues. The are some promising and
underutilized approaches beyond the most popular "find and shoot" method that
is used in most commercial antivirus programs. Alternative methods proved to
be useful in minimizing exposure to viruses or even eliminating a class of
infections. for example signing of executables and macros is a very promising
technique that was never widely deployed. It's somewhat strange that despite
existence of several more effective methods most popular antiviral programs
are limited to so called virus scanners that try to detect the presence of a
virus using simple (or not so simple) pattern matching.
- The tools and methods for analyzing viruses. Contrary to popular
belief it is not that difficult for a programmer to analyze a virus using
debugger in a controlled environment and check the validity of information
supplied by anti-virus vendors. After all, getting one or more
otherwise unused PC is not a problem in any sizable organization.
Social problems connected with viruses are as interesting as computer-science
related problems.
- Virus hype and virus hoaxes. This is probably the most
visible problem. There is a lot of hype around computer viruses, so it is very
important to distinguish first hand information from second-hand information;
more or less true information from pure marketing hype. For example
information about versions of applications or operating system on which the
virus is able to spread is often concealed by AV vendors. Another widespread
myth is the myth about the huge number of viruses in existence. Numbers
supplied by anti-virus vendors are often misleading because the methods of
counting virus strains used by vendors are very imperfect. Often any
slightest modification is counted as a separate strain. In reality most of the
viruses can be considered to be variants of a small number of widely
distributed (core) viruses. More often than not properties of the strain can
be extrapolated with sufficient accuracy just form the fact that virus belongs
to a particular family. Moreover only a few viruses were able to achieve
global dissimulation. Often a virus is local to a region or country and
despite the availability of Internet never makes it to other parts of the
globe. So some viruses represent local, not global threat. I generally
recommend a very skeptical approach to the information provided by the
anti-virus vendors, especially as for the validity of virus distribution
information. For really successful viruses the AV vendor information is late
(otherwise they would not be that successful) and does not matter much. So
virus warnings are usually most relevant only for relatively unsuccessful
viruses and thus the threat is usually exaggerated. Moreover the
operating system dependencies or application version dependencies, if any, for
a particular virus are sometimes concealed by AV vendors to inflate the
threat. That makes the particular virus appear to be much more dangerous than
it really is.
- Sociology of virus writing. This is another interesting
problem. There is a popular saying that "Preoccupation with computer hacking
is a way for physically unattractive males to enter the mainstream of
society". This is especially true for virus writing, because in its
essence this is a purely status seeking activity. Contrary to popular
perception, virus writers generally are far from being gifted programmers. The
best of them are only "extremely average" (see for example
Mark A. Ludwig and his
The Giant Black Book of Computer Viruses) and a regular virus write is
usually simply weak. I would say that 80% are weak programmers with "supersized
egos". In 1990 the author coined the term "techno-rat" as a synonym for the
"virus writer" and that term seems to have proved its usefulness over the last
decade.
- Virus publications, collections and testing of virus products.
This is yet another problem that needs understanding. With availability of
Internet one can assume that the person writing computer viruses has not only
has the access to the source code of viruses, but also to the pro-virus
publications with some commentaries and discussions. Virus collections became
widely available and CD with virus collections can be bought from many places.
This wide availability of virus collections also means that people testing
anti-virus products often use the simplest way available -- counting how many
viruses from a particular collection is detected and disinfected properly. The
ability of a particular AV product detect slight mutations of the virus is
almost never checked. So pretty stupidly written, inflexible product can come
in rating higher that carefully engineered flexible product just because of
the number game. This number game is especially favored by Virus Bulletin
which also uses pretty strange ad-hos collection of viruses called "In The
Wild" (ITW). It has almost no connection of viruses that are really spread in
the wild. See my
review of VB97 for more details.
- Interaction between virus writers and virus fighters.
Paradoxically but one cannot deny the fact that AV industry and mainstream
press provides for virus writers an important status support.
One of points stressed in this book is that the defense should be multilevel
and one should not rely too much of traditional products from major AV
companies. For each category of viruses/worms the are several relatively unknown
methods that can provide a decent alternative or complement to the traditional
methods of anti-virus defense used in a corporate environment.
Let's start with a skeptical analysis of the role of Microsoft and AV vendors
play in this field.
Microsoft Role
Any serious researcher would agree that
the antivirus industry (as well as now newly minted antispyware vendors) is to a large extent a product of Microsoft. Of
course Microsoft was not a single reason, but due to its dominance and inability (or lack
of desire) to close some holes in Windows, until recently it played a major role in creating the industry...
Microsoft DOS was and early version of Windows in its various incarnations remains the most virus friendly/spyware
friendly OS available.
Almost until 2000 (and including Windows 2000) Microsoft did very little to patch security
holes. It actually created a few new -- for example as we now know all too well,
hiding the extension in files has had an interesting side effect, creating a whole
new class of "double attachment" worms and Trojans ;-). Also with new
networking capabilities new threat from RPC and other networking protocols
surfaced creating a new category of worms
network worms.
I would suggest that Microsoft definitely
could make the life of virus authors more difficult even taking into account
Windows architectural limitations. Until recently they just did not want to do
anything because it does not affect MS bottom line. With spyware and networking
worms the situation
is different. Currently Microsoft provides a free tool to fight spyware and
incorporates additional security mechanism in the future versions of Windows.
windows XP SP2 is more secure than windows 2000 and Longhorn will be more secure
then Windows XP.
Unfortunately malware is not only about architectural limitations and
security
weaknesses. Sometimes even advantages of Microsoft platform lead to creation of a new
class of worms. For example the fact that VBA/VBS became a standard macro
language in MS Windows environment and is used in MS Office let to the creation of a new type of
viruses -- macro viruses. Unix/Linux cannot have this class of viruses just
because applications available for Unix does not have a common macrolanguage.
they also have the problem with a tiny market share that prevents creating a
critical mass of available targets essential for any successful virus of worm.
In late 90th Microsoft started to understand that native Office formats are
insecure and that can badly affect the revenue stream. So the company made some
improvements in Office 97 and especially in Office 2000. But it was too little
and too late. See Note on
virus paranoia.
Similar situation repeated in mail. while Outlook proved to be a very good and
innovative in some areas scriptable mail client, Microsoft had recurrent problems
with the security of MAPI services and, especially, with the Microsoft Outlook implementation.
AV Vendors
While Microsoft Window has had and will continue to have vulnerabilities that
lead to creation of viruses and worms including some new types I would like to stress that antivirus and antispyware products should not be considered as the only
solution. They are partially solution partially a part of the problem for three
main reasons:
- The relevant information about the viruses/worms/spyware necessary for correct defense
is often is hidden or buried behind a smoke screen of FUD. For example, try
to find out on which versions of MS Windows a particular virus can replicate.
In most cases this is not an easy task and this information is often hidden by
AV vendors in order to secure a commercial advantage and reach the widest
spectrum of customers possible.
Next try to find out how
the virus detects its presence on the computer -- information that often can
be used for simple "home-made" vaccines.
That's why you should never rely of a
single vendor information. Try to correlate at least three description,
or, better, do some own controlled experiments to verify the data.
|
The sad truth about AV vendors is that they tend to
exaggerate the threat
and often withhold vital information about a particular virus
implementation
limitations from the users. |
- Most AV products are pretty primitive and buggy and are behind the
most prominent threats (for example all AV products were almost completely
useless during MSBlaster epidemics, the most successful network worm). Sometimes algorithms used in most
popular products are so outdated (for example in scanners), that they are
part of the problem, not the part of the solution due to the number of false
positives and additional load of PC due to on the fly scanning. My impression is that "on the fly scanners" in a corporate
environment are a hidden Trojan horse far more dangerous and disruptive then
any recent worm epidemics, and also slowing PC down two times or more
because the list of searchable extensions often includes RTF files, Access
databases or Excel spreadsheets ;-).
- The damage that some AV products ("on the fly" scanners) cause in desktop,
and especially server environment often overweight the benefits. On the fly
scanning has such a negative effect on I/O that working with a large Excel
spreadsheet and MS Access databases is best done with on-the fly scanning turned off. Yes, there are some Excel viruses (and sometimes
they can even propagate within an organization :-) , but none of them can compete with
the Trojan horse effect of AV products ;-). The damage from stupidly written
AV products far exceed damage from any Excel viruses. Those guys often outsmart virus
writers and ensure a lasting damage to the organizations that are too
fundamentalist about virus scanning :-). A simple
non-resident scanners can often be as effective as resident scanners for a
fraction of the cost (and damage). In a large organization the number of
problems (and helpdesk tickets) connected with side affects of Av scanners
often exceed number of problem coursed by actual virus infection by at least
one order of magnitude. In a sense current generation of virus
scanners are extremely inferior products and definitly represent a mixed
blessing.
- As the industry was built of hype and the most popular products might be "barking on the
wrong tree"; For example "enterprise level' virus signature
distribution often represent the most non-constructive approach to the
problem that introduced another half-baked solution (say F-secure signature
distribution) of pretty generic problem. I do not understand why any large
company are buying one vendor oriented, buggy and unreliable solution, when generic software distribution mechanism (or
even Netware login scripts) are pretty adequate for this type of problem.
Also the threat is often pretty specific (compare Ms.Blaster type of infection
with the multipart IRC worms like Muma). Using generic AV scanner is
less effective then distribution of worm specific "fighting module", which
can be created using Perl or other the scripting language in no time.
The set of viruses typical for a large corporation is pretty stable and for
a fraction of the cost it is possible to create "mini-modules" that
check for those viruses extremely efficiently and limit the usage of
particular Ac product to speriodic scans of the harddrive, the mode where it
can do much less damage in comparison with "on the fly" scanning.
- Low qualification and errors in judgment of some corporate
administrators who are responsible for the AV defense. Security
like a cleaning survives does not attract the brightest and most capable
programmers and administrators. More often then not, the responsibility for
AV defense one large company is offloaded to a person with no specific
knowledge or technical skills or even interest in his area. But such a
"placeholder" approach can backfire. First of all AV companies are notorious
for parasitizing on this ignorance of management in selling their wares. That is their
standard selling practice. At the same time the damage can be greatly
amplified by using a low quality AV product or stupid defense tactics
(especially virus paranoia.).
Often ignorant security admin are proactive in shutting down the whole
corporate network without real justification (due to low level of
understanding of the threat), thus serving as a perfect complimentary module
to popular viruses and worms. Sometimes when the threat is not well covered
by the existing scanner instead of quick deployment of a newer or custom worm specific
solution, the extension list for "on the fly scanners" is
changed in the most perverted way for the whole corporation (scan
everything, just in case, even text files). That just increases the
damage from the virus adding to it damage from incompetence.
Despite information overload about all kind of virus and worms, there are not
so many articles/books that are worth reading about computer viruses. Even in
old days of MS-DOS and file and boot viruses and Trojans one probably was better
off with reading a good book about MS DOS structure and BIOS programming than a
book about viruses. And this is still true in new dimensions of malware like
network worms.
In mid 1990-th when macro
viruses became prominent one would be better off reading a book about VBA
than all this 1largely misleading and conflicting information that AV vendors
distributed about macro viruses.
In 2000-2003 SMTP-based worms (miMail) and RPC-based
worms (MS Blaster) were completely missed by major AV products (and that explain
the level of epidemics they caused) and one probably can benefit from learning the basics of SMTP and
MIME as well as TCP/IP.
Now spyware and network worms came into the prominence and it require more memory and registry
knowledge.
And it is important to understand that with any new threat it is almost
guaranteed that AV
companies will be late comers to this field. The history confirms this
hypothesis pretty nicely: they always missed the treat by at least a
year and then try to sell half-baked solutions to unsuspecting customers. It is better to use products from
the companies who were first to understand the threat and who are not burdened
by 10 year of AV malpractice. for example for spyware protection Adaware is one of such products and it has free
version on its scanner. See more about spyware scanners at
special page For network
worms some hardening of the registry and enabling PC firewall might represent a
better protection then any AV product conceivable.
Funny, but changes in signature database of an antivirus scanner (when it
suddenly stars to detect some spyware/adware that it previous ignored) can produce an illusion of epidemics in large
corporations, discovering
cases that probably existed for months on corporate PC in one day
and creating some sense of urgency to fight this newly discovered mass infection. Don't
be fooled by such cases, they are just nuisance, not a real epidemic. Otherwise
you can face the corresponding chaos and damage
from dealing with too many cases of the "non vital" threat at once.
Again I would like to stress that at least a rudimentary understanding of
programming (now, especially scripting languages and VBA)
is a must for in depth understanding of malware including viruses, worms
and spyware. Corporate AV
specialists, who do not want or are unable to learn programming usually
cannot adequately react to new threats and can became more part of the problem,
then a part of the solution.
Please remember that in 1995-1996 it took almost a year for AV vendors to (more or
less adequately) react on the Concept macro virus. Each time a relatively new threat arise, AV vendors fall far behind the regular upgrade cycle. Before
that the value of AV products for Ms Word macro virus protection was the same as
the value of a simple grep-style search utility, available for free from any good file
repository ;-).
Virus Bulletin used to provide decent analytical articles about complex
viruses, but they deteriorated and recently are not that interesting to read.
Also they are ridiculously expensive and too closely connected with Sophos (that
in 2003 acquired and partially destroyed ActiveState).
This information vacuum sometimes creates an impression that underground
virus-related publications are more reliable source of information about viruses
than AV vendors and AV-related press ;-). For example in case of Sircam worm no major AV vendors mentioned that it's cannot work on Windows 2000
and Windows NT and needs MAPI properly configured.
I would like to stress it again: any information from virus vendors should be viewed with skepticism
due to inherent conflict of interests of AV firms. For
people who are responsible for the corporate AV defense
it pays to compare several sources of information especially if you do not have
a sample of a particular virus and unable to analyses it yourself. Often AV
vendors overestimate the danger and do not mention a limitations of a particular
virus. Questions to be asked depend on the type of the virus. Generally it make sense to try to find an answers on the following
questions:
- Is it working on the version of Window that I (or my corporation) use ?
For example if a corporation is standardized on NT or Windows 2000
environment it makes sense to experiment and see if it is able to function/replicate in
this environment or is limited to a more popular Windows 9x series. It requires
just a
couple of PCs to do such an experiment.
- Does it require specific components or DLL to be present? Does it
depends of some not so common in certain environments features present (for
example Outlook installed or MAPI correctly configured). Does it uses some
obscure DLL or some other program ? Viruses are usually highly
specialized program and virus authors often test them on their own, pretty
idiosyncratic environment only; they usually do not test them in different
environments and definitely not on a typical corporate desktop ;-)
- How does the virus/worm detects it's presence the computer to avoid multiple
infection? Most Trojans, file viruses and worms can it be fooled by
creating a "fake" identification, by some stub or registry entry. Often this part
of the worm virus is
programmed in a very primitive way and that provides a possibility to block
the virus even without any AV programs using a "vaccine" approach.
For macro viruses/worms the questions to be asked include:
- Is it really working on the version of MS Office that I/my organization
use (most early macro viruses do not work with Office 2000)?
- Is it a specific mailer program or version of MAPI dependent ? Does
the virus/worm propagate in a particular version of messaging software? For
example if you use Netscape Messenger or Notes instead of Outlook as a mail
client, then Melissa represents much less danger -- you still can pass it to
your friends for forwarding a particular attachment, but that's it -- your
computer will never redistribute the virus automatically as was intended by
the virus author.
- Is it too buggy to propagate?
For mail worms additional questions are:
- Are the mail headers really random or can be easily filtered based
of "FROM", "TO", and/or "SUBJECT" fields using simple filters like those that
are present in Netscape Messenger (this was the case with Sircam and
Hybris (hahaha,
sexyfun) )
- Does the size of infected letter fall into a
certain range ?
- Can we block the worm based on extensions of infected attachments
(for example Sircam uses double extensions in infected files like dot.exe,
xls.pif, doc.lnk, etc.). It's a very bad idea to allow executable
attachment into corporate environment anyway, but sometime it's difficult to
block incoming .EXE attachment due to some stupid corporate subscription or
whatever. You can filter double attachments using
procmail or other tool. The corporation
can also switch to "OKEXE approach" (creation of special prefix (like OK
in this example) that is used for *all* executable attachments that are send
via external mail gateway and invoke batch file that run some AV program or
Perl script to make common sense checks and then renames it to a regular
extension).
The real problem here is that until recently Windows executables were not
signed (and macros also belong to executables -- they are just hidden in MS Word
document format) and thus were not protected against tampering with MD5
checksums or similar. Both NT and Unix needs MD5 checksums for executables
ASAP. Actually NT has such a capability (Authenticode) but it's not widely used.
It looks like Windows XP make some positive steps in this direction but I do not
know details.
|
All systems executables should be signed with MD5 based
signature
or similar and their integrity should be easily verifiable |
Do not jump into installing commercial AV tools each time you hear about a
new nasty virus. In most case free scripts run via scheduler or via Netware
login scripts (or similar mechanism) can be as good or even better. The same is
true for the protection from email worms on the gateway level, but here free
tools can serve complementary role; a commercial AV gateway filter has certain
advantages. See my Overview of VB’97.
Moreover in commercial environment the loss leader is not viruses, its AV
false alarms (or false positives as they are often called) -- despite
AV-vendors precautions they regularly appear and spoil the party. That
mean that AV programs are much more close to Trojan Horse than one might suspect
;-) One self-quote would help:
Each day, most cases in corporate environment
that are reported by customers that are not actual cases of virus infections.
They are false alarms or false-positives.
The main problem here is AV products. Paranoid
users and sometimes system administrators often blame on a computer virus
effects that they cannot understand/explain.
In the past the main course of false positives
in the corporate environment are such products as Inoculan, McAfee and
F-secure. The old version 4.0x sometimes recognized regular VBscript
program as MS Word documents and produce messages like "Infection:
'Macro.Word97.Class.eb' [AVP]. Very distressing experience if one hundred
remote and clueless users get this message in one day. Probably real virus
would be less frustrating ;-)
Usually file viruses and macro viruses are
reported as false positive, sometimes interesting combinations arise. For
example now obsolete F-prot 2.xx reported as infected any MS Word
document that was disinfected by corresponding version of McAfee. That was
very interesting experience if one part of the corporation uses F-prot and
other McAfee ;-)
Another interesting combination arise if false
positive detected but AV program unable to disinfect it and either renames it
or put is some directory. That's when AV program became a real 100% pure
Trojan Horse.
Inoculan is especially bad as it not only
reports about files as infected when they are not, but moves them to the
Infected directory. If configured that way Inoculan can be considered as a
sort of Trojan Horse and may prevent installation of the packages on the
network drive.
I do not want to go that far as to propose everybody move to Linux/FreeBSD
(although they are not ideal and are susceptible to certain type of viruses and
Trojans, they do provide a much better AV protection out of box than any flavor
of Windows). All I ask for is: please do not just jump and install some
over-hyped AV software package on Windows 2000/XP because a new virus
or worm was discovered -- usually that does not significantly increase the
level of your AV protection. Try to use built-in mechanisms first, specialised
tools second and generic AV scanners only as the last resort. the latter should
be used in of-line scanning mode, not in "on the fly" mode to minimizes negative
influences on other software. If you shoce to use "on the fly" protection use
minimal set of extentions.
Still as a successful new virus probably will use slightly
different approach, not foreseen by AV vendor and signatures are always slightly
behind the events, unless you use an automatic update system (and in this case
risk troubles if update is buggy) Av scanner does not provide too much
protection to count on. They are mostly cleaning tools for known threats. Understanding your environment is a better
goal and other tools can provide multilevel protection which is always more
affective that a single level, based on AV package.
|
Understanding your environment is a much more
important goal
than getting super AV protection. In large corporation all
attachments with executable extensions (and probably zip files with
names shorted then 10 letters) should be blocked on the mail gateway.
That is much more efficient measure against mail worms that any AV scanner upgrade or
signature distribution bonanza |
Often in a corpoate environemnt a lot can be done with adequate polities. If
for example all Word documents and executable should be zipped before sending
you can completly block correcponing attachments and thus diminih or eliminate
related threats.
Upgrade is also an intereting alternative, especially for home users. for
example Windows 200 users can benefit form upgrane to XP SP2. If
you are not ready for such a radical solution ;-) in any case one should upgrade to
Office 2003 that has better protection in Outlook against typical mail threats.
It is obvious that anti-virus vendors will always be playing catch-up with
the virus writers. Theoretically if anti-virus software updates were released
quickly and people instantly installed them desktop just patch protection might
be adequate. This is however impossible. The life cycle of a virus looks
something like (this a self-quote again):
- Virus is written, tested, possibly deployed on
a test network (but usually not debugged for every Microsoft OS in existence;
for example virus may not work on Windows 9x, if the only test platform was
Windows XP, or if it was debugged on Windows 9x, or on Windows 2000.
- Virus is released on a selected target
(university campus, Usenet groups, etc.)
- Virus (if "successful" in a biological sense)
enter the stage of epidemics and spreads like wildfire, possibly causing
damage (such as sending documents from folders on the hard drive, or even
wiping motherboard BIOS chips ;-). Generally the more damage the virus cause
the less changes are for its survival and the ability to reach the critical
mass.
- The first samples get to AV vendor (someone
notices a strange activity detect the virus and sends it to an anti-virus
vendor ). At this time the virus might not still reach the critical mass.
- AV vendor(s) analyzed, and possibly decompiled
a virus and updated their product's signature file. Typically the anti-virus
vendor share data with others, but they may or may not do this promptly.
Anyway at this stage getting a virus sample is not a problem.
- Press informs users about the threat and how
to fight it. The anti-virus vendors issue bulletins, make the update to the
first buggy solution, etc.
- Large ISPs and some large corporations
install updated signature files and implement other defense measures fort of
their mail gateways (or firewall in case of Ms.Blaster type of viruses)
then on the desktop Some large customers with decent professionals or
support contracts do the same, some have automated distribution systems for
the update, resulting in a rapid deployment of the fix.
- Even home users start catching the virus. This
is a start of a "chronic period" of the virus life when it still manage to
infect some machines but the number is shrinking....
- Environment (for example version of OS or
version of Office, etc) changes to the extent that the virus is no
longer is a viable threat. This is a clinical death. Complex viruses are more
sensitive to env. changes and thus generally die much faster than simple one.
Please note that with some tuning for most email worms spam filters which can serve
as a heuristic virus/worms protection tool. That means that right now no
home user should access his ISP POP account with plain vanilla message
client (like Netscape Messenger). One needs a spam filter either built as a POP
retrieval tool or (in corporate environment and for Using/Linux) using message
filter on the gateway level with additional spam filter installed. See
Filtering Mail FAQ
for more details.
Of course the volume of information about viruses and antiviral
programs is well beyond the capabilities of any single person. So despite the
fact that the author checked all the facts, one needs to access information
provided critically. It can and probably does contain errors.
This is an introductory corporative AV strategy book, but not a "for dummies"
AV book. This book presupposes some level of understanding of the virus problem,
assembler language and operating system and applications used by viruses. It is
partially based on my Russian language book Computer Virology that was
published in 1991, but I am too lazy to translate all this old material and this
book is considerably shorter and more superficial that the old one. Due to the
lack of objective/skeptical information about antivirus protection I feel that
it make sense to publish all my notes "as is". I just hope that some this
information and the angle of attacking the problem might be useful.
Dr. Nikolai Bezroukov
Webliography
Copyright © 1996-2008 by Dr. Nikolai Bezroukov.
www.softpanorama.org was
created as a service to the UN Sustainable Development Networking Programme (SDNP)
in the author free time.
Submit
comments This document is an industrial compilation designed and created
exclusively for educational use and is placed under the copyright of the
Open Content License(OPL).
Original materials copyright belong to respective owners. Quotes are made
for educational purposes only in compliance with the fair use doctrine.
Standard disclaimer: The statements, views and opinions presented on
this web page are those of the author and are not endorsed by, nor do they necessarily
reflect, the opinions of the author present and former employers, SDNP or any other
organization the author may be associated with. We do not warrant the correctness
of the information provided or its fitness for any purpose.
Last modified:
February 28, 2008