home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / hackersclub / km / library / hack / virii.txt < prev    next >
Text File  |  1998-03-25  |  17KB  |  397 lines

  1.       ┌─════════════════════════════════╗
  2.         │                                 ║
  3.         │    What You Should Know About   ║
  4.         │        Computer Viruses         ║
  5.         │                                 ║
  6.         │         by BlenderHead          ║
  7.         │                                 ║
  8.         └─────────────────────────────────┘
  9.  
  10.  
  11.  
  12.  
  13.  
  14.    Q: Why should I learn about viruses??
  15.    ═════════════════════════════════════
  16.  
  17.  
  18.  When people talk about virii (a subject dear to my heart) it is common
  19.  for people to treat the virus, the trojan horse, the logic bomb, etc.
  20.  as if they were one and the same. Now, personally, I find the idea
  21.  insulting and I am sure that many virus writers would feel the same
  22.  way. Time and time again, I have seen the worthy name of VIRUS heaped
  23.  upon the ranks of such undeserving pranks as the common TROJAN horse.
  24.  
  25.  To think that the two are one and the same is fine, if you are the
  26.  common lamer that so often finds himself behind the computer screen.
  27.  To be unable to differenciate between a virus and a trojan is
  28.  perfectly acceptable for many. If you are entirely satisified with
  29.  knowing just enough to be able to start your computer and run your
  30.  application, then for heaven's sake don't read this article. In fact,
  31.  why don't you go buy a MacIntosh?
  32.  
  33.  As for the rest of us, we realize that there IS a difference. And in
  34.  order to prevent ourselves from looking like clueless idiots, we
  35.  strive to learn the differences between the virus and the trojan horse
  36.  and what each one is and is not capable of.
  37.  
  38.  What advantage is gained by learning of such things as a computer
  39.  virus? The person who is well-informed in such matters gains many
  40.  advantages over one who is not.
  41.  
  42.  For one, he will quickly notice when his system shows signs of virus
  43.  activity and he will catch it before it has had time to do significant
  44.  damage to his system. Since he will have taken the proper precautions
  45.  in advance he will be able to quickly restore his system system while
  46.  suffering  minimal loss.
  47.  
  48.  Since he knows what a virus can and can't do, he won't believe every
  49.  quirk in his hardware or software is actually the result of some
  50.  devious virus. He will not be lulled into the false sense of security
  51.  provided by such worthless products as CPAV or NAV. He will have the
  52.  wisdom to look a trojan horse 'in the mouth'.
  53.  
  54.  When it comes to virii, people are inclined to believe alot of stupid
  55.  shit. Let's face it, people are inclined to believe alot of stupid
  56.  shit period, but when it comes to virii, they tend to get even
  57.  stupider■
  58.  
  59.  
  60.    ───────────────────────────────────────────────────────────────
  61.  
  62.  
  63.               ┌══════════════════╗
  64.               │                  ║
  65.               │ Types of Viruses ║
  66.               │                  ║
  67.               └──────────────────┘
  68.  
  69.  
  70.  
  71.  
  72.    Q: What is a virus?
  73.    ═══════════════════
  74.  
  75.  a VIRUS is a small, executable program with the ability to replicate
  76.  itself by adding its code to that of a host program and/or the system
  77.  area of a hard or floppy disk. The user is generally unaware of the
  78.  actions of a virus as it replicates and usually only becomes aware of
  79.  its presence when the virus 'activates', which it does according to a
  80.  given set of conditions and at which time it is often too late.
  81.  
  82.  However, once the user knows what signs to look for, it can be very
  83.  obvious when viral activity occurs. More on the signs in a little bit.
  84.  Let's discuss the difference between viruses.
  85.  
  86.  Every virus has its own personality. Viruses differ in many ways, each
  87.  having its own unique properties that make it different. Here are some
  88.  ways that viruses differ from each other:
  89.  
  90.     ■ SIZE - A virus can be as small as 66 bytes or less, or as large
  91.       as 4096 bytes or more. Compared to most computer programs a virus
  92.       must be very small.
  93.  
  94.     ■ METHOD OF INFECTION - A virus can infect the host program in
  95.       different ways. Below are three methods commonly used. They are
  96.       by no means the only ways, but they are the most common. It is
  97.       possible for a virus to use one or more of these methods.
  98.  
  99.       ■  OVERWRITING - When a virus infects using this method, it will
  100.          simply write a copy of itself over the begining of the host
  101.          program. This is a very simple method and is used by more
  102.          primitive viruses. An infected file has been destroyed and
  103.          must be restored from a backup disk. Overwriting tends to make
  104.          the user suspicious becuase the host program no longer
  105.          functions. This method of infection causes no change in the
  106.          size of an infected program.
  107.  
  108.       ■  APPENDING - This method is a bit more complex. The virus
  109.          appends itself onto the end of the host program and also edits
  110.          the begining of the program. When the user runs the infected
  111.          program it will jump to the end of the program where the virus
  112.          is located, perform the functions of the virus, then return
  113.          and continue to run the host program. To the user, the program
  114.          is functioning normally. This method of infection causes
  115.          infected programs to increase in size.
  116.  
  117.          Some appending viruses are unable to tell whether or not
  118.          they have already infected a program and will continue to
  119.          infect the program hundreds of times, causing it to grow
  120.          considerably in size.
  121.  
  122.        ■ DISK INFECTORS - Other viruses will infect the boot record or
  123.          partition table. This is an executable area of the disk that
  124.          is automatically run every time you boot up from the disk.
  125.          This means that as soon as the computer boots up, the virus is
  126.          in memory.
  127.  
  128.     ■ TSR - A virus may or may not become resident in memory. If it
  129.       does go TSR, then its chances of infecting files are greatly
  130.       increased. Otherwise it can only do its stuff when an infected
  131.       program is run. If the virus is in memory it can infect files any
  132.       time it chooses. Partition table and boot sector infecting viruses
  133.       are always TSRs.
  134.  
  135.     ■ STEALTH - Some TSR viruses use a sophisticated technique called
  136.       Stealth cloaking. What this means is the virus will fool the
  137.       system so that everything appears to be normal.  When a user does
  138.       a directory listing the virus will intercept the disk read, and
  139.       alter the data so that the file sizes appear to be unchanged,
  140.       when in actuality they have increased in size.
  141.  
  142.       Boot sector infectors may use stealth so that when the user
  143.       attempts to view the boot record, instead of showing the actual
  144.       boot record, a copy of the old boot record is returned instead.
  145.       Because of stealth techniques it may be impossible to detect a
  146.       virus once it has become resident in memory. The only sure way to
  147.       check for a stealth virus is to boot from a clean,  write-
  148.       protected floppy, then scan the hard drive. It is a good idea to
  149.       prepare such a floppy disk ahead of time, and adding anti-virus
  150.       software such as Scan and F-Prot.
  151.  
  152.  
  153.    ■  ACTIVATION CRITERIA AND EFFECT- The other area that gives a virus
  154.       its personality is the activation criteria, or what makes it go
  155.       off. Some activate by the date, others activate when a certain
  156.       program is run, and other will activate when they can't find any
  157.       more files that haven't been infected yet.
  158.  
  159.       When a virus activates it will take a certain action. I will
  160.       refer to this as the activation effect. The efffect may be as
  161.       simple and harmless as displaying a message or as malicious as
  162.       trashing the victim's hard drive. Obviously, you want to find the
  163.       virus BEFORE it activates■
  164.  
  165.    ───────────────────────────────────────────────────────────────
  166.  
  167.  
  168.  
  169.  
  170.  
  171.    Q: What are the ways that I can catch a virus?
  172.    ══════════════════════════════════════════════
  173.  
  174.  
  175.  Just as with the AIDS virus, there is alot of bullshit concerning the 
  176.  conditions under which a virus may infect your system. A virus can
  177.  only be caught by executing a program that has been infected with a
  178.  virus or by ATTEMPTING to boot up from an infected disk. You cannot
  179.  get a virus by merely LOOKING at an infected program or disk. A virus
  180.  can infect just about any executable file EXE COM OVL SYS DRV BIN and
  181.  the partition table and master boot record of floppies and hard disks.
  182.  
  183.  Notice that above I said "attempting" to boot up from an infected
  184.  disk. Even if you attempt to boot up from A: and it tells you,
  185.  "Non-System disk" and then you boot from C: instead, the virus can
  186.  still be active if A: was infected. This is very important. It doesn't
  187.  have to be a succesful boot for the virus to get into memory. The
  188.  first thing it will probably do is infect C: drive. Then if you put a
  189.  new disk in A:, that will in turn be infected. That is why it is
  190.  important to keep a clean, write-protected floppy.
  191.  
  192.  
  193.  So, to sum it up:
  194.  
  195.    ■ You can catch a virus by executing an infected program, wether you 
  196.      realize the program was run or not. This includes overlay files, 
  197.      system drivers, EXE and COM files, etc.
  198.      
  199.    ■ You can catch a virus by ATTEMPTING to boot from an infected 
  200.      floppy disk or hard disk, without regard as to whether that 
  201.      attempt was succesful.
  202.      
  203.    ■ A cold boot will remove a virus from memory, a warm boot won't
  204.      necessarily do it. So press the button on your computer instead of
  205.      using CTRL-ALT-DEL.
  206.  
  207.    ■ You CAN'T get a virus just from looking at an infected disk or
  208.      file.
  209.  
  210.    ■ You CAN'T get a virus from a data file, unless it is actually an
  211.      executable and some other program renames it.
  212.  
  213.  So in order to keep yourself in the clear, always check any new
  214.  program for viruses before running it, and never leave a disk in the
  215.  floppy drive when you boot up■
  216.  
  217.    ───────────────────────────────────────────────────────────────
  218.  
  219.  
  220.  
  221.  
  222.  
  223.   Q: What are the signs that a virus is present?
  224.   ══════════════════════════════════════════════
  225.  
  226.  There are several things that may indicate the presence of a virus on
  227.  your system.
  228.  
  229.  1. Unexplained file growth in EXE and COM files may indicate an
  230.     appending virus.
  231.  
  232.  2. Programs that used to work now return with some type of error
  233.     message and fail to work at all. This may indicate an overwriting
  234.     virus. Some common messages are "Program to big to fit in memory"
  235.     or "Unknown Command" and other similar messages. Thes should make
  236.     you suspicious.
  237.  
  238.  3. Unexplained directory changes. If you execute a program and then
  239.     find that you are suddenly in a different directory, this may
  240.     indicate that a virus has been hunting for files to infect.
  241.  
  242.  4. A decrease in available system memory. You should know how much
  243.     memory is usually free on your computer. If this number drops, it
  244.     may indicate a TSR virus. This does not always work since some
  245.     viruses do not protect the memory they use.
  246.  
  247.  5. Unexplained ChkDsk errors. Stealth viruses will cause you to get a
  248.     CHKDSK error because they are altering the info before it gets to
  249.     CHKDSK. If you do a CHKDSK /F under this condition, it could CAUSE
  250.     considerable damage to the directory structure when in actuality
  251.     nothing was wrong in the first place.
  252.  
  253.  6. Unexplained disk access. If the floppy or hard drive begin to light
  254.     up all of a sudden for no reason, it could mean viral activity. It
  255.     could also mean that you are running a disk cache with staged
  256.     writes enabled.
  257.  
  258.  7. An overall slowdown in system activity. Programs may take longer to
  259.     execute than normal.
  260.  
  261.  
  262.    ───────────────────────────────────────────────────────────────
  263.  
  264.  
  265.  
  266.  
  267.  
  268.   Q: How can I protect myself against viruses?
  269.   ════════════════════════════════════════════
  270.   
  271.  There is one fool-proof positive method. Never run any program that 
  272.  isn't already on your computer and never use anybody else's disks. 
  273.  Unfortunately, that is practical. So what is the next best thing?
  274.  
  275.   ■ Backups - Make frequent backups of the files on your hard disk.
  276.     Remember that at any given moment you may lose your entire hard
  277.     drive and its contents. Do you have backups of all your important
  278.     files? Things like Phone directories and passwords are especially
  279.     hard to get back.   So be prepared for the worst.
  280.  
  281.   ■ Rescue Disk - Many programs such as TBAV and Norton Utilities will 
  282.     allow you to create a 'rescue disk', which is a floppy disk that 
  283.     can be booted from in an emergency. On this disk will be stored a 
  284.     copy of important system info that could be very hard, if not 
  285.     impossible to come up with manually. This includes a copy of the 
  286.     partition table, Master Boot Record (MBR), CMOS settings, and other 
  287.     important system info. 
  288.     
  289.     Also on this disk, you should store utilities that can be used to 
  290.     detect, clean, and remove viruses from your hard disk. This disk 
  291.     should be write-protected, and should be updated any time you 
  292.     make changes to your system.
  293.     
  294.   ■ Knowledge - Keeping yourself well-informed about how viruses work, 
  295.     any new viruses, and that kind of info is very important. Most of 
  296.     the computer using public is entirely ignorant when it comes to 
  297.     viruses. By readin this article, you have already made a big step 
  298.     at reducing your odds of being hit by a virus.
  299.  
  300.   ■ AV Software - There are plenty of good Anti-Virus programs
  301.     available on the market. Most of the good ones are usually
  302.     shareware or freeware. Some are commercial. Many of the commercial 
  303.     ones are lousy, too. Using some of the less effective virus 
  304.     software can provide a false sense of security.
  305.     
  306.     
  307.    ──────────────────────────────────────────────────────────────────
  308.  
  309.                      ┌═══════════════════════╗
  310.                      │                       ║
  311.                      │  Anti-Virus Software  ║
  312.                      │                       ║
  313.                      └───────────────────────┘
  314.  
  315.  
  316.  
  317.     What NOT to use:
  318.     ════════════════
  319.  
  320.     The following are products that I feel are not up to par as far as
  321.     AV software goes. I would avoid using them if possible, opting for
  322.     some of the products in the following list. However, if these
  323.     programs are the only ones you can find, then they certainly are
  324.     better than nothing at all.
  325.  
  326.       ■ Norton Anti-Virus (NAV)
  327.  
  328.       ■ Central Point Anti-Virus (CPAV)
  329.  
  330.       ■ Dos v6.0 Anti-Virus
  331.  
  332.  
  333.  
  334.     What TO use:
  335.     ════════════
  336.  
  337.     These are some of the AV products that I DO recommend for you to
  338.     use. The more Anti-Virus software, the better protected you are. 
  339.     Allow me to quickly explain what a Heuristic Scan is. 
  340.     
  341.     Normally, a virus scanner will look for a 'signature', a series of 
  342.     bytes that occur inside the virus that can be used to identify a 
  343.     specific virus. A huruistic scan takes a different approach. It 
  344.     evaluates the code and looks for virus-like programming techniques. 
  345.     This technique enables the scanner to find new or unknown viruses 
  346.     and variations but also tends to cause more false positives and 
  347.     takes longer. It is a very useful feature.
  348.  
  349.  
  350.       ■ VirusScan - by MacAfee, Also known as SCAN. This is the
  351.         standard, and recognizes more than 1300 virus strains. This
  352.         program is readily available and offers frequent updates.
  353.         {Shareware}
  354.  
  355.       ■ F-Prot Anti Virus- by Frisk Software, I highly recommend this
  356.         program. It recognizes nearly as many viruses as SCAN and
  357.         recognizes trojan horse programs, as well. It has both a menu
  358.         driven and command line interface, huriustic scan, virus
  359.         database, and detailed descriptions. {Free for personal use}
  360.  
  361.       ■ Thunder Byte Anti Virus- This is a good package that does alot
  362.         of interesting things. It will create a rescue disk, is highly
  363.         configurable, does CRC test for changed files, and has an
  364.         adjustable heruistic scan. It will also allow you to replace
  365.         the bootstrap loader on your hard drive with a new one that
  366.         will perform an automatic CRC check upon bootup. This will
  367.         allow you to be instantly informed of any boot sector viruses.
  368.         {ShareWare}
  369.  
  370.       ■ Doctor Solomon's Anti Virus ToolKit - Although more expensive
  371.         than the others, this program has some interesting utilities.
  372.         It has "anti-stealth" technology, and an authorization TSR, and
  373.         a Certify TSR, which only allows you to run programs that have been
  374.         checked and had their CRC logged in. {Commercial}
  375.  
  376.  
  377.  ─────────────────────────────────────────────────────────────────────
  378.  
  379.  
  380.  
  381.  
  382.   Well, that's it for now. Now that we have covered the basics, that
  383.   will allow us to get into the more fun stuff next time, like how to
  384.   play with virues. See ya guys next time.
  385.  
  386.  
  387.  
  388.  
  389.       ╔═════════════════════════════════════════════════════════════════╗
  390.       ║  (714)871-2057         Digital Decay BBS        (714)871-2057   ║
  391.       ║               Bringing you the finest in Anarchy                ║
  392.       ║              340 Megs/ 5+ Megs textfiles/ 800+ virii            ║
  393.       ║                        24/7    2400/14.4                        ║
  394.       ║                            Call Now!                            ║
  395.       ╚═════════════════════════════════════════════════════════════════1/4
  396.  
  397.