home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Multimedia 3 / CD_1.iso / viruskil / tbav631 / tbav.doc < prev    next >
Text File  |  1995-01-06  |  314KB  |  7,747 lines

  1.  
  2.  
  3.      SECTION 0. INTRODUCTION
  4.           1. How to use the manual . . . . . . . . . . . . . . . . .     0 - 1
  5.           2. Overview of the TBAV utilities  . . . . . . . . . . . .     0 - 1
  6.  
  7.      SECTION I. INSTALLING TBAV
  8.           1. How to install TBAV   . . . . . . . . . . . . . . . . .     I - 1
  9.                1.1 Initial installation  . . . . . . . . . . . . . .     I - 1
  10.                1.2 Menu and command syntax . . . . . . . . . . . . .     I - 4
  11.           2. Configuration . . . . . . . . . . . . . . . . . . . . .     I - 6
  12.           3. TbSetup . . . . . . . . . . . . . . . . . . . . . . . .     I - 8
  13.                3.1. The Purpose of TbSetup . . . . . . . . . . . . .     I - 8
  14.                3.2. How to use TbSetup . . . . . . . . . . . . . . .     I - 8
  15.                3.3. Command line options . . . . . . . . . . . . . .    I - 13
  16.                3.4. While executing  . . . . . . . . . . . . . . . .    I - 15
  17.           4. TbDriver  . . . . . . . . . . . . . . . . . . . . . . .    I - 18
  18.                4.1. Purpose of TbDriver  . . . . . . . . . . . . . .    I - 18
  19.                4.2. Command line options . . . . . . . . . . . . . .    I - 18
  20.                4.3. Language support . . . . . . . . . . . . . . . .    I - 21
  21.           5. System maintenance  . . . . . . . . . . . . . . . . . .    I - 22
  22.           6. Network maintenance . . . . . . . . . . . . . . . . . .    I - 23
  23.                6.1. Using DOS REPLACE  . . . . . . . . . . . . . . .    I - 23
  24.                6.2. Using PkUnZip  . . . . . . . . . . . . . . . . .    I - 23
  25.  
  26.      SECTION II. ANTI-VIRUS STRATEGY
  27.           1. Protection against viruses  . . . . . . . . . . . . . .    II - 1
  28.                1.1. Introduction . . . . . . . . . . . . . . . . . .    II - 1
  29.                1.2. Basic precautions  . . . . . . . . . . . . . . .    II - 1
  30.           2. What to do when a virus strikes . . . . . . . . . . . .    II - 6
  31.                2.1. Detection of viruses . . . . . . . . . . . . . .    II - 6
  32.                2.2. Recovering from viruses  . . . . . . . . . . . .    II - 7
  33.  
  34.      SECTION III. USING THE TBAV UTILITIES
  35.           1. TbScan  . . . . . . . . . . . . . . . . . . . . . . .     III - 1
  36.                1.1. The Purpose of TbScan  . . . . . . . . . . . .     III - 1
  37.                1.2. How to use Tbscan  . . . . . . . . . . . . . .     III - 2
  38.                1.3. Command line options . . . . . . . . . . . . .    III - 11
  39.                1.4. The scanning process . . . . . . . . . . . . .    III - 18
  40.           2. TbScanX . . . . . . . . . . . . . . . . . . . . . . .    III - 22
  41.                2.1. The Purpose of TbScanX . . . . . . . . . . . .    III - 22
  42.                2.2. How to use TbScanX . . . . . . . . . . . . . .    III - 22
  43.                2.3. Command line options . . . . . . . . . . . . .    III - 23
  44.                2.4. While scanning . . . . . . . . . . . . . . . .    III - 26
  45.           3. TbCheck . . . . . . . . . . . . . . . . . . . . . . .    III - 28
  46.                3.1. The Purpose of TbCheck . . . . . . . . . . . .    III - 28
  47.                3.2. How to use TbCheck . . . . . . . . . . . . . .    III - 28
  48.                3.3. Command line options . . . . . . . . . . . . .    III - 29
  49.                3.4. While checking . . . . . . . . . . . . . . . .    III - 31
  50.                3.5. Testing TbCheck  . . . . . . . . . . . . . . .    III - 31
  51.           4. TbClean . . . . . . . . . . . . . . . . . . . . . . .    III - 32
  52.                4.1. The Purpose of TbClean . . . . . . . . . . . .    III - 32
  53.                4.2. How to use TbClean . . . . . . . . . . . . . .    III - 33
  54.                4.3. Command line options . . . . . . . . . . . . .    III - 35
  55.                4.4. The cleaning process . . . . . . . . . . . . .    III - 36
  56. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                  CONTENTS
  57.  
  58.  
  59.           5. Ongoing virus prevention: TbMon . . . . . . . . . . .    III - 40
  60.                5.1. TbMem  . . . . . . . . . . . . . . . . . . . .    III - 41
  61.                5.2. TbFile . . . . . . . . . . . . . . . . . . . .    III - 45
  62.                5.3. TbDisk . . . . . . . . . . . . . . . . . . . .    III - 47
  63.           6. TBAV Tools  . . . . . . . . . . . . . . . . . . . . .    III - 53
  64.                6.1. TbUtil . . . . . . . . . . . . . . . . . . . .    III - 53
  65.                6.2. TbLog  . . . . . . . . . . . . . . . . . . . .    III - 61
  66.  
  67.      SECTION IV. ADVANCED USER INFORMATION
  68.           1. Memory requirements . . . . . . . . . . . . . . . . . .    IV - 1
  69.           2. TbSetup . . . . . . . . . . . . . . . . . . . . . . . .    IV - 3
  70.                2.1. Anti-Vir.Dat design considerations . . . . . . .    IV - 3
  71.                2.2. Format of TbSetup.Dat  . . . . . . . . . . . . .    IV - 3
  72.                2.3. TBAV site installation . . . . . . . . . . . . .    IV - 5
  73.           3. TbScan  . . . . . . . . . . . . . . . . . . . . . . . .    IV - 7
  74.                3.1. Heuristic scanning . . . . . . . . . . . . . . .    IV - 7
  75.                3.2. Integrity checking . . . . . . . . . . . . . . .    IV - 8
  76.                3.3. Program validation . . . . . . . . . . . . . . .    IV - 9
  77.                3.4. The algorithms . . . . . . . . . . . . . . . . .    IV - 9
  78.                3.5. The TbScan.Lng file  . . . . . . . . . . . . .     IV - 11
  79.                3.6. The TBAV.MSG file  . . . . . . . . . . . . . .     IV - 11
  80.           4. TbClean . . . . . . . . . . . . . . . . . . . . . . .     IV - 12
  81.           5. TbGensig  . . . . . . . . . . . . . . . . . . . . . .     IV - 15
  82.                5.1 The Purpose of TbGenSig . . . . . . . . . . . .     IV - 15
  83.                5.2 Defining signatures . . . . . . . . . . . . . .     IV - 15
  84.                5.3 Keywords  . . . . . . . . . . . . . . . . . . .     IV - 18
  85.                5.4 Wildcards . . . . . . . . . . . . . . . . . . .     IV - 21
  86.  
  87.      Appendix A. TBAV messages
  88.  
  89.      Appendix B. TbScan - Heuristic flag descriptions
  90.  
  91.      Appendix C. Solving incompatibility problems
  92.  
  93.      Appendix D. Batch file handling
  94.  
  95.      Appendix E. Virus naming
  96. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION 0
  97.  
  98.  
  99. SECTION 0. INTRODUCTION
  100.  
  101.  
  102. 1. How to use the manual
  103.  
  104.      Congratulations! By purchasing the ThunderBYTE Anti-Virus utilities you
  105.      have taken the basic step in building a massive anti-viral safety wall
  106.      around your precious computer system. Setting up the appropriate defen-
  107.      se, using the TBAV utilities, is a 'personal matter'. Therefore, we
  108.      highly recommend to read this manual thoroughly, so you are well aware
  109.      of all different kinds of security measures you may take. 
  110.  
  111.      This manual consists of four main sections. Section I instructs you how
  112.      to install the TBAV utilities on your hard disk(s), including some
  113.      useful hints on customized initialization. Section II gives an instruc-
  114.      tion on how to prevent viruses from infecting your computer system(s)
  115.      and directions on how to handle when you actually have been struck by a
  116.      computer virus.
  117.  
  118.      In section III, both purpose and functionality of all TBAV utilities are
  119.      described. For those who want to know more about the subject, some
  120.      'advanced user information' on the ThunderBYTE Anti-Virus utilities is
  121.      presented in section IV. 
  122.  
  123.      You may use the TBAV manual as a reference manual, via an extensive
  124.      index and appendices referring to the TBAV error messages. 
  125.  
  126. =>   Note that a complete reading of the manual is indispensible in order to
  127.      become familiar with the many facets of ThunderBYTE Anti-Virus, to know
  128.      what steps can - and must - be taken to ensure adequate protection and
  129.      to be fully prepared for a complete recovery, if and when disaster
  130.      strikes. 
  131.  
  132.  
  133. 2. Overview of the TBAV utilities
  134.  
  135.      What is ThunderBYTE Anti-Virus?
  136.  
  137.      ThunderBYTE Anti-Virus (TBAV) is a comprehensive toolkit designed to
  138.      protect against - and recover from - computer viruses. While TBAV
  139.      focuses heavily on numerous ways to prevent a virus infection, the
  140.      package would not be complete without various cleaner programs to purge
  141.      a system, in the unlikely event that a virus manages to slip through.
  142.      The package therefore consists of a number of programs each of which
  143.      help you to prevent viruses to do their destructive jobs. Here is a
  144.      quick overview. 
  145.  
  146.  
  147.      Collecting software information: TbSetup
  148.  
  149.      TbSetup is a program that collects information from all software found
  150.      on your system. The information will be put in files named Anti-Vir.Dat.
  151.  
  152.                                        0 - 1
  153. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION 0
  154.  
  155.  
  156.      The information maintained in these files can be used for integrity
  157.      checking, program validation, and to clean infected files.
  158.  
  159.  
  160.      Enable memory resident TBAV utilities: TbDriver
  161.  
  162. ~    TbDriver does not provide much protection against viruses by itself, but
  163.      must be loaded in advance to enable the memory resident ThunderBYTE
  164.      Anti-Virus utilities, such as TbScanX, TbCheck, TbMem, TbFile and TbDisk
  165.      to perform properly. It also provides basic protection against ANSI
  166.      bombs and 'stealth' viruses.
  167.  
  168.  
  169.      Scanning for viruses: TbScan
  170.  
  171.      TbScan is both a very fast signature scanner and a so-called heuristic
  172.      scanner. Besides its blazing speed it has many configuration options. It
  173.      can detect mutants of viruses, it can bypass stealth type viruses, etc.
  174.      The signature file used by TbScan is a coded 'TbScan.Sig' file, which
  175.      can be updated by yourself in case of emergency.  TbScan is able to
  176.      disassemble and decrypt files. This makes it possible to detect suspici-
  177.      ous instruction sequences and to detect yet unknown viruses. This
  178.      generic detection, named heuristic analysis, is a technique that makes
  179.      it possible to detect about 90% of all viruses by searching for suspici-
  180.      ous instruction se-quences rather than using any signature. For that
  181.      purpose TbScan contains a disassembler, decryptor and code analyzer.
  182.  
  183.      Another feature of TbScan is the integrity checking it performs when it
  184.      finds the Anti-Vir.Dat files generated by TbSetup. 'Integrity checking'
  185.      means that TbScan will check that every file being scanned matches the
  186.      information maintained in the Anti-Vir.Dat files. If a virus infects a
  187.      file, the maintained information will not match the now changed file
  188.      anymore, and TbScan will inform you about this. 
  189.  
  190.      TbScan performs an integrity check automatically, and it does not have
  191.      the false alarm rate other integrity checkers have. The goal is to
  192.      detect viruses and not to detect configuration changes!
  193.  
  194.  
  195.      Automatic scanning: TbScanX
  196.  
  197.      TbScanX is the memory resident version of TbScan. This signature scanner
  198.      remains resident in memory and automatically scans those files which are
  199.      being executed, copied, de-archived, downloaded, etc. TbScanX does not
  200.      require much memory. It can swap itself into expanded, XMS, or high
  201.      memory, using only 1Kb of conventional memory.
  202.  
  203.  
  204.      Check while loading: TbCheck
  205.  
  206.      TbCheck is a memory resident integrity checker. This program remains
  207.      resident in memory and checks automatically every file just before it is
  208.  
  209.                                        0 - 2
  210. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION 0
  211.  
  212.  
  213.      being executed. TbCheck uses a fast integrity checking method, consuming
  214.      only 400 bytes of memory. It can be configured to reject files with
  215.      incorrect checksums, and/or to reject files that do not have a corres-
  216.      ponding Anti-Vir.Dat record.
  217.  
  218.  
  219.      Restoring infected boot-sector, CMOS and partition tables: TbUtil
  220.  
  221.      Some viruses copy themselves into the hard disk's partition table, which
  222.      makes them far more difficult to remove than bootsector viruses. Perfor-
  223.      ming a low-level format is an effective, but rather drastic measure.
  224.      TbUtil offers a more convenient alternative by making a precautionary
  225.      back-up of uninfected partition tables and the boot sector. If an
  226.      infection occurs, the TbUtil back-up can be used as a verifying tool and
  227.      as a means to restore the original (uninfected) partition table and
  228.      bootsector without the need for a destructive disk format. The program
  229.      can also restore the CMOS configuration for you. If a back-up of your
  230.      partition table is not available, TbUtil will try to create a new
  231.      partition table anyway, again avoiding the need for a low-level format. 
  232.  
  233.      Another important feature of TbUtil is the option to replace the parti-
  234.      tion table code with new code offering greater resistance to viruses.
  235.      The TbUtil partition code is executed before the boot sector gains
  236.      control, enabling it to check this sector in a clean environment. The
  237.      TbUtil partition code performs a CRC calculation on the master boot
  238.      sector just before the boot sector code is activated and issues a
  239.      warning if the boot sector has been modified. The TbUtil partition code
  240.      also checks and reports changes in the RAM lay-out. These checks are
  241.      carried out whenever the computer is booted from the hard disk.
  242.  
  243.      It should be noted that boot sector verification is imperative before
  244.      allowing the boot sector code to execute. A virus could easily become
  245.      resident in memory during boot-up and hide its presence. TbUtil offers
  246.      total security at this stage by being active before the boot sector is
  247.      executed. Obviously, TbUtil is far more convenient than the traditional
  248.      strategy of booting from a clean DOS diskette for an undisturbed inspec-
  249.      tion of the boot sector.
  250.  
  251.  
  252.      Reconstructing infected files: TbClean
  253.  
  254.      TbClean is a generic file cleaning utility. It uses the Anti-Vir.Dat
  255.      files generated by TbSetup to enhance file cleaning and/or to verify the
  256.      results. TbClean can however also work without these files. It disassem-
  257.      bles and emulates the infected file and uses this analysis to recon-
  258.      struct the original file.
  259.  
  260.  
  261.      Resident safeguard: TbMon
  262.  
  263.      TbMon is a set of memory resident anti-virus utilities, consisting of
  264.      TbMem, TbFile and TbDisk. Most other resident anti-virus products offer
  265.  
  266.                                        0 - 3
  267. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION 0
  268.  
  269.  
  270.      you the choice to invoke them before the network is loaded and losing
  271.      the protection after the logon procedure, or to load the anti-viral
  272.      software AFTER the logon to the network, resulting in a partially
  273.      unprotected system. The ThunderBYTE Anti-Virus utilities however recog-
  274.      nize the network software and take appropriate actions to ensure their
  275.      functionality.
  276.  
  277.  
  278.      Controlling memory: TbMem
  279.  
  280. ~    TbMem detects attempts from programs to remain resident in memory, and
  281.      ensures that no program can remain resident in memory without permis-
  282.      sion. Since most viruses remain resident in memory, this is a powerful
  283.      weapon against all such viruses, known or unknown. Permission informa-
  284.      tion is maintained in the Anti-Vir.Dat files. TbMem also protects your
  285.      CMOS memory against unwanted modifications.
  286.  
  287.  
  288.      Preventing infection: TbFile
  289.  
  290.      TbFile detects attempts from programs to infect other programs. It also
  291.      guards read-only attributes, detects illegal time-stamps, etc. It will
  292.      make sure that no virus succeeds in infecting programs.
  293.  
  294.  
  295.      Protecting the disk: TbDisk
  296.  
  297.      TbDisk is a disk guard program which detects attempts from programs to
  298.      write directly to disk (without using DOS), attempts to format, etc.,
  299.      and makes sure that no malicious program will succeed in destroying your
  300.      data. This utility also traps tunneling and direct calls into the BIOS
  301.      code. Permission information about the rare programs that write directly
  302.      and/or format the disk is maintained in the Anti-Vir.Dat files.
  303.  
  304.  
  305.      Define your own signatures (in case of an emergency): TbGensig
  306.  
  307.      Since TBAV is distributed with an up-to-date, ready-to-use signature
  308.      file, you do not really need to maintain a signature file yourself. If,
  309.      however, you want to define your own virus signatures, you will need the
  310.      TbGensig utility. You can use either published signatures or define your
  311.      own ones if you are familiar with the structure of software.
  312.  
  313.  
  314.      Remove infected files: TbDel
  315.  
  316.      The DOS 'DEL' command does not actually erase a file. It simply changes
  317.      the first filename character in the directory listing and frees up the
  318.      space by changing the disk's internal location tables. TbDel is a small
  319.      program with just one but important purpose: it replaces every single
  320.      byte in a file with zero characters before deleting it. The entire
  321.      contents are therefore obliterated and totally unrecoverable.
  322.  
  323.                                        0 - 4
  324. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  325.  
  326.  
  327. SECTION I. INSTALLING TBAV
  328.  
  329.  
  330. 1. How to install TBAV 
  331.  
  332.  
  333.      System requirements
  334.  
  335.      The ThunderBYTE Anti-Virus utilities can be executed on any IBM or
  336.      compatible PC with at least 1 Mb disk space. The TBAV utilities need 256
  337.      Kb free internal memory and require DOS 3. However, DOS 5 or a later
  338.      version is recommended. The TBAV utilities are compatible with networks,
  339.      Windows, DR-DOS, etc. 
  340.  
  341.  
  342. 1.1 Initial installation
  343.  
  344.      You can install the TBAV utilities either by using the installation
  345.      procedure (which is explained below) or by a fully customized TBAV
  346.      installation (which is explained in sections  I - 3 and II).
  347.  
  348.      Insert the TBAV installation diskette in the diskette drive.
  349.  
  350.      Type:
  351.           A: or B:
  352.  
  353.      Type:
  354.           install C:\TBAV <Enter>
  355.  
  356.  
  357.           +---------------------------------------+
  358.           |    F1  First time installation        |
  359.           |    F2  Update installation            |
  360.           |    F3  About....                      |
  361.           |    F4  Exit....                       |
  362.           +---------------------------------------+
  363.  
  364.      Since this is the first time you install the TBAV package you choose the
  365.      first option by pressing <Enter> or <F1>.
  366.  
  367.  
  368.      ----- [ Please select Drive to install TBAV to: ]-----           
  369.          You need at least 1024 KB of available space to install TBAV !
  370.  
  371.                C:     3581952 
  372.                D:    21291008
  373.  
  374.  
  375.      Toggle to the disk on which the TBAV utilities must be installed. TBAV
  376.      Install displays the amount of free disk space of each available disk.
  377.  
  378.  
  379.  
  380.                                        I - 1
  381. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  382.  
  383.  
  384.      Next, TBAV Install will prompt you for the TBAV directory. The default
  385.      directory is \TBAV:
  386.  
  387.  
  388.      -----[ Please select Directory to install TBAV to: ]-----
  389.           [C:\TBAV                                      ] 
  390.  
  391.  
  392.      If the specified directory does not exist, the installation pro-gram
  393.      will create it. Subsequently, the TBAV files are copied onto your hard
  394.      disk.
  395.  
  396.      +-----------------------------------------------------------+
  397.      |    The documentation for TBAV is compressed into a file.  |
  398.      |    The documentation-file will now be self-extracted.     |
  399.      |    Press any key when ready....                           |
  400.      |                                                           |
  401.      |                                                           |
  402.      |         Inflating: c:/tbav/TBSCAN.DOC    -AV              |
  403.      |         Inflating: c:/tbav/TBSCANX.DOC   -AV              |
  404.      |         Inflating: c:/tbav/TBCLEAN.DOC   -AV              |
  405.      +-----------------------------------------------------------+
  406.  
  407.      The packed text files are copied onto your hard disk and inflated. After
  408.      copying all files, TbSetup is loaded, which will generate or update the
  409.      Anti-Vir.Dat file of the TBAV directory.
  410.  
  411.  
  412.      +-----------------------------------------------------------+
  413.      |    TbSetup will now generate or update the Anti-Vir.Dat   |
  414.      |         file of the directory C:\TBAV                     |
  415.      |              Press any key when ready...                  |
  416.      +-----------------------------------------------------------+
  417.  
  418.      The ThunderBYTE Anti-Virus utilities are copied to the destination
  419.      directory. The installation program helps you to setup the utilities in
  420.      their most standard and non-customized way. After reading the manual
  421.      thoroughly, you can configure the package to suit your own personal
  422.      needs.
  423.  
  424.      +-----------------------------------------------------------+
  425.      | This installation program helps you to setup the utilities|
  426.      |         in their most standard and non-customized way.    |
  427.      |              Do you want to continue ? (Y/N)              |
  428.      +-----------------------------------------------------------+
  429.  
  430.      If 'No', TBAV Install will not prompt you for placing the memory resi-
  431.      dent TBAV utilities in the autoexec.bat file, nor for creating the Anti-
  432.      Vir.Dat files. If yes, TBAV Install backs up your original Autoexec.Bat
  433.      file and appends a call to the tbstart.bat file. For easy access of the
  434.      TBAV utilities it is recomended to put them into your PATH environment
  435.      variable. Your Autoexec.Bat file now looks like this:
  436.  
  437.                                        I - 2
  438. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  439.  
  440.  
  441.           @ECHO OFF
  442.           PATH C:\TBAV
  443.  
  444.           call C:\TBAV\tbstart.bat
  445.  
  446.      Subsequently, TbSetup will process the indicated drive to generate the
  447.      Anti-Vir.Dat files. You may need to repeat this process for other
  448.      drives. Consult the relevant section for more information!
  449.  
  450.  
  451.      The TBAV package contains some utilities that can be instal-
  452.      led in the memory of your PC. For each of these utilities you can
  453.      indicate whether the installation program must add them to the
  454.      Tbstart.bat file:
  455.  
  456.           TBSCANX is a memory resident virus scanner.
  457.                     Do you want to install it ? (Y/N)
  458.  
  459.           TBCHECK is a memory resident integrity checker.
  460.                Do you want to install it ? (Y/N)
  461.  
  462.           TBMEM is a resident memory guard.
  463.                Do you want to install it ? (Y/N
  464.  
  465.           TBFILE is a resident file guard.
  466.                Do you want to install it ? (Y/N)
  467.  
  468.  
  469.      If you answer the subsequent question with Yes, TBAV will scan your
  470.      system for viruses automatically once every day:
  471.  
  472.           Do you want the system to be scanned automatically
  473.                for viruses every day ? (Y/N)
  474.  
  475.  
  476.      The installation program will write the indicated configuration values
  477.      in the 'tbstart.bat' file, which is located in the Thunder-BYTE directo-
  478.      ry you specified before, eg.:
  479.  
  480.           C:\TBAV\tbdriver
  481.           C:\TBAV\tbscanx
  482.           C:\TBAV\tbcheck
  483.           C:\TBAV\tbmem
  484.           C:\TBAV\tbfile
  485.           C:\TBAV\tbscan /once /alldrives
  486.  
  487.      Finally, you can force the TBAV utilities to scan your disk right away.
  488.  
  489.      It is very likely that some of the TBAV utilities are going to display
  490.      messages when you reboot and continue using the computer as you normally
  491.      would. Some programs perform operations that are monitored by the TBAV
  492.      utilities, so TBAV must first 'learn' which programs need proper permis-
  493.  
  494.                                        I - 3
  495. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  496.  
  497.  
  498.      sion. Execute some of the programs you use regularly and at each rele-
  499.      vant query respond with 'Y' to authorize or 'N' to deny permission. TBAV
  500.      will remember the settings and not bother you again. Reboot the computer
  501.      at the end of this test run. 
  502.  
  503.      The TBAV utilities are now ready to monitor the system and will issue a
  504.      warning if something suspicious - or worse - is about to happen. They
  505.      will also warn you if any new file contains a possible virus - well
  506.      before it can do any harm.
  507.  
  508.  
  509. 1.2 Menu and command syntax
  510.  
  511.      You can activate most of the TBAV utilities from within the TBAV menu,
  512.      by loading:
  513.  
  514.           cd\tbav
  515.           tbav
  516.  
  517.      In order to execute the utilities automatically, all TBAV drivers and
  518.      utilities may be executed from the DOS prompt. In a systemized setup,
  519.      however, the drivers should be installed and activated in your Con-
  520.      fig.Sys, with a device= or install= directive, or in the TbStart.Bat
  521.      file as a TSR. Similarly, most utilities can be started automatically -
  522.      in the case of TbScan restricted to once a day - in the TbStart.Bat
  523.      file. The two exceptions are TbClean and TbDel, which should be executed
  524.      only from the DOS prompt and (TbClean) from within the TBAV menu.
  525.  
  526.      All commands for ThunderBYTE Anti-Virus can be used with command line
  527.      switches or options to control special features. The options may either
  528.      be written out in full, or abbreviated to their one- or two-letter
  529.      mnemonic to shorten the command line. Throughout this manual the exam-
  530.      ples are given with options in verbose, unabbreviated form for clarity.
  531.      Options must be separated by spaces. They do not need a preceding switch
  532.      character, but you may use the customary slash or hyphen switch charac-
  533.      ters if you wish.
  534.  
  535.      The standard command line syntax for all ThunderBYTE Anti-Virus commands
  536.      is:
  537.  
  538.           command [<path>] [<filename>] [<option>] ... [<suboption>] ...
  539.  
  540.      You may review the correct syntax for any command, including a complete
  541.      option list, with the command followed by the word 'help' or a question
  542.      mark, as in:
  543.  
  544.           tbcheck ?
  545.  
  546.      The same on-line help is provided whenever the command is issued with an
  547.      invalid option.
  548.  
  549.  
  550.  
  551.                                        I - 4
  552. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  553.  
  554.  
  555.      The examples, presented in this manual assume that all utilities were
  556.      installed in the default \TBAV directory.
  557.  
  558.  
  559.      Create a recovery diskette!
  560.  
  561.      It is highly recommended to make a recovery diskette. The example setups
  562.      assume you have created such a recovery diskette (see the instructions
  563.      in section II). 
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.                                        I - 5
  609. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  610.  
  611.  
  612. 2. Configuration
  613.  
  614.      The choices you made when installing the TBAV utilities may need some
  615.      tuning, for instance by appending options to the loading command. This
  616.      tuning can be done by editing the TBSTART.BAT file, which automatically
  617.      loads the memory resident utilities. 
  618.  
  619. =>   If suitable, you may write the relevant commands in the Config.Sys file
  620.      instead. Do not forget to specify the .EXE extension in the Config.Sys
  621.      file!
  622.  
  623.      Below, some basic hints are presented, to customize the initial settings
  624.      to suit your own needs. After initializing and rebooting your system for
  625.      the first time afterwards, TBAV will need your response in the initial
  626.      'learning' stage.
  627.  
  628.  
  629.      TBAV menu configuration
  630.  
  631.      The TBAV menu allows some configuration, as well.
  632.  
  633.      +----Main menu-----+
  634.      |  Confi+----------TBAV configuration----------+
  635.      |  TbSet|v Use colors                          |
  636.      |  TbSca|  Save configuration to TBAV.INI      |
  637.      |  TbUti|  File view utility                   |
  638.      |  TbCLe|v Wait after program execution        |
  639.      |  TBAV |  Show command line before executing  |
  640.      |  Docum|v Edit path string before scanning    |
  641.      |  Regis+--------------------------------------+
  642.      |  Quit and save   |
  643.      |  eXit (no save)  |
  644.      +------------------+
  645.  
  646.      You can activate the configuration options by toggling to the relevant
  647.      choice and pressing <Enter>.
  648.  
  649.  
  650.      Use colors
  651.  
  652.      If disabled, TBAV will be displayed in monochrome mode, which is conve-
  653.      nient for use on laptop computers.
  654.  
  655.  
  656.      Save configuration to TBAV.INI
  657.  
  658.      All configuration values, set within the TBAV menu, are saved in the
  659.      'TBAV.INI' file, once you have selected this option. The next time you
  660.      load the TBAV utilities the configuration values in the current TBAV.INI
  661.      file will be valid. These values apply to the TBAV menu itself and the
  662.      utilities TbSetup, TbScan and TbClean. Although you may edit the TBAV.I-
  663.      NI file manually, it is recommended to let the TBAV menu shell generate
  664.  
  665.                                        I - 6
  666. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  667.  
  668.  
  669.      it. By default, the contents of the TBAV.INI file is only valid while
  670.      using the TBAV menu shell. You may, however, enable the "Use TBAV.INI
  671.      file" options (or specify the 'UseIni' switches in the TBAV.INI file
  672.      itself) for each of the utilities mentioned above. Doing so, the confi-
  673.      guration, saved in the TBAV.INI file will also be valid when TbSetup,
  674.      TbScan or TbClean are loaded from the command line. Be careful, since
  675.      options specified in the TBAV.INI file can not be undone on the command
  676.      line. TBAV will create a TBAV.INI file when enabling this option for the
  677.      first time. In this file all valid configuration switches are listed.
  678.      The disabled switches are preceded by a semicolon.
  679.  
  680.  
  681.      File view utility
  682.  
  683.      TbSetup and TbScan generate a datafile and a logfile respectively. By
  684.      default, you can view these files from the TBAV menu using an internal
  685.      file view utility. By using this option you are able to attach your
  686.      favorite external file view utility. Enter the complete path and the
  687.      file name, including the extension.
  688.  
  689.  
  690.      Wait after program execution
  691.  
  692.      By enabling this option, TBAV will display the message:
  693.      "Press any key to return to the TBAV utilities" after executing an
  694.      external utility.
  695.  
  696.  
  697.      Show command line before executing
  698.  
  699.      Enabling this option will force TBAV to display the DOS command which
  700.      will load the external utility. This option comes in handy in order to
  701.      see the command(s) you specified before. After pressing <Enter> TBAV
  702.      will execute the DOS commands.
  703.  
  704.  
  705.      Edit path string before scanning
  706.  
  707.      If enabled, you are prompted to edit or confirm the path to be scanned
  708.      after you have selected "Start scanning".
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.                                        I - 7
  723. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  724.  
  725.  
  726. 3. TbSetup
  727.  
  728.  
  729. 3.1. The Purpose of TbSetup
  730.  
  731.      TbSetup is an indispensible tool, adding support to the rest of the
  732.      ThunderBYTE Anti-Virus utilities, even though it does not take an active
  733.      part in actual virus detection or cleaning itself. TbSetup organizes
  734.      control and recovery information giving extra power to the other utili-
  735.      ties. The information is gathered, mainly from program files, into a
  736.      single reference file called Anti-Vir.Dat, one each per directory. The
  737.      nature of Anti-Vir.Dat files will be explained more fully at the end of
  738.      this chapter.
  739.  
  740.      Although the ThunderBYTE utilities can work perfectly well without the
  741.      Anti-Vir.Dat files it is highly recommended to have TbSetup generate
  742.      these files. The Anti-Vir.Dat files can be used for several purposes:
  743.  
  744.      Integrity checking. TbScan and the memory resident TbCheck program will
  745.      perform an integrity check while scanning if it can detect the Anti-
  746.      Vir.Dat file. If a file gets infected by a virus, the information in the 
  747.      Anti-Vir.Dat file will not match the actual file contents, and TbScan
  748.      and TbCheck will inform you that the file has been changed. 
  749.  
  750.      The TbSetup program recognizes some files that need special treatment.
  751.      An example of such a file is a disk image file of a network remote boot
  752.      disk. - Such a file that actually represents a complete disk - should be
  753.      scanned completely, and for all viruses. TbSetup will put a mark in the
  754.      Anti-Vir.Dat file to make sure that TbScan scans the complete file for
  755.      all viruses.
  756.  
  757.      Once a file is infected, TbClean will reconstruct the original file. The
  758.      information in the Anti-Vir.Dat file will be of great help to TbClean.
  759.      Some infected programs can only be cured if there is information about
  760.      the program in the Anti-Vir.Dat file.
  761.  
  762.      TbCheck (a tiny resident integrity checker) has no purpose if there are
  763.      no Anti-Vir.Dat files on your system.
  764.  
  765.      The resident TBAV utilities need the Anti-Vir.Dat files to maintain
  766.      permission information. Without Anti-Vir.Dat files you can not get rid
  767.      of false alarms other than by disabling a complete feature.
  768.  
  769.  
  770. 3.2. How to use TbSetup
  771.  
  772.      This is the one program where the rule applies: The less you use the
  773.      program, the better your protection against viruses! Why? Keep in mind
  774.      that an Anti-Vir.Dat file stores vital information needed to detect a
  775.      virus, as well as data for subsequent recovery and for cleaning. But
  776.      consider what would happen if you were to execute TbSetup after a virus
  777.      entered the system: the information in the Anti-Vir.Dat file would be
  778.  
  779.                                        I - 8
  780. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  781.  
  782.  
  783.      'updated' to the state of the infected file, wiping out all traces of
  784.      data needed to reconstruct the file of the original, uninfected state.
  785.      Never use TbSetup when there is the slightest evidence of a virus in
  786.      your system. Once the Anti-Vir.Dat files have been generated as part of
  787.      the initial setup, any subsequent usage of TbSetup should be confined to
  788.      directories with new or changed program files.
  789.  
  790.      Please note that the Anti-Vir.Dat directory entries will have the
  791.      attribute 'hidden' and therefore do not show up when you use standard
  792.      directory commands. You can see the filenames only with the help of
  793.      special utilities.
  794.  
  795.      You may load TbSetup either from the DOS command line or from the TBAV
  796.      menu. For the initial installation you can use option 'AllDrives':
  797.  
  798.           TbSetup AllDrives
  799.  
  800.      You may also specify which drives and paths should be processed. To
  801.      setup disks C: and D: you should enter:
  802.  
  803.           TbSetup C:\ D:\
  804.  
  805.      When no filename has been specified but a drive and/or path instead, the
  806.      specified path will be used as top-level path. All its sub-directories
  807.      will be processed too. When a filename has been specified only the
  808.      specified path will be processed. Sub-directories will not be processed.
  809.  
  810.  
  811.      Wildcards in the filename are allowed.
  812.  
  813.      When executed from the DOS command line, the 'newonly' option can be
  814.      used to prevent existing information from being overwritten. 
  815.      To help you remember that TbSetup needs to be executed again, the next
  816.      time you execute TbScan it will display either a small 'c' after the
  817.      file to indicate a new file or a capital 'C' if a file has simply been
  818.      changed.
  819.  
  820.      Example:
  821.      You add a new file TEST.EXE to your directory C:\FOO.
  822.  
  823.           TbSetup C:\FOO\TEST.EXE
  824.  
  825.  
  826.      Example:
  827.      You install a new product in a new directory C:\NEW.
  828.  
  829.           TbSetup C:\NEW
  830.  
  831.  
  832.      When using the DOS command you may append a number of loading options.
  833.      These options are presented in section 3.3. of this chapter.
  834.  
  835.  
  836.                                        I - 9
  837. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  838.  
  839.  
  840.      The 'TbSetup' menu
  841.  
  842.  
  843.      +----Main menu-----+
  844.      |  Confi+------TbSetup menu------+
  845.      |  TbSet|  Start TbSetup         |
  846.      |  TbSca|  Options menu         >|
  847.      |  TbUti|  Flags menu           >|
  848.      |  TbCLe|  Data file path/name   |
  849.      |  TBAV |  View data file        |
  850.      |  Docum+------------------------+
  851.      |  Register TBAV   |
  852.      |  Quit and save   |
  853.      |  eXit (no save)  |
  854.      +------------------+
  855.  
  856.  
  857.      Data file path/name 
  858.  
  859.      TbSetup will search for 'special' files in a file named TbSetup.Dat.
  860.      After selecting this option 'datfile' you can specify another path or
  861.      filename that contains a list of 'special' files. Option format: Datfile
  862.      [=<filename>]
  863.  
  864.      Example:            
  865.           TbSetup Datfile = c:\tbav\tbsetup.dat
  866.  
  867.  
  868.      +----Main menu-----+
  869.      |  Confi+------TbSetup menu------+
  870.      |  TbSet|  Start+-------TbSetup options--------------+
  871.      |  TbSca|  Optio|  Use TBAV.INI file                 |
  872.      |  TbUti|  Flags|  Prompt for pause                  |
  873.      |  TbCLe|  Data |  Only new files                    |
  874.      |  TBAV |  View |  Remove Anti-Vir.Dat files         |
  875.      |  Docum+-------|  Test mode (don't change anything) |
  876.      |  Register TBAV|v Hide Anti-Vir.Dat files           |
  877.      |  Quit and save|  Make executables readonly         |
  878.      |  eXit (no save|  Clear readonly attributes         |
  879.      +---------------|v Sub-Directory scan                |
  880.                      +------------------------------------+
  881.  
  882.  
  883.      Use TBAV.INI file
  884.  
  885.      By enabling this option, the TbSetup configuration values, saved in the
  886.      TBAV.INI file, will also be valid when loading TbSetup from the command
  887.      line. Be careful, since options specified in the TBAV.INI file can not
  888.      be undone on the command line. See chapter I-2 ('Configuration').
  889.  
  890.  
  891.  
  892.  
  893.                                       I - 10
  894. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  895.  
  896.  
  897.      Prompt for pause
  898.  
  899.      When you enter option 'pause' TbSetup will stop after it has processed
  900.      the contents of one window. This gives you the possibility to examine
  901.      the results.
  902.  
  903.  
  904.      Only new files 
  905.  
  906.      If you want to add new files to the Anti-Vir.Dat database, but prevent
  907.      the information of changed files from being updated use option 'newon-
  908.      ly'. Updating the information of changed files is dangerous because if
  909.      the files are infected, the information to detect and cure the virus
  910.      will be overwritten. Option 'newonly' prevents the information from
  911.      being overwritten but it still allows information of new files to be
  912.      added to the database.
  913.  
  914.  
  915.      Remove Anti-Vir.Dat files 
  916.  
  917.      If you want to stop using the ThunderBYTE utilities you do not have to
  918.      remove all the Anti-Vir.Dat files yourself. By using this option TbSetup
  919.      will neatly remove all Anti-Vir.Dat files from your system.
  920.  
  921.  
  922.      Test mode (Don't change anything)
  923.  
  924.      If you want to see the effect of an option without the risk that somet-
  925.      hing is activated you do not want, use option 'test'. If that option is
  926.      specified the program will behave as it would normally, but it will not
  927.      change or update anything on your hard disk.
  928.  
  929.  
  930.      Hide Anti-Vir.Dat files 
  931.  
  932.      The Anti-Vir.Dat files are normally not visual in a directory listing.
  933.      If you prefer to have normal - i.e. visible - files disable this option. 
  934. =>   Note that this option only applies for new Anti-Vir.Dat files.
  935.  
  936.  
  937.      Make executables read-only 
  938.  
  939.      As TbFile guards the read-only attribute permanently it is highly
  940.      recommended to make all executable files read-only to prevent any
  941.      modifications on these files. TbSetup will do the job if you enable
  942.      option 'read-only'. Files that should not be made read-only are recogni-
  943.      zed by TbSetup.
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.                                       I - 11
  951. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  952.  
  953.  
  954.      Clear read-only attributes 
  955.  
  956.      This option can be used to reverse the operation of option 'read-only'.
  957.      If you enable this option all read-only attributes of all executable
  958.      files will be cleared.
  959.  
  960.  
  961.      Sub-Directory scan 
  962.  
  963.      By default TbSetup will search sub-directories for executable files,
  964.      unless a filename (wildcards allowed!) has been specified. If you
  965.      disable this option, TbSetup will not process sub-directories.
  966.  
  967.  
  968.      +----Main menu-----+
  969.      |  Confi+-----TbSetup menu------+
  970.      |  TbSet|  Start+-----TbSetup flags------+
  971.      |  TbSca|  Optio|v Use normal flags      |
  972.      |  TbUti|  Flags|  Set flags manually    |
  973.      |  TbCLe|  Data |  Reset flags manually  |
  974.      |  TBAV |  View |  Define flags         >|
  975.      |  Docum+-------+------------------------+
  976.      |  Register TBAV   |
  977.      |  Quit and save   |
  978.      |  eXit (no save)  |
  979.      +------------------+
  980.  
  981.  
  982.      Set flags manually 
  983.  
  984.      This option is for advanced users only. With this option you can manual-
  985.      ly set permission flags in the Anti-Vir.Dat record. This option requires
  986.      a hexadecimal bitmask for the flags to set. For information about the
  987.      bitmask consult the TbSetup.Dat file. 
  988.  
  989.      Option format: Set =<flags>
  990.  
  991.      Example: 
  992.           Set = 0001
  993.  
  994.  
  995.      Reset flags manually 
  996.  
  997.      This option is for advanced users only. With this option you can manual-
  998.      ly reset permission flags or prevent flags to be set in the Anti-Vir.Dat
  999.      record. This option requires a hexadecimal bitmask for the flags to
  1000.      reset.  For information about the bit mask consult the TbSetup.Dat file.
  1001.      Option format: Reset =<flags>
  1002.  
  1003.      Example:
  1004.           Reset = 0001
  1005.  
  1006.  
  1007.                                       I - 12
  1008. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1009.  
  1010.  
  1011.      +----Main menu-----+
  1012.      |  Confi+-----TbSetup menu------+
  1013.      |  TbSet|  Start+-----TbSetup flags------+
  1014.      |  TbSca|  Optio|v Use n+--Define flags to be changed--+
  1015.      |  TbUti|  Flags|  Set f|  0001: Heuristic analysis    |
  1016.      |  TbCLe|  Data |  Reset|  0002: Checksum changes      |
  1017.      |  TBAV |  View |  Defin|  0004: Disk image File       |
  1018.      |  Docum+-------+-------|  0008: Readonly sensitive    |
  1019.      |  Register TBAV   |    |  0010: TSR program           |
  1020.      |  Quit and save   |    |  0020: Direct disk access    |
  1021.      |  eXit (no save)  |    |  0040: Attribute modifier    |
  1022.      +------------------+    |  8000: Interrupt rehook      |
  1023.                              +------------------------------+
  1024.  
  1025. 3.3. Command line options
  1026.  
  1027.      TbSetup allows options to be specified on the command line.  TbSetup
  1028.      recognizes option short-keys and option words. The words are easier to
  1029.      memorize, and they will be used in this manual for convenience. The
  1030.      syntax is as follows:
  1031.  
  1032.           TbSetup [<path>][<filename>]... [<options>]...
  1033.  
  1034.  
  1035.      option parameter      short  explanation
  1036.      ----------------------------------------------------------------
  1037.      help                  he   help
  1038.      pause                 pa   enable 'Pause' prompt
  1039.      mono                  mo   force monochrome
  1040.      nosub                 ns   skip sub-directories
  1041.      newonly               no   do not update changed records
  1042.      alldrives             ad   process all local fixed drives
  1043.      allnet                an   process all network drives
  1044.      remove                rm   remove Anti-Vir.Dat files
  1045.      test                  te   do not create / change anything
  1046.      nohidden              nh   do not make Anti-Vir.Dat files hidden 
  1047.      readonly              ro   set read-only attribute on executables
  1048.      nordonly              nr   remove / do not set read-only attribute
  1049.      set     =<flags>      se   set flags
  1050.      reset   =<flags>      re   reset flags / do not set flags
  1051.      datfile [=<filename>] df   data file to be used
  1052.  
  1053.  
  1054.      help (he)
  1055.      If you specify this option, TbSetup displays the contents of the TBSE-
  1056.      TUP.HLP file (if available) in the home directory of TbSetup.  If you
  1057.      specify the '?' option you will get the summarized help info as listed
  1058.      above.
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.                                       I - 13
  1065. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1066.  
  1067.  
  1068.      pause (pa)
  1069.      When you specify 'pause' TbSetup will stop after it has processed the
  1070.      contents of one window. This gives you the possibility to examine the
  1071.      results.
  1072.  
  1073.      mono (mo)
  1074.      This option forces TbSetup to refrain from using colors in the screen
  1075.      output. This might enhance the screen output on some LCD screens or
  1076.      color-emulating monochrome systems.
  1077.  
  1078.      nosub (ns)
  1079.      By default TbSetup will search sub-directories for executable files,
  1080.      unless a filename (wildcards allowed!) has been specified. If you
  1081.      specify this option, TbSetup will not process sub-directories.
  1082.  
  1083.      newonly (no)
  1084.      If you want to add new files to the Anti-Vir.Dat database, but prevent
  1085.      the information of changed files from being updated, use option 'newon-
  1086.      ly'. Updating the information of changed files is dangerous because if
  1087.      the files are infected, the information to detect and cure the virus
  1088.      will be overwritten. Option 'newonly' prevents the information from
  1089.      being overwritten but it still allows information of new files to be
  1090.      added to the database.
  1091.  
  1092.      alldrives (ad)
  1093.      If you want TbSetup to process all local non-removable drives you can
  1094.      specify this option. Except for the initial execution, it isn't a good
  1095.      idea to use this option.
  1096.  
  1097.      allnet (an)
  1098.      If you want TbSetup to process all network drives you can specify this
  1099.      option. Except for the initial execution, it isn't a good idea to use
  1100.      this option.
  1101.  
  1102.      remove (rm)
  1103.      If you want to stop using the ThunderBYTE utilities you do not have to
  1104.      remove all the Anti-Vir.Dat files yourself. By using this option TbSetup
  1105.      will neatly remove all Anti-Vir.Dat files from your system.
  1106.  
  1107.      test (te)
  1108.      If you want to see the effect of an option without the risk that somet-
  1109.      hing is activated you do not want, use option 'test'. If that option is
  1110.      specified the program will behave as it would normally, but it will not
  1111.      change or update anything on your
  1112.      hard disk.
  1113.  
  1114.      nohidden (nh)
  1115.      The Anti-Vir.Dat files are normally not visual in a directory listing.
  1116.      If you prefer to have normal - i.e. visible - files specify this option.
  1117. =>   Note that this option only applies for new Anti-Vir.Dat files.
  1118.  
  1119.      readonly (ro)
  1120.  
  1121.                                       I - 14
  1122. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1123.  
  1124.  
  1125.      As TbFile guards the read-only attribute permanently it is highly
  1126.      recommended to make all executable files read-only to prevent any
  1127.      modifications on these files. TbSetup will do the job if you enable
  1128.      option 'read-only'. Files that should not be made read-only are recogni-
  1129.      zed by TbSetup.
  1130.  
  1131.      nordonly (nr)
  1132.      This option can be used to reverse the operation of option 'read-only'.
  1133.      If you enable this option all read-only attributes of all executable
  1134.      files will be cleared.
  1135.  
  1136.      set (se)
  1137.      This option is for advanced users only. With this option you can manual-
  1138.      ly set permission flags in the Anti-Vir.Dat record. This option requires
  1139.      a hexadecimal bitmask for the flags to set. For information about the
  1140.      bitmask consult the TbSetup.Dat file. 
  1141.      Option format: Set =<flags>
  1142.  
  1143.      Example:
  1144.           Set = 0001
  1145.  
  1146.      reset (re)
  1147.      This option is for advanced users only. With this option you can manual-
  1148.      ly reset permission flags or prevent flags to be set in the Anti-Vir.Dat
  1149.      record. This option requires a hexadecimal bitmask for the flags to
  1150.      reset.  For information about the bit mask consult the TbSetup.Dat file.
  1151.      Option format: Reset =<flags>
  1152.  
  1153.      Example:
  1154.           Reset = 0001
  1155.  
  1156.      datfile (df)
  1157.      After the datfile option you can specify the name of the data file to be
  1158.      used.
  1159.  
  1160.  
  1161. 3.4. While executing
  1162.  
  1163.      TbSetup divides the screen into three windows: an information window
  1164.      displaying data file comments across the top of the screen, a scanning
  1165.      window on the left and a status window on the right.
  1166.  
  1167.      The lower left window lists the names of the files being processed,
  1168.      along with file specific information:
  1169.  
  1170.  
  1171.      TEST.EXE 01234  12AB23CD   Added    * 0001
  1172.      |        |      |          |        | |
  1173.      |        |      |          |        | |
  1174.      |        |      |          |        | 'flags' set for this file
  1175.      |        |      |          |        indicates 'special' file
  1176.      |        |      |          action performed
  1177.  
  1178.                                       I - 15
  1179. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1180.  
  1181.  
  1182.      |        |      32-bit CRC (checksum)
  1183.      |        file size in hexadecimal number
  1184.      name of file in process
  1185.  
  1186.  
  1187.      Do not be concerned if the information flies too fast for you to read,
  1188.      or if it puzzles you. You will probably never need these details anyway.
  1189.  
  1190.      The scanning window has an 'action performed' field indicating whether
  1191.      an entry in the Anti-Vir.Dat was added, changed or updated:
  1192.  
  1193.      Added
  1194.      There was no previous entry for this file in the Anti-Vir.Dat record. A
  1195.      new entry has been added.
  1196.  
  1197.      Changed
  1198.      There was an existing entry, but the file has been changed. The Anti-
  1199.      Vir.Dat information has been updated.
  1200.  
  1201.      Updated
  1202.      There was an Anti-Vir.Dat record and the file was found to be unchanged.
  1203.      TbSetup did, however, change some of the program's permission flags, on
  1204.      account of an entry in the TbSetup.Dat file, or in compliance with a
  1205.      'Set' or 'Reset' option. 
  1206.  
  1207.      The process may be aborted by pressing Ctrl-Break.
  1208.  
  1209.  
  1210.      Purpose of the TbSetup.Dat file
  1211.  
  1212.      Although the ThunderBYTE utilities perform well on almost every file
  1213.      without extra help, there are some files that need particular attention.
  1214.      TbSetup uses information collected in a special data file, TbSetup.Dat,
  1215.      to flag such files in the Anti-Vir.Dat file. The other ThunderBYTE
  1216.      utilities then use that information to determine how such a 'special'
  1217.      file should be treated:
  1218.  
  1219.  
  1220.      Examples of such files:
  1221.  
  1222.      Some programs maintain configuration information inside the executable
  1223.      file (EXE, COM) itself. Whenever you change the configuration of these
  1224.      programs, the executable file will change as well, along with its
  1225.      checksum. The new checksum will not match the one stored in the TbSe-
  1226.      tup.Dat file anymore. Since some ThunderBYTE utilities use this checksum
  1227.      information to verify integrity or cleanup results, they need to 'know'
  1228.      when a file's checksum is not a fixed item and should be allowed to
  1229.      change.
  1230.  
  1231.      TbScan can use generic detection methods such as 'heuristic' analysis to
  1232.      detect unknown viruses. Since heuristic analysis implies inevitable
  1233.  
  1234.  
  1235.                                       I - 16
  1236. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1237.  
  1238.  
  1239.      false alarms when a file looks like a virus, TbScan may have to decide
  1240.      not to do a heuristic analysis on such a program.
  1241.  
  1242.      Some of the ThunderBYTE utilities guard the read-only attribute and make
  1243.      sure that it can be removed only with the user's explicitpermission. A
  1244.      few programs, however, refuse to run properly with the read-only attri-
  1245.      bute set.
  1246.  
  1247.      TbScan's default scanning method performs perfectly well with just about
  1248.      any file, but there are some that need special analysis. Such a file is
  1249.      the Novell NET$DOS.SYS file, not a device driver - as the filename
  1250.      extension suggests - but a disk image of the bootable disk. It should be
  1251.      scanned completely and for all signatures, including COM and BOOT.
  1252.  
  1253.      The resident monitoring utilities of the TBAV package detect all sorts
  1254.      of virus-specific behaviour. Some programs, even though they may act
  1255.      like a virus, are still perfectly normal and should be permitted to be
  1256.      executed without TBAV interference.
  1257.  
  1258.      You need not be concerned to find that a few files will be excluded from
  1259.      heuristic analysis. Those files will still be scanned the conventional
  1260.      way for signatures and all the rest. Furthermore, no heuristic exclusion
  1261.      will be granted unless a file matches exactly with the entry in the
  1262.      TbSetup.Dat file - including its name, size and the 32-bit CRC checksum.
  1263.      This eliminates security holes effectively: if a listed file is already
  1264.      infected, its checksum won't match the 32-bit CRC in the TbSetup.Dat
  1265.      file and the exclusion will not apply. By the same token, if a program
  1266.      is infected at a later date, the result would be a change in at least
  1267.      one of its characteristics; the record in the Anti-Vir.Dat file will not
  1268.      match any longer and the file will be subject to full heuristic analysis
  1269.      like any other.
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.                                       I - 17
  1293. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1294.  
  1295.  
  1296. 4. TbDriver
  1297.  
  1298. 4.1. Purpose of TbDriver
  1299.  
  1300.      TbDriver does not provide much protection against viruses by itself, but
  1301.      must be loaded in advance to enable the memory resident ThunderBYTE
  1302.      Anti-Virus utilities, such as TbScanX, TbCheck, TbMem, TbFile and
  1303.      TbDisk, to perform properly. It is the source for some of the routines
  1304.      these utilities have in common, including support to generate the pop-up
  1305.      window routines, driving the translation unit which enables the possibi-
  1306.      lity of displaying messages in your native language, and support for
  1307.      networks.
  1308.  
  1309.      In addition, TbDriver also contains basic protection against 'Stealth'
  1310.      viruses and against ANSI bombs.
  1311.  
  1312.  
  1313.      How to use TbDriver
  1314.  
  1315.      Loading TbDriver must be loaded before (one of) the other memory TbDri-
  1316.      ver resident TBAV utilities. For loading instructions, please consult
  1317.      the following pages.
  1318.  
  1319. =>   If you want protection against ANSI-bombs, you should load TbDriver
  1320.      AFTER the ANSI driver.
  1321.  
  1322.      In normal situations it is not necessary to use the 'net' option of
  1323.      TbDriver.
  1324.  
  1325.      If you install TbDriver on a machine that is booted from a boot ROM,
  1326.      specify the message file with the drive and path where it can be found
  1327.      AFTER the machine has booted. The default message file will not be
  1328.      accessible anymore after the machine has booted.
  1329.  
  1330.  
  1331. 4.2. Command line options
  1332.  
  1333.      Tbdriver allows loading options to be specified on the command line. A
  1334.      filename specification will be treated as a language file specification.
  1335.      The upper three options are always available, the other options are only
  1336.      available if TbDriver is not already memory resident.
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.                                       I - 18
  1350. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1351.  
  1352.  
  1353.      option  parameter    short explanation
  1354.      -------------------- ----- ---------------------------
  1355.  
  1356.      help                 ?     display this helpscreen
  1357.      net                  n     force LAN support
  1358.      remove               r     remove TbDisk from memory
  1359.      mode    =<m|c>       m     override video mode
  1360.  
  1361.      freeze               j     freeze machine after an alert
  1362.      lcd                  l     enhance output on LCD screens
  1363.      noavok  =<drives>    o     assume permission when AV record is missing
  1364.      quiet                q     do not display activity
  1365.      secure               s     do not allow permission updates
  1366.      notunnel             t     do not detect tunneling
  1367.      nofilter             f     do not filter dangerous ANSI codes
  1368.      nostack              ns    do not install a stack
  1369.  
  1370.  
  1371.      help (?)
  1372.      If you specify this option TbDriver will show you the valid command line
  1373.      options as listed above.
  1374.  
  1375.      net (n)
  1376.      TbDriver cooperates well with most networks; in normal situations option
  1377.      'net' will not be needed at all. It should be used only if all of the
  1378.      following conditions are true: A connection to a Novell network is made,
  1379.      and TbDriver.Exe is started before the logon command was used, and there
  1380.      is no valid Anti-Vir.Dat record in the directory where the NET?.COM
  1381.      program resides, or after the NET?.COM file has been renamed.
  1382.  
  1383.      remove (r)
  1384.      This option disables TbDriver and will try to remove the resident part
  1385.      of its code from memory in an attempt to restore this memory space back
  1386.      to the system. Unfortunately, this can work only if TbDriver was loaded
  1387.      last. An attempt to remove a TSR after another TSR has been started will
  1388.      simply leave a useless gap in memory and could disrupt the interrupt
  1389.      chain. TbDriver checks whether it is safe to remove its resident code;
  1390.      if not, it will simply disable itself. 
  1391.  
  1392.      mode (m)
  1393.      On dual video systems TbDriver will use the currently active screen. It
  1394.      may be forced to use the alternate screen with option 'mode=m' for
  1395.      monochrome, or 'mode=c' for color systems.
  1396.  
  1397.      freeze (j)
  1398.      This option causes TbDriver to freeze the machine after a TbDriver
  1399.      message has been displayed. This prevents users to answer TbDriver
  1400.      messages without permission from the supervisor.
  1401.  
  1402.      lcd (l)
  1403.      This option improves the readability of the TbDriver messages on LCD
  1404.      screens.
  1405.  
  1406.                                       I - 19
  1407. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1408.  
  1409.  
  1410.  
  1411.      noavok (o)
  1412.      This option is not recommended for normal usage. You may need it in
  1413.      order to grant permission automatically for programs without an Anti-
  1414.      Vir.Dat record. Option 'noavok' requires a parameter specifying the
  1415.      drives to which the default permission applies. If, for example, you do
  1416.      not want a message from TbMem when a TSR without Anti-Vir.Dat record is
  1417.      executed from drive E: and F:, you could specify 'noavok=ef' on the
  1418.      TbDriver command line. If you do want to exclude network drives you
  1419.      should specify an asterisk (*). So, if you want to grant permission for
  1420.      all files without Anti-Vir.Dat records on drive A:, your ramdisk F: and
  1421.      your remote network drives, specify 'noavok=af*'.
  1422.  
  1423.      quiet (q)
  1424.      Some resident TBAV utilities display an activity status. TbScanX, for
  1425.      instance, displays a rectangle with "*Scanning*" in the upper left
  1426.      corner of your screen while scanning a file. You can disable this with
  1427.      the 'quiet' option when TbDriver is loaded.
  1428.  
  1429.      secure (s)
  1430.      Some ThunderBYTE utilities are able to store permission flags in the
  1431.      Anti-Vir.Dat files. If you don't want these flags to be changed, specify
  1432.      this option. It has no effect on flags that are already set, so the
  1433.      option 'secure' may be used after installing new programs or packages.
  1434.  
  1435.      notunnel (t)
  1436.      TbDriver normally detects tunneling attempts on the part of viruses.
  1437.      'Tunneling' is a technique viruses apply to determine the location of
  1438.      the DOS system code in memory, and to use that address to communicate
  1439.      with DOS directly. This will inactivate all TSR programs, including
  1440.      resident anti-virus software. TbDriver is able to detect 'tunneling'
  1441.      attempts, and informs you about this. Some other anti-virus products
  1442.      also rely on tunneling techniques to bypass resident viruses, causing
  1443.      false alarms. If you are currently executing other anti-viral products,
  1444.      option 'notunnel' will disable tunneling detection.
  1445.  
  1446.      nofilter (f)
  1447.      The original ANSI driver has a feature to assign text strings to keys.
  1448.      Years ago, people used this feature to assign - for instance - the F10
  1449.      key to the text 'DIR /W'. This reprogramming can simply be done with
  1450.      embedded ANSI codes in text files. Typing such a file with the DOS
  1451.      'type' command is enough to reprogram the keys. Today, almost nobody
  1452.      uses this feature anymore, but it is still there. Some ill-minded people
  1453.      however use this feature to make a text file which reprograms - for
  1454.      instance - the Enter key to execute the text 'Del *.*', or worse...
  1455.      Such a text file is called an ANSI-bomb. TbDriver protects you against
  1456.      ANSI-bombs by filtering out the keyboard reprogramming codes. All other
  1457.      ANSI codes will pass without interference. If you don't want this
  1458.      protection, or if you want to use this obsolete ANSI feature you can
  1459.      specify option 'nofilter'.
  1460.  
  1461.  
  1462.  
  1463.                                       I - 20
  1464. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1465.  
  1466.  
  1467.      nostack (ns)
  1468.      By default, TbDriver maintains a stack for the resident TBAV utilities.
  1469.      For most systems however this isn't necessary. If you specify option
  1470.      'nostack' TbDriver will use the application stack, saving a few hundred
  1471.      bytes of memory. However, if the system hangs or becomes unstable, you
  1472.      should discontinue use of this option.
  1473.  
  1474.  
  1475. 4.3. Language support
  1476.  
  1477.      The optional filename specification is used to determine where the
  1478.      language file can be found. TbDriver retrieves pop-up window messages
  1479.      from a TBDRIVER.LNG file, which it expects to find in its own home
  1480.      directory. The default English language file is TBDRIVER.LNG, which may
  1481.      be replaced by a file in your local language. You can order separate
  1482.      language support packages at your local ThunderBYTE dealer, or download
  1483.      the language file from a ThunderBYTE support BBS. Please refer to page
  1484.      I-38 for further details. To load a localized language file, either
  1485.      rename it to the default original, or specify the full path and filename
  1486.      following the command. You may also switch to another language by
  1487.      calling TbDriver again with a different message file. This will not take
  1488.      up any extra memory.
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.                                       I - 21
  1521. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1522.  
  1523.  
  1524. 5. System maintenance
  1525.  
  1526.      All systems need maintenance and so do the TBAV utilities. As new
  1527.      viruses emerge, TbScan's signature file must be updated to avert new
  1528.      dangers. You may either get the latest signature file from your local
  1529.      ThunderBYTE dealer or download the file from one of our support Bulletin
  1530.      Board Systems.
  1531.  
  1532.      Whenever you add, update or replace programs on your system, be sure to
  1533.      use TbSetup to generate or update their fingerprints in the Anti-Vir.Dat
  1534.      files. Sometimes you will want to create a new recovery diskette. When
  1535.      you install a new version of DOS, the bootsector will be different.
  1536.      Changing the configuration of your hard disks may affect the partition
  1537.      tables and the CMOS setup. You should prepare a new recovery diskette
  1538.      after all system modifications.
  1539.  
  1540.  
  1541.      Updates
  1542.  
  1543.      The ThunderBYTE Anti-Virus utilities are updated at frequent intervals.
  1544.      Subscription to the ThunderBYTE update service (at your local dealer)
  1545.      guarantees delivery of each new update. You may download new revisions
  1546.      any time from any ThunderBYTE support BBS. Or check with a local bulle-
  1547.      tin board regularly, as many of them offer updated versions of our
  1548.      software.
  1549.  
  1550.      The standard complete release is issued in an archive named:
  1551.      TBAVxxx.ZIP, where 'xxx' stands for the three-digit version number. The
  1552.      archive extension may vary on local bulletin boards using a different
  1553.      archive method.
  1554.  
  1555.      TBAV-for-Windows is distributed in an archive named TBAVWxxx.Zip. Note
  1556.      that you need to download the DOS version of TBAV in addition to this
  1557.      archive.
  1558.  
  1559.      The resident ThunderBYTE Anti-Virus utilities are also available in
  1560.      processor optimized formats. These processor optimized versions, named
  1561.      TBAVXxxx.ZIP, are for registered users only. You can purchase these
  1562.      versions via your local ThunderBYTE dealer.
  1563.  
  1564.  
  1565.      Language support
  1566.  
  1567.      The ThunderBYTE Anti-Virus utilities currently support several langua-
  1568.      ges, by means of separate language files. Check your local ThunderBYTE
  1569.      dealer for the availability of the TBAV support file in your language.
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.                                       I - 22
  1578. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1579.  
  1580.  
  1581. 6. Network maintenance
  1582.  
  1583.      The signature file TbScan.Sig should be replaced frequently. This can be
  1584.      a lot of work if you want to update all work stations on a network
  1585.      manually. Fortunately, there are several possibilities to do this job
  1586.      automatically.
  1587.  
  1588.  
  1589. 6.1. Using DOS REPLACE
  1590.  
  1591.      Maintain a directory \TBAV_UPD\ on a public server drive. Any new
  1592.      version of the TBAV utilities or any new signature file TbScan.Sig
  1593.      should be placed it in this directory.
  1594.  
  1595.      The work stations should execute a batch file automatically after users
  1596.      log in on the network. This batch file should contain the following
  1597.      lines:
  1598.  
  1599.           rem Update the anti-virus product if a new one is available.
  1600.           replace x:\tbav_upd\*.* c:\tbav /u /r
  1601.  
  1602.      'Replace' is a standard DOS utility. It copies the files specified by
  1603.      the first parameter ONLY if they are newer than the files specified in
  1604.      the second parameter.
  1605.  
  1606.      Make sure the 'replace' command is in the current path, and that the
  1607.      specified paths are valid for your configuration. The 'x', used in the
  1608.      above example, denotes the drive specification.
  1609.  
  1610.      Thus, you only have to update one drive with the new signature file or
  1611.      anti-virus software, and all workstations will update themselves as soon
  1612.      as they log in! You can also add the /S option if you want REPLACE to
  1613.      scan all directories on the workstations' drives for matching files.
  1614.      Please consult the DOS manual for more details.
  1615.  
  1616. =>   Note: Do not forget to execute TbSetup on the new utilities in the
  1617.      x:\tbav_upd directory, thus ensuring that the REPLACE command also
  1618.      copies the new Anti-Vir.Dat file.
  1619.  
  1620.  
  1621. 6.2. Using PkUnZip
  1622.  
  1623.      Maintain a directory \TBAV_UPD\ on a public server drive. Any new
  1624.      version of the TBAV distribution archive should be placed in this
  1625.      directory.
  1626.  
  1627.      The work stations should execute a batch file automatically after users
  1628.      log in on the network. This batch file should contain the following
  1629.      lines:
  1630.  
  1631.           rem Update the anti-virus product if a new one is available.
  1632.           PkUnZip -n -o x:\tbav_upd\TBAV???.ZIP c:\tbav
  1633.  
  1634.                                       I - 23
  1635. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                 SECTION I
  1636.  
  1637.  
  1638. =>   Make sure the file PkUnZip.Exe is in the current path, and that the
  1639.      paths specified are valid for your configuration.
  1640.  
  1641.      Following this procedure, the 'PkUnZip' command will only come into
  1642.      action when you just updated the ZIP files in the x:\tbav_upd directory.
  1643.      Now you only have to update one drive with the new anti-virus software,
  1644.      and all workstations will update themselves as soon as they log in!
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.                                       I - 24
  1692. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  1693.  
  1694.  
  1695. SECTION II. ANTI-VIRUS STRATEGY
  1696.  
  1697. 1. Protection against viruses
  1698.  
  1699. 1.1. Introduction
  1700.  
  1701.      Maintaining a reliable safety system implies that you will be active in
  1702.      taking measures to protect your system from virus infection, since some
  1703.      viruses can hide themselves perfectly once resident in memory. At least
  1704.      once every a week you should boot from a clean and write-protected
  1705.      diskette and execute TbScan.
  1706.  
  1707.      The tightness of your safety system very much depends on the amount of
  1708.      time you want to invest to let the safety measures take place and the
  1709.      vitality of the appropriate computer system. For use on a stand alone
  1710.      computer containing low risk data, in an environment with little exchan-
  1711.      ge of computer software, a daily scan will appear to be sufficient.
  1712.  
  1713.      For company use however, in a network environment where diskettes are
  1714.      exchanged frequently, where disks contain highly vulnerable information,
  1715.      where a network going 'down' means the loss of an extensive amount of
  1716.      money, protection must be as tight as the organisation can practically
  1717.      handle.
  1718.  
  1719.      Considering the above, a simple instruction on how to use the -highly
  1720.      flexible - TBAV utilities cannot be given. It all depends on your own
  1721.      demands and possibilities.
  1722.  
  1723.      Therefore, you are advised to study this manual thoroughly so you will
  1724.      be able to determine your own safety measures. To prevent viruses from
  1725.      doing any harm you should at least under-take the activities as presen-
  1726.      ted below. 
  1727.  
  1728.  
  1729. 1.2. Basic precautions
  1730.  
  1731.      1. Install TBAV on your hard disk
  1732.  
  1733.      You may customize the installation to suit your own needs. Make sure you
  1734.      use TbSetup to maintain recovery information of all executable files of
  1735.      your system! Please refer to the installation section (I) of this
  1736.      manual. 
  1737.  
  1738.      In the following examples it is assumed that all utilities are copied in
  1739.      the (default) directory named TBAV. For all example setups it is requi-
  1740.      red that TbSetup has been executed. If your system has more hard disks
  1741.      or disk partitions you should repeat the TbSetup invocation for every
  1742.      drive or partition.
  1743.  
  1744.      The example setups assume you have created a recovery diskette.
  1745.  
  1746.  
  1747.  
  1748.                                       II - 1
  1749. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  1750.  
  1751.  
  1752.      The example setups outlined below are just intended to give you some
  1753.      ideas about the use of the TBAV utilities, and these examples are not
  1754.      intended as a full featured protection setup!
  1755.  
  1756.  
  1757.      2. Prepare a recovery diskette
  1758.  
  1759.      You will absolutely need a clean recovery diskette in order to be able
  1760.      to get rid of a virus at all later on. Take a few minutes to prepare one
  1761.      now well ahead of a possible future contamination when it would be too
  1762.      late. 
  1763.  
  1764.      Take a new, empty diskette, put it in drive A:, go to your DOS directory
  1765.      and execute the following commands:
  1766.  
  1767.           Format A: /S 
  1768.           Copy SYS.COM A:
  1769.  
  1770.      Now return to the TBAV directory, eg.:
  1771.  
  1772.           CD \TBAV
  1773.  
  1774.      Execute the MakeResc batch file:
  1775.  
  1776.           makeresc A:
  1777.  
  1778.      The MakeResc batch file will create a reliable recovery diskette by
  1779.      creating or copying the following files.
  1780.  
  1781.      -    A backup of the bootsector, partition sector and CMOS configu-
  1782.           ration.
  1783.  
  1784.      -    A Config.Sys file, containing:
  1785.  
  1786.           Files=20
  1787.           Buffers=20
  1788.           Device=TbDriver.Exe
  1789.           Device=TbCheck.Exe FullCRC
  1790.  
  1791.      -    An Autoexec.Bat file, containing:
  1792.  
  1793.           @echo off
  1794.           echo off
  1795.           PATH=A:\
  1796.           TBAV
  1797.           Cls
  1798.           Echo Warning!!!
  1799.           Echo If you suspect a virus, do NOT execute anything
  1800.           Echo from the hard disk!
  1801.  
  1802.  
  1803.  
  1804.  
  1805.                                       II - 2
  1806. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  1807.  
  1808.  
  1809.      -    The following files:
  1810.  
  1811.           TBAV.EXE
  1812.           TBAV.LNG
  1813.           TBSCAN.EXE
  1814.           TBSCAN.LNG
  1815.           TBSCAN.SIG
  1816.           TBDRIVER.EXE
  1817.           TBDRIVER.LNG
  1818.           TBCHECK.EXE
  1819.           TBCLEAN.EX
  1820.           TBUTIL.EXE
  1821.           TBUTIL.LNG
  1822.  
  1823.      Copy to the diskette any other utilities that could come in handy in an
  1824.      emergency situation, including a simple editor to edit Config.Sys and
  1825.      AutoExec.Bat files. If your hard disk needs special device drivers to
  1826.      unlock added features, such as DoubleSpace or Stacker, copy the approp-
  1827.      riate drivers to the recovery diskette and install them in the Con-
  1828.      fig.Sys file on drive A:, taking care to avoid statements that will
  1829.      access the hard disk. Be sure to check the instructions in the device
  1830.      driver's manual for the correct procedures.
  1831.  
  1832.      Make the disk write protected. Label the diskette 'Recovery' together
  1833.      with a short of the PC the diskette belongs to. Store the diskette in a
  1834.      safe place. Use it only in case of an emergency, so make a copy if you
  1835.      need a similar diskette for general purposes.
  1836.  
  1837.  
  1838.      3. Keep shady software out
  1839.  
  1840.      Many companies do not allow employees to install or execute unauthorized
  1841.      software. Or perhaps you wish to keep family members from invading your
  1842.      computer with haphazard games and sundry software. TBAV provides a
  1843.      watchdog function that can help to enforce this. First you will need to
  1844.      add the following lines to the Config.Sys file:
  1845.  
  1846.           Device=C:\TBAV\TbDriver.Exe
  1847.           Device=C:\TBAV\TbCheck.Exe secure
  1848.  
  1849.      If you have installed the TBAV Utilities using the TBAV installation
  1850.      program, you can - instead of editing the CONFIG.SYS file - adjust the
  1851.      TBSTART.BAT file, appending the 'secure' option to the TbCheck command:
  1852.  
  1853.           C:\TBAV\TbDriver
  1854.           C:\TBAV\TbCheck secure
  1855.  
  1856.      Execute TbSetup on the system:
  1857.  
  1858.           TbSetup C:\
  1859.  
  1860.  
  1861.  
  1862.                                       II - 3
  1863. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  1864.  
  1865.  
  1866.      Reboot the system by pressing <Ctrl>-<Alt>-<Del>. From now on, TbCheck
  1867.      will put an effective clamp on any user who tries to execute software
  1868.      which has not been duly authorized first by TbSetup. Whenever someone is
  1869.      trying to execute an unknown program, TBAV will display the following
  1870.      message:
  1871.  
  1872.  
  1873.      +---------- TBAV interception ---------+
  1874.      |                WARNING!              |
  1875.      | The requested program (GAME.EXE)     |
  1876.      | is not authorized and can not be     |
  1877.      | executed.                            |
  1878.      | Execution cancelled! Press any key...|
  1879.      +--------------------------------------+
  1880.  
  1881.  
  1882.      4. Restrict user access
  1883.  
  1884.      Most of the TBAV utilities are interactive. They need to communicate
  1885.      with a knowledgable user in order to establish appropriate action in
  1886.      ambiguous situations. Many companies, however, insist that the system
  1887.      operator be the sole authority allowed to communicate with TBAV and so
  1888.      avoid wrong decisions on the part of possibly inept employees. That is
  1889.      why most of TBAV utilities support the option 'secure'. When this option
  1890.      is specified, all user interaction with any of the TBAV utilities is
  1891.      suspended. In other words, users will never be queried for permission to
  1892.      allow questionable operations, avoiding erroneous decisions which may
  1893.      well result in irreparable havoc. This option will also prevent the user
  1894.      from disabling or unloading the TBAV utilities.
  1895.  
  1896.  
  1897.      5. Never use 'strange' diskettes to boot
  1898.  
  1899.      Only boot from your hard disk or from your original DOS diskette. NEVER
  1900.      use someone else's disk to boot from. Should you have a hard disk, make
  1901.      certain that you have opened the door to your floppy drive before
  1902.      resetting or booting your PC.
  1903.  
  1904.  
  1905.      6. Use ChkDsk frequently
  1906.  
  1907.      Use the DOS program ChkDsk frequently (without the /F switch). ChkDsk is
  1908.      able to detect some viruses, because such viruses change the disk
  1909.      structure in an incorrect manner, causing disk errors in the process.
  1910.      Look out for changes in the behaviour of your software or your PC. Any
  1911.      change in their behaviour is suspect, unless you know its cause. Some
  1912.      highly suspicious symptoms are:
  1913.  
  1914.      -    The amount of available memory space has decreased.
  1915.  
  1916.      -    Programs need more time to execute.
  1917.  
  1918.  
  1919.                                       II - 4
  1920. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  1921.  
  1922.  
  1923.      -    Programs do not operate as they used to, or cause the system to
  1924.           crash or reboot after some time.
  1925.  
  1926.      -    Data disappears or gets damaged.
  1927.  
  1928.      -    The size of one or more programs has increased.
  1929.  
  1930.      -    The screen behaves strangely, or unusual information is displayed.
  1931.  
  1932.      -    ChkDsk detects many errors.
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.                                       II - 5
  1977. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  1978.  
  1979.  
  1980. 2. What to do when a virus strikes
  1981.  
  1982.  
  1983. 2.1. Detection of viruses
  1984.  
  1985.      The first thing to do when you become aware that your system may have
  1986.      been infected is to back up all important files immediately. Use fresh
  1987.      backup media and do not overwrite a previous back up set. You may need
  1988.      the previous set to replace lost or contaminated files. Label the new
  1989.      backup as unreliable, as some of the files may be infected.
  1990.  
  1991.      As soon as you become aware of a virus infection it is imperative that
  1992.      you boot only from a reliable, write protected recovery system diskette.
  1993.  
  1994.  
  1995.      Know the symptoms 
  1996.  
  1997.      Next, execute TbScan for an indication about what is wrong, or boot from
  1998.      a recovery diskette and compare its system files with those on the hard
  1999.      disk to check for changes. During this test you should take care to stay
  2000.      logged on to your system diskette. 
  2001.  
  2002.      TbScan will report the virus name if the virus is known, or give a
  2003.      summary of file changes if the virus cannot be identified:
  2004.  
  2005.           TbScan alldrives logname=lpt1 log
  2006.  
  2007.      Also execute TbUtil to check the bootsector, partition code and the CMOS
  2008.      configuration.
  2009.  
  2010.           TbUtil compare
  2011.  
  2012.      Do not execute any program on your hard disk to prevent a virus from
  2013.      invading the system's memory and possibly masking the test results.
  2014.      TbCheck will warn you if you accidentially try to execute an infected or
  2015.      unauthorized program on your hard disk.
  2016.  
  2017.      Please bear in mind that it is in the nature of a file virus to infect
  2018.      as many programs as possible over a short period. You'll hardly find
  2019.      only a few infected programs on a hard disk that is in constant use. A
  2020.      TbScan virus alert flagging a mere one percent of the files on a hard-
  2021.      worked system is probably just a false alarm that has nothing to do with
  2022.      a real virus.
  2023.  
  2024.      If the file compare test indicates that all of them are still the same,
  2025.      you know at least that you are not dealing with a file virus. 
  2026.      Avoid using the same copy of the TbScan program on another system after
  2027.      discovering a virus. TbScan performs a sanity check when it fires up.
  2028.      Unfortunately there is no way to make software 100% virus-resistant. A
  2029.      sanity check does not work if a 'stealth' type of virus is involved. A
  2030.      stealth virus can hide itself completely when a self-check is being
  2031.      performed. Do note that we are not dealing with a TbScan bug here. The
  2032.  
  2033.                                       II - 6
  2034. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  2035.  
  2036.  
  2037.      failure to detect stealth viruses is common to all software performing a
  2038.      sanity check. Therefore, we recommend to keep a clean version of TbScan
  2039.      on a write-protected diskette. Use this diskette to check other machines
  2040.      once you have found a virus in your own system.
  2041.  
  2042.  
  2043.      Identify the characteristics
  2044.  
  2045.      Viruses come in many different guises and have their own peculiarities.
  2046.      It is extremely important to know at the earliest possible stage which
  2047.      particular kind of virus you are dealing with. That will give you at
  2048.      least some indication of the nature and the amount of the damage it may
  2049.      have caused already. Some viruses infect only executable files that can
  2050.      easily be reinstalled or replaced from a clean source. Others swap some
  2051.      random bytes anywhere on the hard disk, which could affect data files as
  2052.      well, although the results may not be noticeable for some time. Then
  2053.      there are those that damage the hard disk partition table or file
  2054.      allocation table, while some of the even nastier ones, the multipartite
  2055.      viruses, operate in more than one area.
  2056.  
  2057.      Whatever you do, don't panic! An inexperienced user, reacting in confu-
  2058.      sion, can often create more havoc than the virus itself, such as eradi-
  2059.      cating important data in no time. While an instant reformat may get rid
  2060.      of the virus, it will definitely destroy all your recent work as well.
  2061.  
  2062.      Once isolated the virus, either contact your support BBS, consult
  2063.      literature on virus problems, or get in touch with a virus expert. 
  2064.  
  2065.  
  2066. 2.2. Recovering from viruses
  2067.  
  2068.      While recovering from a virus infection it is particularly important to
  2069.      boot only from a clean write-protected system diskette. That is the only
  2070.      way to keep a virus out of the system's memory. Never execute a program
  2071.      from the hard disk.
  2072.  
  2073.      Restore the master boot sector and the DOS system files on the hard
  2074.      disk, using the SYS command on the system diskette. If the bootsector or
  2075.      partition code contains a virus, you may also use TbUtil to get rid of
  2076.      it by restoring clean sectors:
  2077.  
  2078.           TbUtil restore
  2079.  
  2080.      Many modern hard disks, notably IDE or AT drives using advanced prefor-
  2081.      matting methods, are low-level formatted by the supplier, ready for
  2082.      partitioning and a DOS format. Do not try to low-level format these
  2083.      drives yourself. It is always better to back up the partition table with
  2084.      a utility such as TbUtil, which restores the partition table for you
  2085.      without reformatting.
  2086.  
  2087.      If the virus has been identified as a file virus, it will be safest to
  2088.      remove the infected files (by using TbDel) and to copy or reinstall all
  2089.  
  2090.                                       II - 7
  2091. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION II
  2092.  
  2093.  
  2094.      executables from a clean source. A virus cleaning utility, such as
  2095.      TbClean, won't always be able to fully restore the original program code
  2096.      and should be used only as a last resort, such as when you don't have a
  2097.      reliable backup. It may be necessary to replace data files as well if
  2098.      the virus is known to cause damage in that area. 
  2099.  
  2100.      After reassuring yourself that the system is absolutely clean again, run
  2101.      a careful check on all diskettes and backups to remove every single
  2102.      trace of the virus. Keep in mind that it takes only one infected disket-
  2103.      te to cause the same trouble all over again. 
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.                                       II - 8
  2148. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2149.  
  2150.  
  2151. SECTION III. USING THE TBAV UTILITIES
  2152.  
  2153.  
  2154. 1. TbScan
  2155.  
  2156. 1.1. The Purpose of TbScan
  2157.  
  2158.      TbScan is a virus scanner: it has been specifically developed to detect
  2159.      viruses, Trojan Horses and other such threats to your valuable data.
  2160.      Most viruses consist of a unique sequence of instructions, called a
  2161.      signature. Hence through checking for the appearance of such signatures
  2162.      in a file we can find out whether or not a program has been infected.
  2163.      Scanning all program files for the signatures of all known viruses helps
  2164.      you to find out quickly whether or not your system has been infected
  2165.      and, if so, by which virus. 
  2166.  
  2167.  
  2168.      Fast Scanning
  2169.  
  2170.      TbScan is the fastest scanner on the market today, therefore it invites
  2171.      users to invoke it from within their AUTOEXEC.BAT file every morning. 
  2172.  
  2173.      TbScan checks itself on invocation. If it detects that it has been
  2174.      infected it aborts with an error. This minimizes the risk of transfer-
  2175.      ring a virus by the TbScan program itself and infecting your system.
  2176.  
  2177.      Heuristic Scanning
  2178.  
  2179.      TbScan can detect yet unknown viruses. The built-in disassembler is able
  2180.      to detect suspicious instruction sequences and abnormal program lay-
  2181.      outs. This feature is called 'heuristic scanning' and it is partially
  2182.      enabled by default. Heuristic scanning is performed on files and boots-
  2183.      ectors. 
  2184.  
  2185. =>   Note that virus scanners can only tell you whether or not your system
  2186.      has been infected and if so, if any damage has already been done. By
  2187.      that time only a non-infected backup or a recovery program such as
  2188.      TbClean can properly counter a virus infection.
  2189.  
  2190.  
  2191.      Scan Scheduling
  2192.  
  2193.      Every PC owner should use a virus scanner frequently. At least one
  2194.      should do to avoid damage caused by a virus. It is highly recommended to
  2195.      devise your own schedule for a regular scan of your system. Creating a
  2196.      special TbScan boot diskette is also recommended in this respect.
  2197.  
  2198.      The following scan sessions (listed in order of preference) are recom-
  2199.      mended:
  2200.  
  2201.      Execute TbScan from a write-protected bootable diskette once a week.
  2202.      Boot from this diskette before invoking the scanner. Booting from a
  2203.  
  2204.                                       III - 1
  2205. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2206.  
  2207.  
  2208.      diskette is the only way to make sure that no stealth virus will become
  2209.      resident in memory.
  2210.  
  2211.      Invoke a daily scan. You can invoke TbScan with the  'once' option from
  2212.      within the autoexec.bat file to perform the daily scan session automati-
  2213.      cally. It is not necessary to boot from the bootable TbScan diskette to
  2214.      perform the daily scan.
  2215.  
  2216.      Scan new diskettes.
  2217.  
  2218.  
  2219. 1.2. How to use Tbscan
  2220.  
  2221.      For daily use you can activate TbScan by loading the program from the
  2222.      DOS commandline (eg. in the autoexec.bat file), or via the TBAV menu.
  2223.      For weekly use, when scanning from the TbScan diskette, you could use
  2224.      the DOS command. The TbScan DOS options are listed in section 1.3. of
  2225.      this chapter.
  2226.  
  2227.  
  2228.      The 'TbScan' menu
  2229.  
  2230.      +----Main menu-----+
  2231.      |  Confi+----TbScan menu-----+
  2232.      |  TbSet|  Start scanning   >|
  2233.      |  TbSca|  Options menu     >|
  2234.      |  TbUti|  Advanced options >|
  2235.      |  TbCle|  If virus found   >|
  2236.      |  TBAV |  Log file menu    >|
  2237.      |  Docum|  View log file     |
  2238.      |  Regis+--------------------+
  2239.      |  Quit and save   |
  2240.      |  eXit (no save)  |
  2241.      +------------------+
  2242.  
  2243.  
  2244.      View log file
  2245.  
  2246.      If one of the log file options is activated (see below) you can study
  2247.      the log file using this option. 
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.                                       III - 2
  2262. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2263.  
  2264.  
  2265.      The 'Path' menu
  2266.  
  2267.      +----Main menu-----+
  2268.      |  Confi+----TbScan menu-----+
  2269.      |  TbSet|  Start+---------Path menu----------+
  2270.      |  TbSca|  Optio|  Specified files/paths     |
  2271.      |  TbUti|  Advan|  Current directory         |
  2272.      |  TbCle|  If vi|  Diskette in drive A:      |
  2273.      |  TBAV |  Log f|  Diskette in drive B:      |
  2274.      |  Docum|  View |  All fixed Drives          |
  2275.      |  Regis+-------|  All fixed Local drives    |
  2276.      |  Quit and save|  All fixed Network drives  |
  2277.      |  eXit (no save+----------------------------+
  2278.      +------------------+
  2279.  
  2280.  
  2281.      This menu may look different depending on your use of .SCN (configurable
  2282.      scan) files. The lay-out above appears when you don't have any .SCN
  2283.      files at all. 
  2284.  
  2285.  
  2286.      Specified files/paths
  2287.  
  2288.      This option will always present you with a prompt at which you can
  2289.      specify the drives, paths, or even files you want to scan. You can
  2290.      specify multiple path specifications separated by spaces. The field is
  2291.      initialized with the last path you scanned before you saved your confi-
  2292.      guration.
  2293.  
  2294.  
  2295.      Current directory
  2296.  
  2297.      Select this option if you want to scan the directory on your system from
  2298.      where you called the TBAV menu shell.
  2299.  
  2300.  
  2301.      Diskette in drive A: (or B:)
  2302.  
  2303.      If you want to scan multiple diskettes, you may wish to activate the
  2304.      'repeat' option of TbScan. See the 'TbScan options' menu for more
  2305.      information.
  2306.  
  2307.  
  2308.      All fixed drives
  2309.  
  2310.      This will cause all available drives (except the removable ones) to be
  2311.      scanned completely. Depending on the settings in the TBAV configuration
  2312.      menu you will be prompted to confirm the selected drives.
  2313.  
  2314.  
  2315.      All fixed Local drives
  2316.  
  2317.  
  2318.                                       III - 3
  2319. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2320.  
  2321.  
  2322.      If you are connected to a network, you probably don't want to scan the
  2323.      entire network always. With this option you just scan the drives which
  2324.      reside in your machine. Depending on the settings in the TBAV configura-
  2325.      tion menu you will be prompted to confirm the selected drives.
  2326.  
  2327.  
  2328.      All fixed Network drives
  2329.  
  2330.      With this option you can scan all network drives. Depending on the
  2331.      settings in the TBAV configuration menu you will be prompted to confirm
  2332.      the selected drives.
  2333.  
  2334.  
  2335.  
  2336.      The 'TbScan options' menu
  2337.  
  2338.      +----Main menu-----+
  2339.      |  Confi+------TbScan menu------+
  2340.      |  TbSet|  Start+-----TbScan options------+
  2341.      |  TbSca|  Optio|  Use TBAV.INI file      |
  2342.      |  TbUti|  Advan|  Prompt for pause       |
  2343.      |  TbCLe|  If vi|  Quick scan             |
  2344.      |  TBAV |  Log f|  Non-executable scan    |
  2345.      |  Docum|  View |  Maximum Compatibility  |
  2346.      |  Regis+-------|v Bootsector scan        |
  2347.      |  Quit and save|v Memory scan            |
  2348.      |  eXit (no save|  HMA scan forced        |
  2349.      +---------------|v Upper memory scan      |
  2350.                      |v Windows-OS/2-virus scan|
  2351.                      |v Sub-Directory scan     |
  2352.                      |  Repeat scanning        |
  2353.                      |v Abort on Ctrl-Break    |
  2354.                      |v Fast scrolling         |
  2355.                      +-------------------------+
  2356.  
  2357.  
  2358.      Use TBAV.INI file
  2359.  
  2360.      TbScan searches for a file named TBAV.INI in the TbScan directory. By
  2361.      enabling this option, the TbScan configuration values, saved in the
  2362.      TBAV.INI file, will also be valid when loading TbScan from the command
  2363.      line. Be careful, since options specified in the TBAV.INI file can not
  2364.      be undone on the command line. See chapter I-2 ('Configuration').
  2365.  
  2366.  
  2367.      Prompt for pause
  2368.  
  2369.      When you activate the 'pause' option TbScan will stop after it has
  2370.      checked the contents of one window. This gives you the possibility to
  2371.      examine the results without having to consult a log file afterwards.
  2372.  
  2373.  
  2374.  
  2375.                                       III - 4
  2376. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2377.  
  2378.  
  2379.      Quick scan
  2380.  
  2381.      TbScan will use the Anti-Vir.Dat files to check for file changes since
  2382.      the last time. Only if a file has been changed (CRC change) or is not
  2383.      yet listed in Anti-Vir.Dat it will be scanned. Normally TbScan will
  2384.      always scan files.
  2385.  
  2386.  
  2387.      Non-executable scan 
  2388.  
  2389.      With this option TbScan will scan non-executable files (files without
  2390.      extension COM, EXE, SYS or BIN) too. If TbScan finds out that such a
  2391.      file does not contain anything that can be executed by the processor the
  2392.      file will be 'skipped'. Otherwise the file will be searched for COM, EXE
  2393.      and SYS signatures. TbScan however will not perform heuristic analysis
  2394.      on non-executable files. Since viruses normally do not infect non-
  2395.      executable files it is not necessary to scan non-executable files too.
  2396.      We even recommend not to use this option unless you have a good reason
  2397.      to scan all files.
  2398.  
  2399.      Once again: a virus needs to be executed to perform what it is program-
  2400.      med to do, and since non-executable files will not be executed a virus
  2401.      in such a file can not do anything. For this reason viruses do not even
  2402.      try to infect such files. Some viruses however will write to non-execu-
  2403.      table files as a result of 'incorrect' programming. If so, these non-
  2404.      executable files will never harm other program or data files, but do
  2405.      contain corrupted data.
  2406.  
  2407.  
  2408.      Maximum compatibility 
  2409.  
  2410.      If you select this option, TbScan attempts to be more compatible with
  2411.      your system. Use this option if the program does not behave as you would
  2412.      expect, or even halts the system. This option will slow down the scan-
  2413.      ning process. Therefore, it should only be used if necessary. 
  2414. =>   Note that this option does not affect the results of a scan.
  2415.  
  2416.  
  2417.      Bootsector scan 
  2418.  
  2419.      Enabling this option will force TbScan to scan the bootsector as well.
  2420.  
  2421.  
  2422.      Memory scan 
  2423.  
  2424.      Enabling this option will force TbScan to scan the memory of the PC.
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.                                       III - 5
  2433. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2434.  
  2435.  
  2436.      HMA scan forced 
  2437.  
  2438.      TbScan detects the presence of an XMS-driver, and scans HMA automa-
  2439.      tically. If you have an HMA-driver which is not compatible with the XMS
  2440.      standard you can use the 'HMA' option to force TbScan to scan HMA.
  2441.  
  2442.  
  2443.      Upper memory scan 
  2444.  
  2445.      By default TbScan identifies RAM beyond the DOS limit and scans that
  2446.      too. This means that video memory and the current EMS pages are scanned
  2447.      by default. You can use this option to enable the scanning of non-DOS
  2448.      memory.
  2449.  
  2450.  
  2451.      Windows-OS/2-virus scan
  2452.  
  2453.      TbScan also searches for Windows and OS/2 viruses. Although there exist
  2454.      only very few of these viruses, it takes TbScan relatively a lot of time
  2455.      to search for them. If you don't use Windows or OS/2 you can speed up
  2456.      TbScan by disabeling the detection of Windows and OS/2 virus detection.
  2457.  
  2458.  
  2459.      Subdirectory scan 
  2460.  
  2461.      By default TbScan will search sub-directories for executable  files,
  2462.      unless a filename (wildcards allowed!) is specified. If you disable this
  2463.      option, TbScan will not scan sub-directories.
  2464.  
  2465.  
  2466.      Repeat scanning
  2467.  
  2468.      This option is very useful if you want to check a large amount of
  2469.      diskettes. TbScan does not return to DOS after checking a disk, but it
  2470.      prompts you to insert another disk in the drive.
  2471.  
  2472.  
  2473.      Abort on Ctrl-Break
  2474.  
  2475.      You can disable this option if you don't want to be able to abort TbScan
  2476.      with Ctrl-Break.
  2477.  
  2478.  
  2479.      Fast scrolling
  2480.  
  2481.      TbScan shows the processed file in a scrolling window. There are two
  2482.      methods of scrolling: fast scrolling where the files are displayed on
  2483.      top of the previous ones if the window becomes filled, and the conventi-
  2484.      onal slow method of scrolling where the files at the bottom 'push up'
  2485.      the previous ones. By default TbScan uses the faster but less attractive
  2486.      method of scrolling.
  2487.  
  2488.  
  2489.                                       III - 6
  2490. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2491.  
  2492.  
  2493.      The 'TbScan advanced options' menu
  2494.  
  2495.      +----Main menu-----+
  2496.      |  Confi+------TbScan menu------+
  2497.      |  TbSet|  Start+------TbScan advanced options-----+
  2498.      |  TbSca|  Optio|  High heuristic sensitivity      |
  2499.      |  TbUti|  Advan|v Auto heuristic sensitivity      |
  2500.      |  TbCLe|  If vi|  Low heuristic sensitivity       |
  2501.      |  TBAV |  Log f|  Extract signatures              |
  2502.      |  Docum|  View |  Configure executable extensions |
  2503.      |  Regis+-------+----------------------------------+
  2504.      |  Quit and save   |                      
  2505.      |  eXit (no save)  |
  2506.      +------------------+
  2507.  
  2508.  
  2509.      High heuristic sensitivity 
  2510.  
  2511.      TbScan always performs a heuristic scan on the files being processed.
  2512.      However, only if a file is very probably infected with a virus, TbScan
  2513.      will report the file as being infected. If you use option 'heuristic',
  2514.      TbScan is somewhat more sensitive. In this mode 90% of the new, unknown,
  2515.      viruses will be detected without any signature, but some false alarms
  2516.      may occur. Consult also section 'Heuristic scanning' of this chapter
  2517.      (3.1).
  2518.  
  2519.  
  2520.      Auto heuristic sensitivity 
  2521.  
  2522.      TbScan automatically adjusts the heuristic detection level after a virus
  2523.      has been found. This provides you maximum detection capabilities in case
  2524.      you need it, while the amount of false alarms due to heuristics remains
  2525.      small in normal situations. In other words: as soon as a virus has been
  2526.      found, TbScan will anticipate and proceed as if 'high heuristic sensiti-
  2527.      vity' has been selected.
  2528.  
  2529.  
  2530.      Low heuristic sensitivity
  2531.  
  2532.      In this mode TbScan will almost never issue a false alarm. However still
  2533.      about 50% of the new unknown viruses will be detected.
  2534.  
  2535.  
  2536.      Extract signatures 
  2537.  
  2538.      This option is available to registered users only. See the chapter
  2539.      'TbGensig' (IV-5) on how to use the option 'extract'.
  2540.  
  2541.  
  2542.      Configure executable extensions
  2543.  
  2544.  
  2545.  
  2546.                                       III - 7
  2547. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2548.  
  2549.  
  2550.      By default, TbScan only scans file with a filename extension which
  2551.      indicates that the file is a program file. Viruses which do not infect
  2552.      executable code simply do not exist. Files with the extension EXE, COM,
  2553.      BIN, SYS, OV? are considered to be executable. 
  2554.  
  2555.      However, there are some additional files which have an internal layout
  2556.      that makes them suitable for infection by viruses. Although it is not
  2557.      likely that you will ever execute most of these files, you may want to
  2558.      scan them anyway.
  2559.  
  2560.      Some filename extensions that may indicate an executable format are:
  2561.      .DLL.SCR.MOD.CPL.00?.APP
  2562.      The first four extensions indicate Windows executable files. They
  2563.      normally display "This program requires Microsoft Windows" when you try
  2564.      to execute them, so you probably won't run these files often under DOS.
  2565.      Even when they are infected by a DOS virus they are not likely a threat
  2566.      since you don't execute them. Therefore TbScan does not scan them by
  2567.      default. To make TbScan scan these files by default, select this option
  2568.      and fill out the extensions you want to have scanned. The question mark
  2569.      as wildcard is allowed.
  2570.  
  2571.      Warning! Be careful about which extensions you specify: scanning a non-
  2572.      executable file causes unpredicatble results, and may result in false
  2573.      alarms.
  2574.  
  2575.  
  2576.      The 'If virus found' menu
  2577.  
  2578.      In this menu, you can configure the actions TbScan should take, if
  2579.      detecting a virus.
  2580.  
  2581.  
  2582.      +----Main menu-----+
  2583.      |  Confi+------TbScan menu------+
  2584.      |  TbSet|  Start+--What if a virus is found?--+
  2585.      |  TbSca|  Optio|v Present action menu        |
  2586.      |  TbUti|  Advan|  Just continue (log only)   |
  2587.      |  TbCLe|  If vi|  Delete infected file       |
  2588.      |  TBAV |  Log f|  Kill infected file         |
  2589.      |  Docum|  View |  Rename infected file       |
  2590.      |  Regis+-------+-----------------------------+
  2591.      |  Quit and save   |
  2592.      |  eXit (no save)  |
  2593.      +------------------+
  2594.  
  2595.  
  2596.      Present action menu
  2597.  
  2598.      If TbScan detects a virus, the program will display a menu containing
  2599.      the possible actions to be taken: just continu, delete or rename the
  2600.      infected file.
  2601.  
  2602.  
  2603.                                       III - 8
  2604. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2605.  
  2606.  
  2607.      Just continue (log only) 
  2608.  
  2609.      If TbScan detects an infected file it prompts the user to delete or
  2610.      rename the infected file, or to continue without action. If you select
  2611.      this option, TbScan will always continue. We highly recommend you to use
  2612.      a log file in such situations, as a scanning operation does not make
  2613.      much sense without the return messages being read (see 'Command line
  2614.      options').
  2615.  
  2616.  
  2617.      Delete infected file 
  2618.  
  2619.      If TbScan detects a virus in a file it prompts the user to delete or
  2620.      rename the infected file, or to continue without action. If you specify
  2621.      the 'delete' option, TbScan will delete the infected file automatically,
  2622.      without prompting the user first. Use this option if you have determined
  2623.      it is a virus infection. Make sure that you have a clean back-up, and
  2624.      that you really want to get rid of all infected files at once.
  2625.  
  2626.  
  2627.      Kill infected file
  2628.  
  2629.      This option is nearly the same as the 'delete' option. However, with the
  2630.      DOS 'undelete' program you can recover a deleted file, but if a file has
  2631.      been deleted with the 'kill' option, recovery is not possible anymore.
  2632.  
  2633.  
  2634.      Rename infected file 
  2635.  
  2636.      If TbScan detects a file virus it prompts the user to delete or rename
  2637.      the infected file, or to continue without action. If you select the
  2638.      'rename' option, TbScan will rename the infected file automatically,
  2639.      without prompting the user first. By default, the first character of the
  2640.      file extension will be replaced by the character 'V'. An .EXE file will
  2641.      be renamed to .VXE, and a .COM file to .VOM. This prevents the infected
  2642.      programs from being executed, spreading the infection. At the same time
  2643.      they can be kept for later examination and repair.
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.                                       III - 9
  2661. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2662.  
  2663.  
  2664.      The 'TbScan LOG' menu
  2665.  
  2666.      +----Main menu-----+
  2667.      |  Confi+------TbScan menu------+
  2668.      |  TbSet|  Start+-------TbScan LOG menu-------+
  2669.      |  TbSca|  Optio|  Log file path/name         |
  2670.      |  TbUti|  Advan|  Output to log file         |
  2671.      |  TbCLe|  If vi|  Specify log-level         >|
  2672.      |  TBAV |  Log f|  Append to existing log     |
  2673.      |  Docum|  View |  No heuristic descriptions  |
  2674.      |  Regis+-------+-----------------------------+
  2675.      |  Quit and save   |
  2676.      |  eXit (no save)  |
  2677.      +------------------+
  2678.  
  2679.  
  2680.      Log file path/name 
  2681.  
  2682.      With option logname you can specify the name of the log file to be used.
  2683.      TbScan will create the file in the current directory unless you specify
  2684.      a path and filename after selecting this option. If the log file already
  2685.      exists, it will be overwritten. If you want to print the results, you
  2686.      can specify a printer device name rather than a filename (logname=lpt1).
  2687. =>   Note: you have to combine this option with option 'log'. 
  2688.  
  2689.  
  2690.      Output to logfile 
  2691.  
  2692.      When you use this option, TbScan creates a log file. The log file lists
  2693.      all infected program files, specifying heuristic flags (see: appendix B)
  2694.      and complete pathnames.
  2695.  
  2696.  
  2697.      Append to existing log 
  2698.  
  2699.      If you use this option, TbScan will not overwrite an existing log file
  2700.      but append the new information to it. If you use this option often, it
  2701.      is recommended to delete or truncate the log file once in a while to
  2702.      avoid unlimited growth.
  2703. =>   Note: you have to combine this option with option 'log'. 
  2704.  
  2705.  
  2706.      No heuristic descriptions 
  2707.  
  2708.      If you enable this option TbScan will not specify the descrip-tions of
  2709.      the heuristic flags in the log file. The heuristic flag descriptions are
  2710.      listed in appendix B.
  2711.  
  2712.  
  2713.  
  2714.  
  2715.  
  2716.  
  2717.                                      III - 10
  2718. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2719.  
  2720.  
  2721.      The 'LOG level' menu
  2722.  
  2723.      +----Main menu-----+
  2724.      |  Confi+------TbScan menu------+
  2725.      |  TbSet|  Start+-------TbScan LOG menu-------+
  2726.      |  TbSca|  Optio|  Log f+--------Log-level menu--------+
  2727.      |  TbUti|  Advan|  Outpu|  0: Log only infected files  |
  2728.      |  TbCLe|  If vi|  Speci|v 1: Log summary too          |
  2729.      |  TBAV |  Log f|  Appen|  2: Log suspected too        |
  2730.      |  Docum|  View |  No he|  3: Log all warnings too     |
  2731.      |  Regis+-------+-------|  4: Log clean files too      |
  2732.      |  Quit and save   |    +------------------------------+
  2733.      |  eXit (no save)  |
  2734.      +------------------+
  2735.  
  2736.  
  2737.      Loglevel 
  2738.  
  2739.      These levels determine what kind of file information will be stored in
  2740.      the log file. The default log level is 1. You may select one of five log
  2741.      levels:
  2742.  
  2743.      0    Log only infected files. If there are no infected files do not
  2744.           create or change the log file.
  2745.  
  2746.      1    Log summary too. Put a summary and timestamp in the log file. Put
  2747.           only infected files in the log file.
  2748.  
  2749.      2    Log suspected too. Same as loglevel=1, but now also 'suspected'
  2750.           files are logged. Suspected files are files that would trigger the
  2751.           heuristic alarm if option 'heuristic' had been specified.
  2752.  
  2753.      3    Log all warnings too. Same as loglevel=2, but all files that have a
  2754.           warning character printed behind the filename will be logged too.
  2755.  
  2756.      4    Log clean files too. All files being processed will be put into the
  2757.           log file.
  2758.  
  2759.  
  2760. 1.3. Command line options
  2761.  
  2762.      When loaded from the DOS command line, Tbscan recognizes option short-
  2763.      keys and option words. The words are easier to memorize, and they will
  2764.      be used in this manual for convenience. TbScan searches for a file named
  2765.      TBAV.INI in the TbScan directory. 
  2766.  
  2767.      If the keyword 'UseIni' is specified in the [TbScan] section of the
  2768.      TBAV.INI file, the options will also be valid when TbScan is invoked
  2769.      from the command line. Be careful, as options specified in the TBAV.INI
  2770.      file can not be undone on the command line.
  2771.  
  2772.  
  2773.  
  2774.                                      III - 11
  2775. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2776.  
  2777.  
  2778.      option parameter        short  explanation
  2779.      -----------------------------------------------------------------
  2780.      help                    he     help 
  2781.      pause                   pa     enable 'Pause' prompt
  2782.      mono                    mo     force monochrome
  2783.      quick                   qs     quick scan (uses Anti-Vir.Dat)
  2784.      allfiles                af     scan non-executable files too
  2785.      alldrives               ad     scan all local non-removable drives
  2786.      allnet                  an     scan all network drives
  2787.      heuristic               hr     enable heuristic alerts
  2788.      extract                 ex     extract signature (registered only)
  2789.      once                    oo     only once a day
  2790.      slowscroll              ss     enable conventional (slow) scrolling
  2791.      secure                  se     user abort not allowed (reg. only)
  2792.      compat                  co     maximum-compatibility mode
  2793.      ignofile                in     ignore no-file-error
  2794.      old                     ol     disable "this program is old" message
  2795.      noboot                  nb     skip bootsector check
  2796.      nomem                   nm     skip memory check
  2797.      hma                     hm     force HMA scan
  2798.      nohmem                  nh     skip UMB/HMA scan
  2799.      nosub                   ns     skip sub-directories
  2800.      noautohr                na     auto heuristic level adjust
  2801.      nowin                   nw     do not scan for Windows/OS2 viruses
  2802.      repeat                  rp     scan multiple diskettes
  2803.      batch                   ba     batch mode. No user input
  2804.      delete                  de     delete infected files
  2805.      kill                    ki     kill infected files
  2806.      log                     lo     output to logfile
  2807.      append                  ap     log file append mode
  2808.      expertlog               el     no heuristic descriptions in log 
  2809.  
  2810.      logname  =<filename>    ln     set path/name of log file
  2811.      loglevel =<0..4>        ll     set log level
  2812.      wait     =<0...255>     wa     amount of timerticks to wait
  2813.      rename   [=<text-mask>] rn     rename infected files
  2814.      exec     =.<ext-mask>   ee     specify executable extensions
  2815.  
  2816.  
  2817.      You can find an explanation on most of the command line options at the
  2818.      similar menu descriptions presented above. 
  2819.  
  2820.      help (he)
  2821.      If you specify this option TbScan will display the help as listed above.
  2822.  
  2823.      pause (pa)
  2824.      When you activate the 'pause' option TbScan will stop after it has
  2825.      checked the contents of one window. This gives you the possibility to
  2826.      examine the results without having to consult a log file afterwards.
  2827.  
  2828.  
  2829.  
  2830.  
  2831.                                      III - 12
  2832. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2833.  
  2834.  
  2835.      mono (mo)
  2836.      This option forces TbScan to refrain from using colors in the screen
  2837.      output. This might enhance the screen output on some LCD screens or
  2838.      color-emulating monochrome systems.
  2839.  
  2840.      quick (qs)
  2841.      TbScan will use the Anti-Vir.Dat files to check for file changes since
  2842.      the last time only. Only if a file has been changed (CRC change) or is
  2843.      not yet listed in Anti-Vir.Dat it will be scanned. Normally TbScan will
  2844.      always scan files.
  2845.  
  2846.      allfiles (af)
  2847.      With this option TbScan will scan non-executable files (files without
  2848.      extension COM, EXE, SYS or BIN) too. If TbScan finds out that such a
  2849.      file does not contain anything that can be executed by the processor the
  2850.      file will be 'skipped'. Otherwise the file will be searched for COM, EXE
  2851.      and SYS signatures. TbScan however will not perform heuristic analysis
  2852.      on non-executable files.
  2853.  
  2854.      Since viruses normally do not infect non-executable files it is not
  2855.      necessary to scan non-executable files too. We even recommend not to use
  2856.      this option unless you have a good reason to scan all files. Once again:
  2857.      a virus needs to be executed to perform what it is programmed to do, and
  2858.      since non-executable files will not be executed a virus in such a file
  2859.      can not do anything. For this reason viruses do not even try to infect
  2860.      such files. Some viruses however will write to non-executable files as a
  2861.      result of 'incorrect' programming. If so, these non-executable files
  2862.      will never harm other program or data files, but do contain corrupted
  2863.      data.
  2864.  
  2865.      alldrives (ad)
  2866.      This option causes TbScan to scan all local non-removabe disks.
  2867.  
  2868.      allnet (an)
  2869.      This option causes TbScan to scan all network drives.
  2870.  
  2871.      heuristic (hr)
  2872.      TbScan always performs a heuristic scan on the files being processed.
  2873.      However, only if a file is very probably infected with a virus, TbScan
  2874.      will report the file as being infected. If you use option 'heuristic',
  2875.      TbScan is somewhat more sensitive. In this mode 90% of the new, unknown,
  2876.      viruses will be detected without any signature, but some false alarms
  2877.      may occur. Consult also section 'Heuristic scanning' of this chapter
  2878.      (3.1). 
  2879.  
  2880.      extract (ex)
  2881.      This option is available to registered users only. See the chapter
  2882.      'TbGensig' (IV-5) on how to use the option 'extract'. 
  2883.  
  2884.      once (oo)
  2885.      If you specify this option TbScan will 'remember' after its scan that is
  2886.      has been executed that day, and that it should not be executed again the
  2887.  
  2888.                                      III - 13
  2889. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2890.  
  2891.  
  2892.      same day with this particular option set. This option is very useful if
  2893.      you incorporate it in your AUTOEXEC.BAT file in combination with a scan
  2894.      list file (.SCN):
  2895.           TbScan @Everyday.Scn once rename
  2896.  
  2897.      TbScan will now scan the list of files and/or paths specified in the
  2898.      file EVERYDAY.SCN during the first boot-up of the day. 
  2899.  
  2900.      If the systems boots more often that day, TbScan will then return to DOS
  2901.      immediately.  This option does not interfere with the regular use of
  2902.      TbScan. If you invoke TbScan without the 'once' option it will always be
  2903.      executed, regardless of a previous run with the 'once' option set.
  2904.  
  2905. =>   Note that if TbScan cannot write to TBSCAN.EXE because it has been
  2906.      flagged 'read-only' or is located on a write-protected diskette, the
  2907.      'once' option will fail and the scanner will be executed without it.
  2908.  
  2909.      slowscroll (ss)
  2910.      If you specify this option, TbScan will scroll the files in the files
  2911.      window conventionally. This method is slower but looks nicer.
  2912.  
  2913.      secure (se)
  2914.      This option is available to registered users only. If this option is
  2915.      specified it is no longer possible to cancel TbScan by pressing Ctrl-
  2916.      Break, or to respond to a virus alert window.
  2917.  
  2918.      compat (co)
  2919.      If you select this option, TbScan attempts to be more compatible with
  2920.      your system. Use this option if the program does not behave as you would
  2921.      expect, or even halts the system. This option will slow down the scan-
  2922.      ning process. Therefore, it should only be used if necessary. 
  2923.      Note that this option does not affect the results of a scan.
  2924.  
  2925.      ignofile (in)
  2926.      If this option is specified and no files can be found, TbScan will not
  2927.      display the 'no files found' message, nor does it exit with errorlevel
  2928.      1. This option might be useful for automatic contents scanning.
  2929.  
  2930.      old (ol)
  2931.      This option suppresses the message which appears if TbScan is 6 months
  2932.      old.
  2933.  
  2934.      noboot (nb)
  2935.      If you specify this option TbScan will not scan the bootsector.
  2936.  
  2937.      nomem (nm)
  2938.      If you specify this option TbScan will not scan the memory of the PC for
  2939.      viruses.
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.                                      III - 14
  2946. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  2947.  
  2948.  
  2949.      hma (hm)
  2950.      TbScan detects the presence of an XMS-driver, and scans HMA automa-
  2951.      tically. If you have an HMA-driver which is not compatible with the XMS
  2952.      standard you can use the 'HMA' option to force TbScan to scan HMA.
  2953.  
  2954.      nohmem (nh)
  2955.      By default TbScan identifies RAM beyond the DOS limit and scans that
  2956.      too. This means that video memory and the current EMS pages are scanned
  2957.      by default. You can use this option to disable the scanning of non-DOS
  2958.      memory.
  2959.  
  2960.      nosub (ns)
  2961.      By default TbScan will search sub-directories for executable  files,
  2962.      unless a filename (wildcards allowed!) is specified. If you enable this
  2963.      option, TbScan will not scan sub-directories.
  2964.  
  2965.      noautohr (na)
  2966.      TbScan automatically adjusts the heuristic detection level after a virus
  2967.      has been found. This provides you maximum detection capabilities in case
  2968.      you need it, while the amount of false alarms due to heuristics remains
  2969.      small in normal situations. In other words: as soon as a virus has been
  2970.      found, TbScan will anticipate and proceed as if option 'heuristic' has
  2971.      been speci-fied. If you don't want this, you can specify option 'noau-
  2972.      tohr'.
  2973.  
  2974.      nowin (nw)
  2975.      TbScan also searches for Windows and OS/2 viruses. Although there exist
  2976.      only very few of these viruses, it takes TbScan relatively a lot of time
  2977.      to search for them. If you don't use Windows or OS/2 you can speed up
  2978.      TbScan by disabeling the detection of Windows and OS/2 virus detection.
  2979.  
  2980.      repeat (rp)
  2981.      This option is very useful if you want to check a large amount of
  2982.      diskettes. TbScan does not return to DOS after checking a disk, but it
  2983.      prompts you to insert another disk in the drive.
  2984.  
  2985.      batch (ba)
  2986.      By enabling this option TbScan will scan without displaying any messa-
  2987.      ges. Therefore, the use of a LOG file is highly
  2988.      advisable.
  2989.  
  2990.      delete (de)
  2991.      If TbScan detects a virus in a file it prompts the user to delete or
  2992.      rename the infected file, or to continue without action. If you specify
  2993.      the 'delete' option, TbScan will delete the infected file automatically,
  2994.      without prompting the user first. Use this option if you have determined
  2995.      it is a virus infection. Make sure that you have a clean back-up, and
  2996.      that you really want to get rid of all infected files at once.
  2997.  
  2998.      kill (ki)
  2999.      If TbScan detects a virus in a file it prompts the user to deleter or
  3000.      rename the infected file, or to continue without action. If you specify
  3001.  
  3002.                                      III - 15
  3003. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3004.  
  3005.  
  3006.      the 'kill' option, TbScan will delete the infected file automatically,
  3007.      without prompting the user first. However, unlike the 'delete' option,
  3008.      files which have been killed can not be undeleted anymore. Be careful if
  3009.      you use this option. Make sure you have a clean back-up!
  3010.  
  3011.      log (lo)
  3012.      When you use this option, TbScan creates a log file. The log file lists
  3013.      all infected program files, specifying heuristic flags (see: appendix B)
  3014.      and complete pathnames.
  3015.  
  3016.      append (ap)
  3017.      If you use this option, TbScan will not overwrite an existing log file
  3018.      but append the new information to it. If you use this option often, it
  3019.      is recommended to delete or truncate the log file once in a while to
  3020.      avoid unlimited growth.
  3021. =>   Note: you have to combine this option with option 'log'.
  3022.  
  3023.      expertlog (el)
  3024.      If you enable this option TbScan will not specify the descriptions of
  3025.      the heuristic flags in the log file. The heuristic flag descriptions are
  3026.      listed in appendix B.
  3027.  
  3028.      logname =<filename> (ln)
  3029.      With option logname you can specify the name of the log file to be used.
  3030.      TbScan will create the file in the current directory unless you specify
  3031.      a path and filename after selecting this option. If the log file already
  3032.      exists, it will be overwritten. If you want to print the results, you
  3033.      can specify a printer device name rather than a filename (logname=lpt1).
  3034. =>   Note: you have to combine this option with option 'log'.
  3035.  
  3036.      loglevel =<0..4> (ll)
  3037.      These levels determine what kind of file information will be stored in
  3038.      the log file. The default log level is 1. You may select one of five log
  3039.      levels:
  3040.  
  3041.      0    Log only infected files. If there are no infected files do not
  3042.           create or change the log file.
  3043.  
  3044.      1    Log summary too. Put a summary and timestamp in the log file. Put
  3045.           only infected files in the log file.
  3046.  
  3047.      2    Log suspected too. Same as loglevel=1, but now also 'suspected'
  3048.           files are logged. Suspected files are files that would trigger the
  3049.           heuristic alarm if option 'heuristic' had been specified.
  3050.  
  3051.      3    Log all warnings too. Same as loglevel=2, but all files that have a
  3052.           warning character printed behind the filename will be logged too.
  3053.  
  3054.      4    Log clean files too. All files being processed will be put into the
  3055.           log file.
  3056.  
  3057. =>   Note: you have to combine this option with option 'log'.
  3058.  
  3059.                                      III - 16
  3060. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3061.  
  3062.  
  3063.      wait =<0..255> (wa)
  3064.      This option can be used to delay TbScan, which may be handy if you want
  3065.      to scan a very busy network and you don't want to occupy the network to
  3066.      havily. You have to specify the amount of timer ticks you want to insert
  3067.      between every two files scanned.
  3068.  
  3069.      rename [=<text-mask>] (rn)
  3070.      If TbScan detects a file virus it prompts the user to delete or rename
  3071.      the infected file, or to continue without action. If you select the
  3072.      'rename' option, TbScan will rename the infected file automatically,
  3073.      without prompting the user first. By default, the first character of the
  3074.      file extension will be replced by the character 'V'. An .EXE file will
  3075.      be renamed to .VXE, and a .COM file to .VOM. This prevents the infected
  3076.      programs from being executed, spreading the infection. At the same time
  3077.      they can be kept for later examination and repair.
  3078.  
  3079.      You may also add a parameter to this option specifying the target
  3080.      extension. This parameter should always contain 3 characters; question
  3081.      marks are allowed. The default target extension is 'V??'.
  3082.  
  3083.      exec =.<ext-mask> (ee)
  3084.      With this option you can add filename extensions which indicate that a
  3085.      file is executable. If you want to use this option, you probably want to
  3086.      put it in the configuration file. Consult the explanation of the similar
  3087.      menu option for more details.
  3088.  
  3089.  
  3090.      Examples:
  3091.           TbScan c:\ noboot 
  3092.  
  3093.      Process all executable files in the root directory and its subdirecto-
  3094.      ries. Skip the bootsector scan.
  3095.  
  3096.           TbScan \*.* 
  3097.  
  3098.      Process all files in the root directory. Don't process subdirectories.
  3099.  
  3100.           TbScan @Local.Scn /nomem
  3101.  
  3102.      Process all paths specified in the file Local.Scn and skip memory
  3103.      scanning.
  3104.  
  3105.           TbScan c:\ log logname=c:\test.log loglevel=2
  3106.  
  3107.      All executable files on drive C: will be checked. A LOG file with the
  3108.      name c:\test.log will be created. The log file will contain all infected
  3109.      and suspected files.
  3110.  
  3111.           TbScan \ log logname=lpt1
  3112.  
  3113.      TbScan will scan the root directory and its subdirectories. The results
  3114.      are redirected to the printer rather than to a log file.
  3115.  
  3116.                                      III - 17
  3117. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3118.  
  3119.  
  3120.  
  3121. 1.4. The scanning process
  3122.  
  3123.      Choose the 'Start scanning' option in the TbScan menu or start the
  3124.      TbScan program from the DOS command line. TbScan will start scanning
  3125.      right away.
  3126.  
  3127.      +-----------------------------------------------------------------+
  3128.      |Thunderbyte virus detector v6.04 - (C) 1989-93, Thunderbyte B.V. |
  3129.      |                                                                 |
  3130.      | TBAV is upgraded every two months. Free hotline support is      |
  3131.      | provided for all registered users via telephone, fax and        |
  3132.      | electronic bulletin board. Read the comprehensive documentation |
  3133.      | files for detailed info. BBS: +31- 85- 212 395                  |
  3134.      |                                                                 |
  3135.      | C:\DOS\                                                         |
  3136.      | ** Unregistered evaluation version. Don't forget to register! **|
  3137.      |                                                                 |
  3138.      | ANSI.SYS      scanning..>        OK    signatures:        986   |
  3139.      | COUNTRY.SYS   skipping..>        OK                             |
  3140.      | DISKCOPY.COM  tracing...>        OK    file system:       OWN   |
  3141.      | DISPLAY.SYS   scanning..>        OK                             |
  3142.      | DRIVER.SYS    scanning..>        OK    directories:        01   |
  3143.      | EGA.CPI       skipping..>        OK    total files:        17   |
  3144.      | FASTOPEN.EXE  looking...>        OK    executables:        12   |
  3145.      | FDISK.EXE     looking...>        OK    CRC verified:       10   |
  3146.      | FORMAT.COM    tracing...>   E    OK    changed files:      00   |
  3147.      | GRAFTABL.COM  tracing...>        OK    infected items:     00   |
  3148.      | GRAPHICS.COM  tracing...>        OK                             |
  3149.      | GRAPHICS.PRO  skipping..>        OK    elapsed time:    00:05   |
  3150.      |                                        Kb /second:        57    |
  3151.      |                                                                 |
  3152.      +-----------------------------------------------------------------+
  3153.  
  3154.      TbScan divides the screen into three windows: an information window, a
  3155.      scanning window and a status window. The information window will initi-
  3156.      ally display the vendor information only. 
  3157.  
  3158.  
  3159.      While Scanning
  3160.  
  3161.      If TbScan detects infected files the names of the file and the virus
  3162.      will be displayed in the upper window. The lower left window displays
  3163.      the names of the files being processed, the algorithm in use, info and
  3164.      heuristic flags, and finally an OK statement or the name of the virus
  3165.      detected.
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.                                      III - 18
  3174. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3175.  
  3176.  
  3177.      Example: NLSFUNC.EXE     checking..>    FU          OK
  3178.                  |              |            |           |
  3179.                  |              |            |           result of scan
  3180.                  |              |            heuristic flags
  3181.                  |              algorithm being used to process file
  3182.                  name of file in process
  3183.  
  3184.  
  3185.      You will see comments following each file name: 'looking', 'checking',
  3186.      'tracing', 'scanning' or 'skipping'. These refer to the various algo-
  3187.      rithms being used to scan files.
  3188.  
  3189.      Other comments that TbScan can display here are the heuristic flags.
  3190.      Consult the 'Heuristic flags' chapter (1.3) for more information on
  3191.      these warning characters.
  3192.  
  3193.      The lower right window is the status window. It displays the number of
  3194.      files and directories encountered, the amount of viruses found. It also
  3195.      displays which file system is being used: either "DOS" or "OWN". The
  3196.      latter means that TbScan is able to bypass DOS. If this is the case,
  3197.      TbScan reads all files directly from disk for extra security and speed.
  3198.  
  3199.      The scanning process can be aborted by pressing Ctrl-Break.
  3200.  
  3201.  
  3202.      Detecting Viruses
  3203.  
  3204.      As soon as an infected program is found, TbScan will display the name of
  3205.      the virus. If you did not specify one of the  options 'batch', 'rename'
  3206.      or 'delete', TbScan will prompt you to specify the appropriate action.
  3207.      If you choose to rename the file, the first character of the file
  3208.      extension will be replaced by the character 'V'. This prevents the file
  3209.      from being executed by accident before it has been investigated more
  3210.      thoroughly. 
  3211.  
  3212.  
  3213.      If an infected file is detected, TbScan will display a message:
  3214.  
  3215.           Infected by [name of virus] virus.
  3216.           The file is infected by the virus mentioned.
  3217.  
  3218.           Is Joke named [name of Joke]  
  3219.           There are some programs which simulate that the system is infected
  3220.           by a virus. A joke is completely harmless.
  3221.  
  3222.           Is Trojan named [name of Trojan]
  3223.           The file is a Trojan Horse.Do not execute the program but delete
  3224.           it.
  3225.  
  3226.           Damaged by [name of virus]
  3227.           A damaged file contains - unlike an infected file - not the virus
  3228.           itself, but has been damaged by the virus.
  3229.  
  3230.                                      III - 19
  3231. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3232.  
  3233.  
  3234.           Dropper of [name of virus]
  3235.           A dropper is a program that has not been infected itself, but which
  3236.           does contain a bootsector virus and is able to install it in your
  3237.           bootsector.
  3238.  
  3239.           Overwritten by [name of virus]
  3240.           Some viruses overwrite files. An overwritten file contains - unlike
  3241.           an infected file - not the virus itself, but has been overwritten
  3242.           with garbage.
  3243.  
  3244.      It is also possible that TbScan encounters a file that seems to be
  3245.      infected by a virus, although a signature could not be found. In this
  3246.      case TbScan displays the prefix 'Probably' before the message. 
  3247.  
  3248.  
  3249.      Program Validation
  3250.  
  3251.      If TbScan finds a file to be very suspicious and pops up with the virus
  3252.      alert window, you can avoid future false alarms by pressing 'V' (Valida-
  3253.      te program). Note that this only works if there is an Anti-Vir.Dat
  3254.      record of the file available. Once a program is validated it will no
  3255.      longer be subject to heuristic analysis, unless the program changes and
  3256.      does not match the Anti-Vir.Dat record anymore. This will be the case if
  3257.      such a file gets infected afterwards, so TbScan will still report
  3258.      infections on these files.
  3259.  
  3260. =>   Note that a validated program is still subject to the conventional
  3261.      signature scanning.
  3262.  
  3263.  
  3264.      Heuristic Scanning
  3265.  
  3266.      If you have specified the option 'heuristic' it is likely that TbScan
  3267.      will find some files which look like a virus, and in this case TbScan
  3268.      uses the prefix 'Might be' to inform you about it. So, if TbScan dis-
  3269.      plays: 
  3270.  
  3271.           Probably infected by an unknown virus (level 1)
  3272.      or:
  3273.           Might be infected by an unknown virus (level 2) 
  3274.  
  3275.      it does not necessarily mean that the file is infected. There are a lot
  3276.      of files that look like a virus but are not.
  3277.  
  3278. =>   The heuristic levels are explained in section IV (page 9).
  3279.  
  3280.  
  3281.      False Positives
  3282.  
  3283. =>   Important!
  3284.      False alarms are part of the nature of heuristic scanning. In default
  3285.      mode it is very unlikely that TbScan issues a false alarm. However, if
  3286.  
  3287.                                      III - 20
  3288. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3289.  
  3290.  
  3291.      you have specified option 'heuristic' some false alarms might occur. How
  3292.      to deal with these false alarms? If TbScan thinks it has found a virus
  3293.      it tells you the reason for this suspicion. In most cases you will be
  3294.      able to evaluate these reasons when you consider the purpose of the
  3295.      suspected file.
  3296.  
  3297. =>   Note that viruses infect other programs. It is highly unlikely that you
  3298.      will find only a few infected files on a hard disk used frequently. You
  3299.      should ignore the result of a heuristic scan if only a few programs on
  3300.      your hard disk trigger it. But, if your system behaves in a 'strange'
  3301.      manner and many programs cause TbScan to issue an alarm with the same
  3302.      serious flags, your system could very well be infected by a (yet un-
  3303.      known) virus.
  3304.  
  3305.  
  3306.      Heuristic flags
  3307.  
  3308.      Heuristic flags consist of single characters that are printed behind the
  3309.      name of the file that has been processed. There are two kinds of flags:
  3310.      the informative ones are printed in lower-case characters; the more
  3311.      serious flags are printed in upper-case characters. 
  3312.  
  3313.      The lower-case flags are indicative of special characteristics of the
  3314.      file being processed, whereas the upper-case warnings may indicate a
  3315.      virus. If the 'loglevel' is 3 or above, the important warnings will not
  3316.      only appear as a warning character, but there will also be a description
  3317.      printed in the log file.
  3318.  
  3319.      How should you treat the flags? The less important lower-case flags can
  3320.      be considered to be for your information only.They provide you with file
  3321.      information you might find interesting. The more serious warning flags
  3322.      printed in upper-case MIGHT point towards a virus. It is quite normal
  3323.      that you have some files in your system which trigger an upper-case
  3324.      flag.
  3325.  
  3326.      The heuristic flag descriptions are listed in appendix B.
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.                                      III - 21
  3345. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3346.  
  3347.  
  3348. 2. TbScanX
  3349.  
  3350.  
  3351. 2.1. The Purpose of TbScanX
  3352.  
  3353.      TbScanX is the resident version of the TbScan program, checking files on
  3354.      the basis of a virus signature list. Suppose you have a virus scanner
  3355.      automatically executed from your autoexec.bat file. If no viruses are
  3356.      found, your system is supposed to be uninfected. But, to be sure that no
  3357.      virus will infect your system, you have to execute the scanner every
  3358.      time after copying a file to your harddisk, after downloading a file
  3359.      from a bulletin board system, or after unarchiving an archive such as a
  3360.      ZIP file. Be honest, do YOU actually invoke your scanner every time you
  3361.      introduce a new file into the system? If you don't, you take the risk
  3362.      that within a couple of hours all files are infected by a virus... 
  3363.  
  3364.      Once loaded, TbScanX will remain resident in memory, and will automati-
  3365.      cally scan all files you execute and all executable files you copy,
  3366.      create, download, modify, or unarchive. The same approach is used to
  3367.      protect against bootsector viruses: every time you put a diskette into a
  3368.      drive the bootsector will be scanned. If the disk is contaminated with a
  3369.      boot sector virus TbScanX will warn you in time!
  3370.  
  3371.      TbScanX is fully network compatible. It does not require to reload the
  3372.      scanner after logging on to the network. 
  3373.  
  3374.  
  3375. 2.2. How to use TbScanX
  3376.  
  3377.      Since TbScanX is memory resident, the program can be executed and
  3378.      configured from the command line or from within a batch file. It is
  3379.      important to load TbScanX as early as possible after the machine has
  3380.      booted. Therefore it is recommended to execute TbScanX from within the
  3381.      Config.Sys file.
  3382.  
  3383. =>   Note that TbScanX requires TbDriver to be loaded first!
  3384.  
  3385.  
  3386.      Loading TBScanX
  3387.  
  3388.      There are three possible ways to load TbScanX:
  3389.  
  3390.      1. From the DOS prompt or within the Autoexec.Bat file:
  3391.           <path>TbScanX
  3392.  
  3393.      2. From the Config.Sys as a TSR (Dos 4+):
  3394.           Install=<path>TbScanX.Exe 
  3395.  
  3396.      The "Install=" Config.Sys command is NOT available in DOS 3.xx.
  3397.  
  3398.      3. From the Config.Sys as a device driver:
  3399.           Device=<path>TbScanX.Exe
  3400.  
  3401.                                      III - 22
  3402. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3403.  
  3404.  
  3405.      Unlike other anti-virus products, the ThunderBYTE anti-virus utlities
  3406.      can be loaded before the network is started without loosing the protec-
  3407.      tion afterwards.
  3408.  
  3409.  
  3410.      Highload TBScanX
  3411.  
  3412.      In addition to the three invocation possibilities users of DOS 5 and
  3413.      higher versions can "highload" TbScanX in UMB (upper memory block) if it
  3414.      is available:
  3415.  
  3416.           LoadHigh <path>TbScanX.Exe
  3417.  
  3418.      Within the Config.Sys file TbScanX can also be loaded high:
  3419.  
  3420.           DeviceHigh=<path>TbScanX.Exe
  3421.  
  3422.  
  3423.      TbScanX and MS-Windows
  3424.  
  3425.      Windows users should load TbScanX BEFORE starting MS-Windows. If you do
  3426.      that there is only one copy of TbScanX in memory, but every DOS-window
  3427.      will nevertheless have a fully functional TbScanX in it. TbScanX detects
  3428.      if Windows is starting up, and will switch itself in multitasking mode
  3429.      if necessary. You can even disable TbScanX in one window without affec-
  3430.      ting the functionality in another window.
  3431.  
  3432.  
  3433. 2.3. Command line options
  3434.  
  3435.      TbScanx can be configured from the command line. The upper four options
  3436.      are always available, the other options are only available if TbScanX is
  3437.      not already resident in memory.
  3438.  
  3439.  
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.                                      III - 23
  3459. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3460.  
  3461.  
  3462.      option  short  explanation
  3463.      --------------------------------------------------
  3464.  
  3465.      help      ?    display this helpscreen
  3466.      off       d    disable scanning
  3467.      on        e    enable scanning
  3468.      remove    r    remove TbScanX from memory
  3469.  
  3470.      noexec    n    never scan at execute
  3471.      allexec   a    always scan at execute
  3472.      noboot    b    do not scan bootsectors
  3473.      wild      w    only viruses which appear in the wild
  3474.      ems       me   use expanded memory (EMS)
  3475.      xms       mx   use extended memory (XMS)
  3476.      secure    s    deny access without asking
  3477.      lock      l    lock PC when virus detected
  3478.      api       i    load Application Program Interface
  3479.      compat    c    increased compatibility
  3480.  
  3481.  
  3482.      help (?)
  3483.      If you specify this option TbScanX will show you the commandline options
  3484.      as shown above. Once TbScanX has been loaded the help option will not
  3485.      show all options anymore.
  3486.  
  3487.      off (d)
  3488.      If you specify this option TbScanX will be disabled, but it will remain
  3489.      in memory.
  3490.  
  3491.      on (e)
  3492.      If you use this option TbScanX will be activated again after you dis-
  3493.      abled it with the 'off' option.
  3494.  
  3495.      remove (r)
  3496.      This option can be used to remove the resident part of TbScanX from your
  3497.      memory. All memory used by TbScanX will be released. Unfortunately,
  3498.      removing a TSR (like TbScanX) is not always possible. TbScanX checks
  3499.      whether it is safe to remove the resident part from memory, if it is not
  3500.      safe it just disables TbScanX. A TSR can not be removed if another TSR
  3501.      is started after it. If this happens with TbScanX it will completely
  3502.      disable itself. 
  3503.  
  3504.      compat (c)
  3505.      In most systems TbScanX performs troublefree. It is possible that
  3506.      TbScanX conflicts with other EMS or XMS using resident software. In this
  3507.      case the system will hang. Option 'compat' might solve this problem, but
  3508.      due to extensive memory swapping the performance of TbScanX will slow
  3509.      down.
  3510.  
  3511.  
  3512.  
  3513.  
  3514.  
  3515.                                      III - 24
  3516. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3517.  
  3518.  
  3519.      noexec (n)
  3520.      TbScanX normally scans files located on removable media just before they
  3521.      are executed. You can use this option to disable this feature complete-
  3522.      ly.
  3523.  
  3524.      allexec (a)
  3525.      TbScanX normally scans files to be executed only if they reside on
  3526.      removable media. Files on the harddisk are trusted, because these files
  3527.      must have been copied or downloaded before. And by that time TbScanX has
  3528.      already scanned them automatically. However if you want every file to be
  3529.      scanned before executing, no matter whether on harddisk or removable
  3530.      media, you should use this option.
  3531.  
  3532.      noboot (b)
  3533.      TbScanX monitors the disk system: every time the bootsector is being
  3534.      read, TbScanX automatically scans the disk for bootsector viruses. If
  3535.      you change a disk, the first thing DOS has to do is read the bootsector,
  3536.      otherwise it does not know what kind of disk is in the drive. And as
  3537.      soon as DOS reads the bootsector, TbScanX checks it for viruses. If you
  3538.      don't like this feature, or if it causes problems, you can switch it off
  3539.      using the 'noboot' option. This option will also save some memory
  3540.      because the bootsector signatures will not be loaded.
  3541.  
  3542.      wild (w)
  3543.      There are many viruses which do not appear 'in the wild'. They only run
  3544.      on ancient machines or DOS versions, or they are so buggy that they can
  3545.      only survive in 'virus-laboratory' environments. If you specify option
  3546.      'wild', TbScanX will only search for the viruses which appear in the
  3547.      wild, saving memory and time.
  3548.  
  3549.      secure (s)
  3550.      TbScanX normally asks the user to continue or to cancel when it detects
  3551.      a virus. In some business environments however this choice should not be
  3552.      made by employees. By using option 'secure' it is no longer possible to
  3553.      allow suspicious operations. Option 'secure' also disables option 'off'
  3554.      and 'remove'.
  3555.  
  3556.      lock (l) 
  3557.      System operators can use this option to instruct TbScanX to lock the
  3558.      system once a virus is detected.
  3559.  
  3560.      api (i)
  3561.      This option is intended for avanced users only. It enables the Applica-
  3562.      tion Program Interface of TbScanX which is needed if you want to call
  3563.      TbScanX from within your application. Consult the file Addendum.Doc for
  3564.      detailed programming information.
  3565.  
  3566.      ems (me)
  3567.      If you specify this option TbScanX will use expanded memory (like
  3568.      provided by LIM/EMS expansion boards or 80386 memory managers) to store
  3569.      the signatures and part of its program code. Since conventional memory
  3570.  
  3571.  
  3572.                                      III - 25
  3573. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3574.  
  3575.  
  3576.      is more valuable to your programs than expanded memory, the use of EMS
  3577.      memory is recommended.
  3578.  
  3579.      xms (mx)
  3580.      If you specify this option TbScanX will use extended memory to store the
  3581.      signatures and part of its program code. An XMS driver (like HIMEM.SYS)
  3582.      needs to be installed to be able to use this option. XMS memory is not
  3583.      directly accessable from within DOS, so every time TbScanX has to scan
  3584.      data it has to copy the signatures to conventional memory. 
  3585.  
  3586.      To be able to save the original memory contents TbScanX needs a double
  3587.      amount of XMS memory. Swapping to XMS is slower than swapping to EMS
  3588.      memory, so if you have EMS memory available swapping to EMS is recommen-
  3589.      ded. Swapping to XMS may conflict with some other software, so if you
  3590.      experience problems try using TbScanX without the XMS option. 
  3591.  
  3592.      Example
  3593.           Device=C:\utils\TbScanX.Exe xms noboot
  3594.  
  3595.  
  3596. 2.4. While scanning
  3597.  
  3598.      Whenever a program tries to write to an executable file (files with the
  3599.      extensions .COM and .EXE), you will briefly see the text "*Scanning*" in
  3600.      the upper left corner of your screen. Since TbScanX takes very little
  3601.      time to scan the file, the message will only appear very briefly. The
  3602.      text "*Scanning*" will also appear if you execute a program directly
  3603.      from a diskette, and if DOS accesses the bootsector of a diskette drive.
  3604.  
  3605.  
  3606.      Detecting Viruses
  3607.  
  3608.      If TbScanX detects a suspicious signature that is about to be written
  3609.      into a file, a window will appear with the message:
  3610.  
  3611.           WARNING, <filename> contains <virus name>!
  3612.           Abort? (Y/n)
  3613.  
  3614.      Press "N" to continue, press any other key to abort.
  3615.  
  3616.      If TbScanX detects a suspicious signature in a boot sector, it will
  3617.      display the message:
  3618.  
  3619.           WARNING, Disk in <drive> contains <virus name>!
  3620.           Press a key...
  3621.  
  3622.      Although a virus seems to be on the bootsector of the specified drive,
  3623.      the virus cannot do anything since it has not been executed yet. Howe-
  3624.      ver, if you reboot the machine with the contaminated diskette in the
  3625.      drive, the virus will copy itself to your harddisk.
  3626.  
  3627.  
  3628.  
  3629.                                      III - 26
  3630. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3631.  
  3632.  
  3633.      To display the name of the virus, TbScanX needs the signature file
  3634.      again. It will automatically use the signature file that was used when
  3635.      you invoked the program. If the signature file is missing (because you
  3636.      deleted it, or because you removed the  floppy containing it), or no
  3637.      file handles are left, TbScanX will still detect viruses, but it is no
  3638.      longer able to display the name of the virus. It will display [Name
  3639.      unknown] instead.
  3640.  
  3641.  
  3642.  
  3643.  
  3644.  
  3645.  
  3646.  
  3647.  
  3648.  
  3649.  
  3650.  
  3651.  
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.                                      III - 27
  3687. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3688.  
  3689.  
  3690. 3. TbCheck
  3691.  
  3692.  
  3693. 3.1. The Purpose of TbCheck
  3694.  
  3695.      TbCheck is a memory-resident integrity checker, coming into action
  3696.      whenever a file is about to be executed. It uses the Anti-Vir.Dat
  3697.      records generated by TbSetup to detect file changes, often the first
  3698.      sign of a virus infection. These records contain information, such as
  3699.      file sizes and checksums, of every executable file in a directory. By
  3700.      comparing this information with the actual file status it is possible to
  3701.      detect any changes, including infections caused by viruses - automati-
  3702.      cally.
  3703.  
  3704.      Suppose you have a conventional integrity checker automatically invoked
  3705.      in your autoexec.bat file. If no files are changed, your system is
  3706.      supposed to be uninfected. But, to be sure that no virus can infect your
  3707.      system, you have to execute the checker frequently.
  3708.  
  3709.      Once loaded TbCheck will remain resident in memory, and will automa-
  3710.      tically check all programs you try to execute.
  3711.  
  3712.      TbCheck is fully network compatible. It does not require you to reload
  3713.      the checker after logged on to the network.
  3714.  
  3715.  
  3716. 3.2. How to use TbCheck
  3717.  
  3718.      Since TbCheck is a memory resident program, it can be executed and
  3719.      configured from the command line or from within a batch file. TbCheck
  3720.      should however be started automatically and as soon as the computer
  3721.      boots up, preferably during the execution of Config.Sys or Autoexec.Bat
  3722.      file. 
  3723.  
  3724. =>   Be sure TbDriver has already been loaded - TbCheck wil refuse to start
  3725.      up without it.
  3726.  
  3727.  
  3728.      Loading TbCheck
  3729.  
  3730.      There are three possible ways to start TbCheck:
  3731.        
  3732.      1. From the DOS prompt or within the Autoexec.Bat file:
  3733.           <path>TbCheck
  3734.  
  3735.      2. From the Config.Sys as a TSR (Dos 4+):
  3736.           Install=<path>TbCheck.Exe
  3737.  
  3738.      The "Install=" Config.Sys command is NOT available in DOS 3.xx.
  3739.  
  3740.      3. To invoke TbCheck from the Config.Sys as a device driver:
  3741.           Device=<path>TbCheck.Exe
  3742.  
  3743.                                      III - 28
  3744. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3745.  
  3746.  
  3747.      TbCheck should always work correctly after being started from within the
  3748.      Autoexec.Bat. Unlike other anti-virus products, the Thunderbyte anti-
  3749.      virus utilities can be loaded before the network is started without
  3750.      losing the protection after the network is started.
  3751.  
  3752.  
  3753.      Highload  TbCheck
  3754.  
  3755.      In addition to the three invocation possibilities DOS 5 users can
  3756.      "highload" TbCheck in a UMB (upper memory block) if it is available:
  3757.  
  3758.           LoadHigh <path>TbCheck.Exe
  3759.  
  3760.      Within the Config.Sys file TbCheck can also be loaded high:
  3761.  
  3762.           DeviceHigh=<path>TbCheck.Exe
  3763.  
  3764.  
  3765.      TbCheck and MS-Windows
  3766.  
  3767.      Windows users should load TbCheck BEFORE starting Windows. If you do
  3768.      that, there is only one copy of TbCheck in memory, but every DOS-window
  3769.      will nevertheless have a fully functional TbCheck in it.  TbCheck
  3770.      detects if Windows is starting up, and will switch itself into multitas-
  3771.      king mode if necessary. You can even disable TbCheck in one window
  3772.      without affecting the functionality in another window.
  3773.  
  3774.  
  3775. 3.3. Command line options
  3776.  
  3777.      It is possible to specify options on the command line. The upper four
  3778.      options are always available, the other options are available only if
  3779.      TbCheck is not memory resident.
  3780.  
  3781.  
  3782.      option  parameter short explanation
  3783.      ------  --------- ----- ------------------
  3784.  
  3785.      help               ?    display this helpscreen
  3786.      off                d    disable checking
  3787.      on                 e    enable checking
  3788.      remove             r    remove TbCheck from memory
  3789.  
  3790.      noavok [=<drives>] o    do not warn for missing AV record
  3791.      fullcrc            f    calculate full CRC (slow!)
  3792.      secure             s    do not execute unauthorized files
  3793.  
  3794.  
  3795.      help (?)
  3796.      If you specify this option TbCheck displays the above options list.
  3797.  
  3798.      off (d)
  3799.  
  3800.                                      III - 29
  3801. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3802.  
  3803.  
  3804.      Disables TbCheck, but it will remain in memory and can be reactivated.
  3805.  
  3806.      on (e)
  3807.      TbCheck will be reactivated after having been disabled with the 'off'
  3808.      option.
  3809.  
  3810.      remove (r)
  3811.      This option disables TbCheck and will try to remove the resident part
  3812.      from memory. Unfortunately, this can only work if TbCheck was loaded
  3813.      last. An attempt to remove a TSR after another TSR has been started will
  3814.      simply leave a useless gap in memory and could disrupt the interrupt
  3815.      chain. TbCheck will try to find out whether it is safe to remove its
  3816.      resident code; if not, it will simply disable itself. 
  3817.  
  3818.      noavok (o)
  3819.      TbCheck will look for checksum information on the file you want to be
  3820.      checked in the Anti-Vir.Dat file. TbCheck will display a message if no
  3821.      checksum information is found or if the specific checksum is incorrect.
  3822.      This makes sure that you will receive a warning whenever a malicious
  3823.      program deletes the Anti-Vir.Dat file. 
  3824.  
  3825.      Although it is recommended to maintain Anti-Vir.Dat files on all drives,
  3826.      this may not always be practical with floppy disks, RAM disks or CD-ROM
  3827.      disks. Option 'noavok' tells TbCheck not to look for an Anti-Vir.Dat on
  3828.      specific drives. For instance, if you don't want to be alerted about the
  3829.      absence of an Anti-Vir.Dat record on floppy disks (A: and B:) or on your
  3830.      RAM disk (E:) you should specify:
  3831.  
  3832.           "NoAvOk=ABE"
  3833.  
  3834.      If you don't want a message if an Anti-Vir.Dat record is missing on
  3835.      network drives, you should specify an asterisk (*) instead of a drive
  3836.      letter.
  3837.  
  3838.      If you don't specify a drive to the 'noavok' option, TbCheck will never
  3839.      issue a warning if an Anti-Vir record is missing on any drive. 
  3840.  
  3841. =>   Note that this presents a security hole for viruses: by deleting the
  3842.      Anti-Vir.Dat file you will not be able to detect file changes caused by
  3843.      a viral infection.
  3844.  
  3845. =>   Please note that the 'noavok' option does not do anything to prevent the
  3846.      detection of infected programs if the Anti-Vir record is available. If a
  3847.      program has been changed and the Anti-Vir record is available, you will
  3848.      still get an alarm regardless of how option 'noavok' was implemented.
  3849.  
  3850.      fullcrc (f)
  3851.      By default, TbCheck only verifies that part of the file near the pro-
  3852.      gram's entry point. If a virus infects the file, this area is guaranteed
  3853.      to change, so this is perfectly adequate to detect all infections. Other
  3854.      file changes, notably configuration variations, will not trigger the
  3855.      alarm. If, however, you should ever desire a full check that detects any
  3856.  
  3857.                                      III - 30
  3858. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3859.  
  3860.  
  3861.      file changes, this option will take care of it. Note that this slows
  3862.      down the system considerably - this option is not recommended for normal
  3863.      (anti-virus) usage! 
  3864.  
  3865.      secure (s)
  3866.      TbCheck normally asks whether the user wants to continue or cancel when
  3867.      a file has been changed or when there is no checksum information availa-
  3868.      ble. In a business environment it may be unwise to leave such decisions
  3869.      to employees. Option 'secure' makes it impossible to execute new or
  3870.      unknown programs, or programs that have been changed. Option 'secure'
  3871.      also disables option 'off' and 'remove'.
  3872.  
  3873.  
  3874. 3.4. While checking
  3875.  
  3876.      Whenever a program wants to execute, TbCheck steps in to see if it
  3877.      really has the authority to do so. During that time it will display
  3878.      '*Checking*' in the screen's upper left hand corner. TbCheck operates at
  3879.      lightning speed, therefore the message will appear only momentarily. 
  3880.  
  3881.      Since TbCheck does not take much time to check the file, you will see
  3882.      the message only in a short notice of time.
  3883.  
  3884.  
  3885.      Detecting File Changes
  3886.  
  3887.      TbCheck quickly checks a program when that program is loaded. If TbCheck
  3888.      detects that a file has been changed, a pop-up window will appear to
  3889.      inform you. You can either choose to continue, or to abort the program
  3890.      invocation.
  3891.  
  3892.      If there is no information (Anti-Vir.Dat) about the program, TbCheck
  3893.      will inform you about this too. You can either choose to continue
  3894.      without checking, or to abort the program invocation. 
  3895.  
  3896. =>   Note that you can prevent users from executing non authorized software
  3897.      by combining the TbCheck command with the 'secure' option.
  3898.  
  3899.  
  3900. 3.5. Testing TbCheck
  3901.  
  3902.      Many people understandably wish to test the product they are using. In
  3903.      contrast with, for instance, a word processor, it is very difficult to
  3904.      test a smart integrity checker like TbCheck. You cannot change a random
  3905.      25 bytes of an executable file just to find out whether or not TbCheck
  3906.      will detect the file change. On the contrary, it is very likely that
  3907.      TbCheck will NOT detect it because the program only checks the entry-
  3908.      area of the file whereas the changed bytes might be located on another
  3909.      location within the file.
  3910.  
  3911.  
  3912.  
  3913.  
  3914.                                      III - 31
  3915. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3916.  
  3917.  
  3918. 4. TbClean
  3919.  
  3920.  
  3921. 4.1. The Purpose of TbClean
  3922.  
  3923.      TbClean isolates viral code in an infected program and removes it. From
  3924.      then on it will be safe to use the program again, as the risk of other
  3925.      files being infected or damaged by it will have been securely elimina-
  3926.      ted.
  3927.  
  3928.  
  3929.      Generic Cleaners
  3930.  
  3931.      TbClean works completely different compared to 'conventional cleaners.
  3932.      First of all, it does not recognize any virus. Its disinfection scheme
  3933.      is completely different and it works with almost any virus. Actually,
  3934.      the TbClean program contains two cleaners: a 'repair' cleaner, and a
  3935.      'heuristic' cleaner. The repair cleaner needs an Anti-Vir.Dat file that
  3936.      is generated by the TbSetup program before the infection occurs. In this
  3937.      Anti-Vir.Dat file essential information is stored, like the original
  3938.      file size, the bytes at the beginning of the program, a cryptographic
  3939.      checksum to verify the results, etc. This information enables TbClean to
  3940.      disinfect almost every file, regardless of the virus it has been infec-
  3941.      ted with, known or unknown. 
  3942.  
  3943.  
  3944.      No information available?
  3945.  
  3946.      In the heuristic cleaning mode TbClean does not need any information
  3947.      about viruses either, but it has the added advantage that it does not
  3948.      even care about the original, uninfected state of a program. This
  3949.      cleaning mode is very effective if your system is infected with an
  3950.      unknown virus and yo neglected to let TbSetup generate the Anti-Vir.Dat
  3951.      files in time.
  3952.  
  3953.      In the heuristic mode, TbClean loads the infected file and starts
  3954.      emulating the program code to find out which part of the file belongs to
  3955.      the original program and which to the virus. The result is successful if
  3956.      the functionality of the original program is restored, and the functio-
  3957.      nality of the virus has been reduced to zero. 
  3958.  
  3959. =>   Note that this does not imply that the cleaned file is 100% equal to the
  3960.      original.
  3961.  
  3962.      When TbClean uses heuristic cleaning to disinfect the program, the file
  3963.      will most likely not be exactly the same as in its original state. This
  3964.      is not an indication of failure of TbClean, nor does it mean the file is
  3965.      still infected in some way. First of all, it is normal that the heuris-
  3966.      tically cleaned file is still larger than the original. This is normal
  3967.      because TbClean tries to be on the safe side and it will avoid removing
  3968.      too much. The bytes left at the end of the file are 'dead' code, the
  3969.      instructions will never be executed again since the 'jump' at the
  3970.  
  3971.                                      III - 32
  3972. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  3973.  
  3974.  
  3975.      beginning of the program has been removed. If the cleaned file is an EXE
  3976.      type file, it is likely that some bytes in front of the program - the
  3977.      exeheader - are different. There are many suitable solutions to recon-
  3978.      struct the exeheader, and TbClean can of course never know the original
  3979.      state of the program. The functionality of the cleaned file will never-
  3980.      theless be the same! 
  3981.  
  3982. =>   Note that this only applies to heuristic cleaning: if there is a suit-
  3983.      able Anti-Vir.Dat record available, the cleaned program will normally be
  3984.      exactly the same as the original clean file.
  3985.  
  3986.      It is possible that the infected file is infected with multiple viruses,
  3987.      or multiple instances of the same virus! Some viruses keep on infecting
  3988.      files, and in such case the infected files will keep growing. If TbClean
  3989.      used its heuristic cleaning mode, it is very likely that TbClean removed
  3990.      only one instance of the virus. In this case, it is necessary to repeat
  3991.      the cleaning process until TbClean reports that it can not remove
  3992.      anything anymore.
  3993.  
  3994.  
  3995. 4.2. How to use TbClean
  3996.  
  3997.      After tracking one or more viruses, all you should do is select the
  3998.      'Start cleaning' option in the TbClean menu. After specifying the
  3999.      relevant filename, TbClean will come into action. Beforehand, TbClean
  4000.      allows some additional parameters. These parameters are discussed below.
  4001.  
  4002.  
  4003.      The TbClean menu
  4004.  
  4005.      You can execute TbClean in combination with some useful parameters,
  4006.      which are listed in the TbClean menu. You can activate these parameters
  4007.      by toggling the selection bar to the desired option and type <ENTER>. A
  4008.      checkmark indicates that the specific parameter is ON.
  4009.  
  4010.  
  4011.      +----Main menu-----+
  4012.      |  Confi+-----TbClean menu-----+
  4013.      |  TbSet|  Start cleaning      |
  4014.      |  TbSca|  List-file name      |
  4015.      |  TbUti|  Use TBAV.INI file   |
  4016.      |  TbCLe|  Prompt for pause    |
  4017.      |  TBAV |v Use Anti-Vir.Dat    |
  4018.      |  Docum|v Use Heuristics      |
  4019.      |  Regis|v Expanded memory     |
  4020.      |  Quit |  Show program loops  |
  4021.      |  eXit |  Make list file      |
  4022.      +-------+----------------------+
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.                                      III - 33
  4029. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4030.  
  4031.  
  4032.      List-file name 
  4033.  
  4034.      By selecting this option you may specify a filename to be used as list-
  4035.      file (see also option 'make list-file'). 
  4036.  
  4037.  
  4038.      Use TBAV.INI file
  4039.  
  4040.      By enabling this option, the TbClean configuration values, saved in the
  4041.      TBAV.INI file, will also be valid when loading TbClean from the command
  4042.      line. Be careful, since options specified in the TBAV.INI file can not
  4043.      be undone on the command line. See chapter I-2 ('Configuration').
  4044.  
  4045.  
  4046.      Prompt for pause 
  4047.  
  4048.      TbClean will stop disassembling information after each full screen to
  4049.      let you examine the results.
  4050.  
  4051.  
  4052.      Use Anti-Vir.Dat 
  4053.  
  4054.      If this option is deselected, TbClean will act as if there were no Anti-
  4055.      Vir.Dat records available and will therefore perform heuristic cleaning.
  4056.  
  4057.  
  4058.      Use Heuristics
  4059.  
  4060.      If this option is deselected, TbClean will not try to apply heuristic
  4061.      cleaning, even when there are no Anti-Vir.Dat records available.
  4062.  
  4063.  
  4064.      Show program loops
  4065.  
  4066.      By default TbClean keeps track of looping conditions to keep an iterati-
  4067.      on that would be emulated thousands of times from being listed on your
  4068.      screen. With this option TbClean 'works out' every loop. 
  4069.  
  4070. =>   Note that TbClean will perform at a drastically reduced speed. Do not
  4071.      combine this option with the 'list' option, because the list file might
  4072.      grow too big.
  4073.  
  4074.  
  4075.      Expanded memory
  4076.  
  4077.      If activated, TbClean will detect the presence of expanded memory and
  4078.      will use it in heuristic mode. You may disable EMS usage if it is too
  4079.      slow, or if your expanded memory manager is not very stable.
  4080.  
  4081.  
  4082.  
  4083.  
  4084.  
  4085.                                      III - 34
  4086. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4087.  
  4088.  
  4089.      Make list file 
  4090.  
  4091.      TbClean will generate an output file with a chronological disassembly of
  4092.      the virus being removed. 
  4093.  
  4094.  
  4095. 4.3. Command line options
  4096.  
  4097.      TbClean recognizes option short-keys and option words. The words are
  4098.      easier to memorize, and they will be used in this manual for convenien-
  4099.      ce.
  4100.  
  4101.  
  4102.      option     parameter        short explanation
  4103.      ---------------------------------------------------------------
  4104.      help                         he   help (-? = short help)
  4105.      pause                        pa   enable 'Pause' prompt
  4106.      mono                         mo   force monochrome
  4107.      noav                         na   do not use Anti-Vir.Dat record
  4108.      noheur                       nh   do not use heuristic cleaning
  4109.      noems                        ne   do not use expanded memory
  4110.      showloop                     sl   show every loop iteration
  4111.      list       [=<filename>]     li   create list file
  4112.  
  4113.  
  4114.      Below, all command line options are explained briefly.
  4115.  
  4116.      help (he)
  4117.      If you specify this option TbClean displays the contents of the TBCLE-
  4118.      AN.HLP file if it is available in the home directory of TbClean.  If you
  4119.      specify the '?' option you will get the summarized help info as listed
  4120.      above.
  4121.  
  4122.      pause (pa)
  4123.      TbClean will stop disassembling information after each full screen to
  4124.      let you examine the results.
  4125.  
  4126.      mono (mo)
  4127.      This option forces TbClean to refrain from using colors in the screen
  4128.      output. This might enhance the screen output on some LCD screens or
  4129.      color-emulating monochrome systems.
  4130.  
  4131.      noav (na)
  4132.      If this option is specified, TbClean will act as if there were no Anti-
  4133.      Vir.Dat records available and will therefore perform heuristic cleaning.
  4134.  
  4135.      noheur (nh)
  4136.      If this option is specified, TbClean will not try to apply heuristic
  4137.      cleaning, even when there are no Anti-Vir.Dat records available.
  4138.  
  4139.  
  4140.  
  4141.  
  4142.                                      III - 35
  4143. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4144.  
  4145.  
  4146.      noems (ne)
  4147.      If specified, TbClean will not detect the presence of expanded memory
  4148.      and will use it in heuristic mode. You may disable EMS usage if it is
  4149.      too slow, or if your expanded memory
  4150.      manager is not very stable.
  4151.  
  4152.      showloop (sl)
  4153.      By default TbClean keeps track of looping conditions to keep an iterati-
  4154.      on that would be emulated thousands of times from being listed on your
  4155.      screen. With this option TbClean 'works out' every loop. 
  4156.  
  4157. =>   Note that TbClean will perform at a drastically reduced speed. Do not
  4158.      combine this option with the 'list' option, because the list file might
  4159.      grow too big.
  4160.  
  4161.      list [=<filename>] (li)
  4162.      TbClean will generate an output file with a chronological disassembly of
  4163.      the virus being removed. 
  4164.  
  4165.      Examples
  4166.           TbClean VIRUS.EXE
  4167.  
  4168.      TbClean will make a backup with the name VIRUS.VIR and it will disinfect
  4169.      VIRUS.EXE
  4170.  
  4171.           TbClean VIRUS.EXE TEST.EXE
  4172.  
  4173.      TbClean will copy VIRUS.EXE to TEST.EXE and disinfect
  4174.      TEST.EXE
  4175.  
  4176.  
  4177. 4.4. The cleaning process
  4178.  
  4179.      Choose 'Start cleaning' in the TBAV menu. Now you specify the name of
  4180.      the file that has to be cleaned. Suppose you want an infected program
  4181.      file named 'virus.exe' to be cleaned:
  4182.  
  4183.      Enter name of program to clean. TbClean will create a backup first!
  4184.                C:\VIRUS\VIRUS.EXE 
  4185.  
  4186.      The ThunderBYTE utility cleans on a file-by-file approach: clean one
  4187.      file, verify the result, and proceed with the next file. This helps you
  4188.      to keep track of which file is clean, which file is damaged and should
  4189.      be restored from a backup, and which
  4190.      file is still infected.
  4191.  
  4192.      Enter name of cleaned file. Keep blank if infected program may be
  4193.      changed.
  4194.                C:\VIRUS\TEST.EXE
  4195.  
  4196.      By specifying a different name (eg. 'test.exe') you indicate that the
  4197.      cleaned file may not overwrite the original .exe file. In this example
  4198.  
  4199.                                      III - 36
  4200. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4201.  
  4202.  
  4203.      TbClean will copy VIRUS.EXE to TEST.EXE and disinfect TEST.EXE. Next,
  4204.      TbClean will start the cleaning process.  
  4205.  
  4206.      If you do not specify a backup filename, TbClean will create a backup
  4207.      with the '.vir' extension (eg. VIRUS.VIR) and it will disinfect the .exe
  4208.      file.
  4209.  
  4210.  
  4211.      +-----------------------------------------------------------------+
  4212.      |  Thunderbyte clean utility v6.03 (C) 1992-93 Thunderbyte B.V.   |
  4213.      +---------Infected state----------++---------Original state-------+
  4214.      | Entry point (CS:IP)   34BF:0012 || Entry point (CS:IP) 34BF:0012|
  4215.      | File length                     || File length         UNKNOWN! |
  4216.      | Cryptographic CRC     9F90F52A  || Cryptographic CRC   UNKNOWN! |
  4217.      +---------------------------------++------------------------------+
  4218.      |                                                                 |
  4219.      | Starting clean attempt. Analyzing infected file...              |
  4220.      | Anti-Vir not found: original state unknown. Trying emulation... |
  4221.      | Emulation terminated:                                           |
  4222.      |                                                                 |
  4223.      | C:\VIRUS\TEST.EXE                                               |
  4224.      | CS:IP    Instruction     AX  BX  CX  DX  DS  SI  ES  DI  SS  SP |
  4225.      | 9330:0101  mov ah,40    FFFE9330FFFFEFFFD382FFEDEFFEFFFF9520007E|
  4226.      | 9330:0103  mov bx,0002  40FE9330FFFFEFFFD382FFEDEFFEFFFF9520007E|
  4227.      | 9330:0106  mov cx,0016  40FE0002FFFFEFFFD382FFEDEFFEFFFF9520007E|
  4228.      | 9330:0109  mov dx,cs    40FE00020016EFFFD382FFEDEFFEFFFF9520007E|
  4229.      | 9330:010B  mov ds,dx    40FE000200169330D382FFEDEFFEFFFF9520007E|
  4230.      | 9330:010D  mov dx,0117  40FE0002001693309330FFEDEFFEFFFF9520007E|
  4231.      | 9330:0110  int 21       40FE0002001601179330FFEDEFFEFFFF9520007E|
  4232.      | 9330:0112  mov ax,4CFF  40FE0002001601179330FFEDEFFEFFFF9520007E|
  4233.      | 9330:0115  int 21       4CFF0002001601179330FFEDEFFEFFFF9520007E|
  4234.      | 9330:0115  <End of emulation>                                   |
  4235.      +-----------------------------------------------------------------+ 
  4236.  
  4237.      While Cleaning
  4238.  
  4239.      TbClean will display as much information as possible about the current
  4240.      operation, as illustrated above. All the major actions will be in the
  4241.      emulation window, displaying a disassembly and the register contents of
  4242.      the program under scrutiny, along with a progress report. The status
  4243.      windows reveal useful details of the infected file and, if TbClean can
  4244.      find a suitable Anti-Vir.Dat file, its original status. You may abort
  4245.      the cleaning process by pressing <Ctrl-Break>.
  4246.  
  4247.  
  4248.      The job isn't done yet    
  4249.  
  4250.      A successful purge is not the end of the story! Your job is only parti-
  4251.      ally completed. Some viruses damage data files. They could randomly
  4252.      change bytes on your disks, swap sectors, or perform other nasty tricks.
  4253.      A cleaning utility will never be able to repair your data! Check your
  4254.      data files thoroughly and consult a viral expert to find out what the
  4255.  
  4256.                                      III - 37
  4257. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4258.  
  4259.  
  4260.      virus is capable of doing. If there is any doubt, restoring the data is
  4261.      definitely the most reliable option.
  4262.  
  4263. =>   Under no circumstances should you continue to use cleaned software!
  4264.  
  4265.      Cleaning is a temporary solution to allow you to delay a large restore
  4266.      operation until the first available slack period. You should not rely on
  4267.      a cleaned program for any length of time.  Please, don't take this as a
  4268.      put down of antiviral cleaning agents. If your data is valuable to you,
  4269.      you should care for it as much as possible, and sticking to original
  4270.      software only is no more than an elementary precaution. In other words,
  4271.      restore the original programs as soon as possible!
  4272.  
  4273.  
  4274.      Cleaning Limitations
  4275.  
  4276.      Although TbClean has a very high success rate and is able to clean
  4277.      programs that other cleaners refuse to process, not all viruses can be
  4278.      removed, and not all files can be cleaned. 
  4279.  
  4280.      Viruses that cannot be removed from an infected file:
  4281.  
  4282.      Overwriting viruses. 
  4283.  
  4284.      This type of virus does not add itself to the end of the original
  4285.      program, they just copy themselves over the original file. They do not
  4286.      attempt to start the original program but they will simply return you to
  4287.      DOS after they are activated or will hang the machine. Since the origi-
  4288.      nal file is overwritten and damaged, no cleaner can remove the virus. 
  4289.  
  4290.      Some encrypted viruses. 
  4291.  
  4292.      TbClean is usually able to decrypt the virus. However, some viruses use
  4293.      anti-debugger features that TbClean cannot cope with yet. 
  4294.  
  4295.  
  4296.      The way some program files are constructed makes them impossible to
  4297.      clean and reinstatement will be the only option. This category includes:
  4298.  
  4299.      EXE-programs with internal overlays. 
  4300.  
  4301.      TbScan marks these files with an 'i' flag. Any infection is bound to
  4302.      cause major damage to these files. Some viruses recognize such programs
  4303.      and do not infect them, but most viruses infect these programs anyway,
  4304.      and corrupt the program. No cleaner can repair such damage.
  4305.  
  4306.      Programs with sanity check routines. 
  4307.  
  4308.      Some programs - mostly anti-virus software or copy-protected programs -
  4309.      perform some kind of sanity check. Heuristic cleaning of an infected
  4310.      program normally results in a program that is not physically identical
  4311.      to the original. Although the virus is removed from the program and the
  4312.  
  4313.                                      III - 38
  4314. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4315.  
  4316.  
  4317.      program is functionally identical to the original, the sanity check will
  4318.      usually detect the slight changes and abort the program.
  4319.  
  4320.  
  4321.      Multiple files cleaning
  4322.  
  4323.      TbClean has no provisions for cleaning multiple programs in one run.
  4324.      There are two reasons for this omission:
  4325.  
  4326.      -    TbClean can not search for viruses automatically since it does not
  4327.           know any virus.
  4328.  
  4329.      -    We highly recommend to clean the system on a file-by-file approach.
  4330.           Clean one file, verify the result, and proceed with the next file.
  4331.           This helps you to keep track of which file is clean, which file is
  4332.           damaged and should be restored from a backup, and which file is
  4333.           still infected.
  4334.  
  4335.  
  4336.  
  4337.  
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343.  
  4344.  
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.  
  4353.  
  4354.  
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.  
  4361.  
  4362.  
  4363.  
  4364.  
  4365.  
  4366.  
  4367.  
  4368.  
  4369.  
  4370.                                      III - 39
  4371. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4372.  
  4373.  
  4374. 5. Ongoing virus prevention: TbMon
  4375.  
  4376.      The Purpose of TbMon utilities
  4377.  
  4378.      TbMon is a set of three memory resident anti-virus utilities:
  4379.  
  4380.      TbMem     Detects attempts of programs to remain resident in                                                                  memory, and
  4381.                makes sure that no program can remain resident in memory
  4382.                without permission.
  4383.  
  4384.      TbFile    detects attempts of programs to infect other programs. 
  4385.  
  4386.      TbDisk    detects attempts of programs to write directly to the disk
  4387.                (without using DOS), attempts to format, etc.
  4388.  
  4389.      Instructions on how to use these utilities are presented below. 
  4390.  
  4391.  
  4392.      How to use TbMon programs
  4393.  
  4394.      Loading TBMon programs
  4395.      The TbMon programs are all loaded in the same way. For specific informa-
  4396.      tion on each of the programs, such as commandline options, please refer
  4397.      to the appropriate sections in this chapter.
  4398.  
  4399.      There are three possible ways to start the TbMon programs:
  4400.  
  4401.      From the DOS prompt or within the Autoexec.Bat file:
  4402.           <path>Tbxx
  4403.  
  4404.      From the Config.Sys as a TSR (Dos 4+):
  4405.           Install=<path>Tbxxx.Exe
  4406.  
  4407.      The "Install=" Config.Sys command is NOT available in DOS 3.xx.
  4408.  
  4409.      To invoke a TbMon program from the Config.Sys as a device driver:
  4410.           Device=<path>Tbxxx.Exe
  4411.  
  4412.  
  4413.      A TbMon program should always work correctly after being started from
  4414.      within the Autoexec.Bat. Unlike other anti-virus products, the Thunder-
  4415.      byte anti-virus utilities can be loaded before the network is started
  4416.      without losing the protection after the network is started.
  4417.  
  4418.  
  4419.      Highload TBMon programs
  4420.  
  4421.      In addition to the three invocation possibilities DOS 5 users can
  4422.      "highload" TbMon programs in a UMB (upper memory block) if it is availa-
  4423.      ble:
  4424.  
  4425.           LoadHigh <path>Tbxxx.Exe
  4426.  
  4427.                                      III - 40
  4428. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4429.  
  4430.  
  4431.  
  4432.      Within the Config.Sys file a TbMon program can also be loaded high:
  4433.  
  4434.           DeviceHigh=<path>Tbxxx.Exe
  4435.  
  4436.  
  4437.      TBMon and MS-Windows
  4438.  
  4439.      Windows users should load a TbMon program BEFORE starting Windows. If
  4440.      you do that there is only one copy of the TbMon program in memory, but
  4441.      every DOS-window will nevertheless have the fully functional TbMon
  4442.      program in it. The TbMon program detects if Windows is starting up, and
  4443.      will switch itself into multitasking mode if necessary. You can even
  4444.      disable the program in one window without affecting the functionality in
  4445.      another window.
  4446.  
  4447.  
  4448.      Command line options
  4449.  
  4450.      All TbMon utilities can be loaded in combination with several options.
  4451.      You may specify the options listed below in combination with all three
  4452.      utilities. The specific options are described in the relevant sections.
  4453.  
  4454.      help (?)
  4455.      If you specify this option the TbMon program will show you the brief
  4456.      help as shown above.
  4457.  
  4458.      off (d)
  4459.      If you specify this option the TbMon program will be disabled, but it
  4460.      will remain in memory.
  4461.  
  4462.      on (e)
  4463.      If you use this option the TbMon program will be activated again after
  4464.      you disabled it with the 'off' option.
  4465.  
  4466.      remove (r)
  4467.      This option can be used to remove the resident part of the TbMon program
  4468.      from your system's memory. All memory used by the TbMon program will be
  4469.      released. Unfortunately, the removal of a TSR is not always possible. 
  4470.      The TbMon program checks whether it is safe to remove the resident part
  4471.      from memory. If it is not safe it just disables the TbMon program. A TSR
  4472.      can not be removed if another TSR has been started after it. If this
  4473.      happens with the TbMon program, it will completely disable itself.
  4474.  
  4475.      secure (s)
  4476.      If you specify this option, the user is not allowed to give permission.
  4477.      All warnings are automatically answered with 'Abort'. It is also not
  4478.      possible anymore to unload the utilities with 'remove' or to disable
  4479.      them with option 'off'.
  4480.  
  4481.  
  4482. 5.1. TbMem
  4483.  
  4484.                                      III - 41
  4485. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4486.  
  4487.  
  4488.      The Purpose of TbMem
  4489.  
  4490.      Most viruses remain resident in memory once they have been executed.
  4491.      While resident in memory, they may have many opportunities to infect
  4492.      other files in the background, interfere with the system operation, hide
  4493.      themselves from virus scanners or checksummers, and/or perform other
  4494.      nasty tasks.
  4495.  
  4496.      On the other hand, because so many viruses remain resident in memory, it
  4497.      is easy to detect most of them once the process of becoming resident in
  4498.      memory is monitored.
  4499.  
  4500.      TbMem monitors the system and ensures that no program will remain
  4501.      resident in memory without permission. This will draw attention to any
  4502.      software that attempts to remain resident, thereby reducing the likeli-
  4503.      hood that a virus will be able to go unnoticed. TbMem also protects
  4504.      CMOS.
  4505.  
  4506.  
  4507.      What is a memory-resident program?
  4508.  
  4509.      Most programs will be invoked by a command on the DOS command line,
  4510.      perform some task, and finally terminate, placing you right back where
  4511.      you started.
  4512.       
  4513.      Some programs however continue to operate after they are terminated.
  4514.      These programs load themselves into memory of your PC, remain resident
  4515.      in the memory and perform some task in the background. Programs in this
  4516.      category are disk caches, print spoolers, network software, etc. These
  4517.      programs are often referred to as 'TSR-software', which means 'Termina-
  4518.      te-and-Stay-Resident'.
  4519.  
  4520.      Most viruses remain resident in memory too, and that is why the process
  4521.      of becoming resident in memory should be controlled in some way, prefe-
  4522.      rably by TbMem.
  4523.  
  4524.      TbMem offers you the option to abort the program before it can become
  4525.      resident. TbMem will guard the DOS TSR function calls, while also
  4526.      monitoring important interrupts and memory structures. TbMem uses the
  4527.      Anti-Vir.Dat records to determine whether a program is allowed to remain
  4528.      resident in memory.
  4529.  
  4530.      Many common TSRs will be recognized by TbSetup. However, if TbSetup
  4531.      doesn't recognize a TSR, TbMem will ask your permission for the TSR to
  4532.      load. Permission information will be maintained in the Anti-Vir.Dat
  4533.      files, to prevent TbMem from bothering you when an approved TSR is
  4534.      loading.
  4535.  
  4536.      TbMem will also check the contents of the CMOS configuration memory
  4537.      after each program termination, to make sure that programs do not change
  4538.      it unnoticed. TbMem offers the possibility to restore the CMOS configu-
  4539.      ration when it has been changed. Once you have 'taught' TbMem which
  4540.  
  4541.                                      III - 42
  4542. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4543.  
  4544.  
  4545.      programs are TSRs and which are not on one PC, you can use TbSetup to
  4546.      set the permission flag of these files on other machines.
  4547.  
  4548.      TbMem installs a hot key that can be used to escape from nearly all
  4549.      programs.
  4550.  
  4551.      TbMem is fully network compatible. It does not require you to reload the
  4552.      checker after logging on to a network. 
  4553.  
  4554.  
  4555.      How to use TbMem
  4556.  
  4557.      Since TbMem is a memory resident program, it can be executed and confi-
  4558.      gured from the command line or from within a batch file. TbMem should
  4559.      however be started automatically and as soon as the computer boots up,
  4560.      preferably during the execution of Config.Sys or Autoexec.Bat file. 
  4561.  
  4562.      Be sure TbDriver has already been loaded - TbMem wil refuse to start up
  4563.      without it.
  4564.  
  4565.  
  4566.      Command line options
  4567.  
  4568.      It is possible to specify options on the command line. The upper four
  4569.      options are always available, the other options are available only if
  4570.      TbMem is not memory resident.
  4571.  
  4572.  
  4573.      option  parameter      short explanation
  4574.      --------------------------------------------------------------
  4575.      help                    ?    display this helpscreen
  4576.      off                     d    disable checking
  4577.      on                      e    enable checking
  4578.      remove                  r    remove TbMem from memory
  4579.  
  4580.      secure                  s    do not execute unauthorized TSRs 
  4581.      hotkey  <keycode>       k    specify keyboard scancode for hotkey
  4582.      nocancel                n    do not install cancel hot key
  4583.      nocmos                  m    do not protect CMOS
  4584.  
  4585.  
  4586.      help (?)
  4587.      If you specify this option TbMem will show you the brief help as shown
  4588.      above.
  4589.  
  4590.      off (d)
  4591.      If you specify this option TbMem will be disabled, but it will remain in
  4592.      memory.
  4593.  
  4594.      on (e)
  4595.      If you use this option TbMem will be activated again after you disabled
  4596.      it with the 'off' option.
  4597.  
  4598.                                      III - 43
  4599. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4600.  
  4601.  
  4602.      remove (r)
  4603.      This option can be used to remove the resident part of TbMem from your
  4604.      system's memory. All memory used by TbMem will be released. Unfortunate-
  4605.      ly, the removal of a TSR (like TbMem) is not always possible. TbMem
  4606.      checks whether it is safe to remove the resident part from memory. If it
  4607.      is not safe it just disables TbMem. A TSR can not be removed if another
  4608.      TSR has been started after it. If this happens with TbMem it will
  4609.      completely disable itself.
  4610.  
  4611.      secure (s)
  4612.      TbMem normally asks the user to continue or to cancel when a program
  4613.      tries to remain resident in memory. In some business environments
  4614.      however this choice should not be made by employees. By using option
  4615.      'secure' it is no longer possible to execute new or unknown resident
  4616.      software. It is also no longer possible to use option 'remove' or 'off'.
  4617.  
  4618.      nocancel (n)
  4619.      TbMem normally installs the program cancel hot key (Ctrl-Alt-Insert). If
  4620.      you do not want this, specify this option. This also saves a few bytes
  4621.      of memory.
  4622.  
  4623.      hotkey (k)
  4624.      TbMem offers you a reliable way to escape from any program by pressing a
  4625.      special key combination. This can be used to escape from programs that
  4626.      'hang', but of course also to escape from software that seems to be
  4627.      malicious (although powering down and rebooting from a write-protected
  4628.      system disk is recommended). 
  4629.  
  4630.      The program cancel hot key of TbMem is by default Ctrl-Alt-Insert. If
  4631.      you wish, you can specify another keyboard option with option 'hotkey
  4632.      =<keycode>'. The scancode is specified in a 4 digit hexadecimal number.
  4633.      The far left bytes specify the shift-key mask, the far right bytes
  4634.      specify the keyboard scancode. Consult your machine manual for a list of
  4635.      scancodes. The default scancode is 0C52h (Ctrl-Alt-Insert). The scancode
  4636.      for Ctrl-Alt-Escape is 0C01h.
  4637.  
  4638.      nocmos (m)
  4639.      TbMem normally protects the CMOS memory if available. If you do not want
  4640.      TbMem to do this you can specify this option.
  4641.  
  4642.      Examples
  4643.           C:\utils\TbMem
  4644.      or:
  4645.           Device=C:\utils\TbMem.Exe
  4646.  
  4647.  
  4648.      TbMem in process
  4649.  
  4650.      If TbMem detects that a program tries to remain resident in memory, a
  4651.      pop-up window will appear with a message. You can either choose to
  4652.      continue, or to abort the program invoca-tion. If you answer 'NO' to the
  4653.      question 'Remove program from memory?' the program will continue undis-
  4654.  
  4655.                                      III - 44
  4656. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4657.  
  4658.  
  4659.      turbed, and TbMem places a mark in the Anti-Vir.Dat file about this
  4660.      program. Next time you invoke the same resident program, TbMem will not
  4661.      disturb you again.
  4662.  
  4663.      There are a lot of programs which normally remain resident in memory,
  4664.      such as disk caches, print spoolers, etc. How does TbMem distinguish
  4665.      between these programs and viruses?
  4666.  
  4667.      TbMem uses the Anti-Vir.Dat records generated by TbSetup to keep track
  4668.      of which files are normal TSRs and which are not. Most common resident
  4669.      software will be marked as such by TbSetup, so you don't have to worry
  4670.      about these files. 
  4671.  
  4672.      If TbMem pops up with the message that a program tries to remain resi-
  4673.      dent in memory, you have to consider the purpose of the program mentio-
  4674.      ned. Is the program supposed to continue to operate in the background?
  4675.      The answer is obviously yes if the program mentioned is a disk cache,
  4676.      print spooler, pop-up utility or system extension software.
  4677.  
  4678.      However, if the message appears after you have finished a text proces-
  4679.      sing job, or terminated a database or spreadsheet application, something
  4680.      is definitely wrong! You ought to terminate the program and use a virus
  4681.      scanner to check the system.
  4682.  
  4683.      The same applies when software that operates normally without staying
  4684.      resident in memory suddenly changes its behavior and tries to remain
  4685.      resident in memory.
  4686.  
  4687.  
  4688. 5.2. TbFile
  4689.  
  4690.      The Purpose of TbFile
  4691.  
  4692.      The two most perilous viral categories are the bootsector and the file
  4693.      variants. File viruses all have a common purpose -they infect programs.
  4694.      Infecting a program involves very unusual file manipulations that are
  4695.      quite dissimilar to normal files handling procedures, so in order to
  4696.      detect viral activity it is essential to keep an eye out for program
  4697.      file changes involving peculiar actions.
  4698.  
  4699.      TbFile monitors the system and detects attempts of programs to infect
  4700.      other programs. Unlike other file guards, TbFile monitors the system
  4701.      only for virus specific file modifications. TbFile won't generate an
  4702.      alarm when a program modifies itself for configuration purposes, nor
  4703.      does it bother you when you update a program or create one yourself.
  4704.      Running an average system, configurations should never cause a false
  4705.      alarm.
  4706.  
  4707.      TbFile not only detects attempts to infect programs, it also offers you
  4708.      the option to abort the infection process and to continue the program.
  4709.  
  4710.  
  4711.  
  4712.                                      III - 45
  4713. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4714.  
  4715.  
  4716.      TbFile detects other suspicious activities - including setting the
  4717.      seconds value of time stamps to an illegal value.
  4718.  
  4719.      TbFile has a very sophisticated infection detector and it will not give
  4720.      a false alarm when you perform standard file operations. In normal
  4721.      configurations you will never get a false alarm! 
  4722.  
  4723.      Files can be protected against unwanted modifications by means of the
  4724.      read-only attribute. Without TbFile this standard DOS protection can be
  4725.      circumvented easily. TbFile however makes sure any attempts to sabotage
  4726.      the readonly attribute will not go undetected. This gives you added
  4727.      security by letting you use an uncomplicated method to fully protect
  4728.      your files against destruction and infection.
  4729.  
  4730.      TbFile is fully network compatible. It does not require you to reload
  4731.      the checker after logging on to a network. Other resident anti-virus
  4732.      utilities force you to choose between protection before the network is
  4733.      started, or protection after the network is started, but not both.
  4734.  
  4735.  
  4736.      Command line options
  4737.  
  4738.      It is possible to specify options on the command line. The upper four
  4739.      options are always available, the other options are only available if
  4740.      TbFile is not already memory-resident.
  4741.  
  4742.  
  4743.      option     short explanation
  4744.      ---------- ----- -----------------------
  4745.  
  4746.      help       ?     display this helpscreen
  4747.      off        d     disable checking
  4748.      on         e     enable checking
  4749.      remove     r     remove TbFile from memory
  4750.  
  4751.      secure     s     all permissions denied
  4752.      allattrib  a     readonly check on all files
  4753.      compat     c     allow CPM style calls
  4754.  
  4755.      help (?)
  4756.      If you specify this option TbFile will show you the brief help as shown
  4757.      above.
  4758.  
  4759.      off (d)
  4760.      If you specify this option TbFile will be disabled, but it will remain
  4761.      in memory.
  4762.  
  4763.      on (e)
  4764.      If you use this option TbFile will be activated again after you disabled
  4765.      it with the 'off' option.
  4766.  
  4767.      remove (r)
  4768.  
  4769.                                      III - 46
  4770. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4771.  
  4772.  
  4773.      This option can be used to remove the resident part of TbFile from your
  4774.      system's memory.  All memory used by TbFile
  4775.      will be released.
  4776.      Unfortunately, the removal of a TSR (like TbFile) is not always possi-
  4777.      ble.  TbFile checks whether it is safe to remove the resident part from
  4778.      memory. If it is not safe it just disables TbFile. A TSR can not be
  4779.      removed if another TSR has been started after it. If this happens with
  4780.      TbFile it will completely disable itself.
  4781.  
  4782.      secure (s)
  4783.      TbFile normally asks the user to continue or to cancel when a program
  4784.      tries to perform a suspicious operation. In some business environments
  4785.      however this choice should not be made by employees. By using option
  4786.      'secure' it is no longer possible to allow suspicious operations. It is
  4787.      also no longer possible to use options 'off' and 'remove'.
  4788.  
  4789.      allattrib (a)
  4790.      TbFile normally only protects the readonly attribute of executables
  4791.      (program files with the extension COM and EXE). If you want to have the
  4792.      readonly check on all files add option 'allattrib'. In this case you
  4793.      will always get an alarm when an attempt is made to remove the readonly
  4794.      attribute of any file.
  4795.  
  4796.      compat (c)
  4797.      DOS has still some CPM - an earlier operating system - functions left.
  4798.      No DOS program uses these functions anymore, but some viruses use these
  4799.      functions to bypass anti-virus software. TbFile closes these backdoors
  4800.      by default. Option 'compat' prevents this.
  4801.  
  4802.  
  4803.      Examples
  4804.           C:\utils\TbFile allattrib
  4805.      or:
  4806.           Device=C:\utils\TbFile.Exe allattrib
  4807.  
  4808.  
  4809. 5.3. TbDisk
  4810.  
  4811.      The Purpose of TbDisk
  4812.  
  4813.      Many viruses try to damage the data on the disk. They accomplish this by
  4814.      formatting the disk, overwriting the FAT, swapping disk sectors, etc.
  4815.      Almost anything is possible.
  4816.  
  4817.      Another category of malicious software, known as 'bootsector virus
  4818.      droppers', installs a bootsector virus on the disk. The program itself
  4819.      is not a virus, so detection with virus scanners and other anti-viral
  4820.      software is very difficult. The only way to detect such programs is by
  4821.      monitoring their behavior.
  4822.  
  4823.      The main problem lies in the way these programs manage to avoid the
  4824.      usual DOS procedures - they go directly to the BIOS, the Basic In-
  4825.  
  4826.                                      III - 47
  4827. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4828.  
  4829.  
  4830.      put/Output System. That is why you need TbDisk - to monitor the system
  4831.      and to ensure that no program can write directly to disk without permis-
  4832.      sion! It draws attention to any software that attempts to write directly
  4833.      to disk, thereby reducing the likelihood that a virus will remain
  4834.      unnoticed. TbDisk prevents viruses from damaging data on your disk and
  4835.      stops bootsector virus droppers in their tracks.
  4836.  
  4837.      TbDisk will come in handy, too, if you ever need to write protect a hard
  4838.      disk. This bonus feature often helps when testing new software.
  4839.  
  4840.      TbDisk not only informs you when a program tries to write directly to
  4841.      the disk, it also offers you the option to abort the program before it
  4842.      can cause any damage.
  4843.  
  4844.      Detection of 'stealth' techniques. TbDisk is able to detect attempts to
  4845.      single step through the BIOS handler, and even monitor the use of
  4846.      undocumented calls that could cause disk damage. 
  4847.  
  4848.      TbDisk is able to distinguish whether DOS or an application makes direct
  4849.      write attempts via Int 13h. Direct writes are perfectly legal for DOS,
  4850.      but unusual for application software. 
  4851.  
  4852.      TbDisk needs little maintenance. TbDisk uses the Anti-Vir.Dat records to
  4853.      determine if a program is allowed to write directly to the disk, inclu-
  4854.      ding popular disk utilities, which will have been recognized by TbSetup.
  4855.      In the absence of an Anti-vir.Dat record, TbDisk will ask your approval
  4856.      first and, if granted, updates the record accordingly in order to avoid
  4857.      repeated warnings about the same program.
  4858.  
  4859.      TbDisk is fully network compatible. It does not require you to reload
  4860.      the program after logging on to a network. Other resident anti-virus
  4861.      utilities force you to choose between either protection before the
  4862.      network is started, or protection after.
  4863.  
  4864.  
  4865.      How to use TbDisk
  4866.  
  4867.      Loading TBDisk
  4868.  
  4869.      Improper installation can cause excessive amounts of false alarms! If
  4870.      you want to install TbDisk in your Config.Sys or AutoExec.Bat file, it
  4871.      is highly recommended to use the 'install' option of TbDisk first. If
  4872.      the system continues to behave normally and TbDisk does not give false
  4873.      alarms when you copy files on your hard disk, TbDisk is installed
  4874.      correctly and you can remove option 'install'.
  4875.  
  4876.  
  4877.      TBDisk in your Install
  4878.  
  4879.      Failure to use option 'install' when you install TbDisk Config.Sys or
  4880.      AutoExec.Bat file may cause loss of data! Option 'install' causes TbDisk
  4881.      to allow all disk accesses, it will however pop-up a message like it
  4882.  
  4883.                                      III - 48
  4884. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4885.  
  4886.  
  4887.      would do in normal mode. If no false alarms occur when you copy files on
  4888.      your hard disk, TbDisk is installed correctly and option 'install' can
  4889.      be removed.
  4890.  
  4891.      If TbDisk causes false alarms you should load TbDisk further ahead in
  4892.      your Config.Sys or AutoExec.Bat file, until it works as it should do.
  4893.  
  4894.      Unlike the other TBAV utilities it is recommended to load TbDisk after
  4895.      other resident software!  Failure to do so can cause excessive amounts
  4896.      of false alarms!
  4897.  
  4898.  
  4899.      TBDisk and MS-Windows
  4900.  
  4901.      TbDisk detects if Windows is starting up, and will switch itself into
  4902.      multi tasking mode if necessary. You can even disable TbDisk in one
  4903.      window without affecting the functionality in another window.  If you
  4904.      configured Windows to use fast 32-bit disk access you might need TbDisk
  4905.      option 'win32' if Windows displays an error-message.
  4906.  
  4907.  
  4908.      Command line options
  4909.  
  4910.      It is possible to specify options on the command line. The upper four
  4911.      options are always available, the other options are available only if
  4912.      TbDisk is not memory resident.
  4913.  
  4914.  
  4915.      option   short explanation
  4916.      ------   ----- ------------------
  4917.  
  4918.      help      ?    display this helpscreen
  4919.      remove    r    remove TbDisk from memory
  4920.      off       d    disable checking
  4921.      on        e    enable checking
  4922.      wrprot    p    make hard disk write protected
  4923.      nowrprot  n    allow writes to hard disk
  4924.  
  4925.      win32     w    allow Windows 32bit disk access
  4926.      secure    s    deny access without asking
  4927.      nostealth a    do not detect stealth disk access
  4928.      notunnel  t    do not detect tunneling
  4929.      install   i    installation test mode
  4930.  
  4931.  
  4932.      help (?)
  4933.      If you specify this option TbDisk will show you the brief help as shown
  4934.      above. Once TbDisk has been loaded the help option will not show all
  4935.      options anymore.
  4936.  
  4937.      remove (r)
  4938.  
  4939.  
  4940.                                      III - 49
  4941. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4942.  
  4943.  
  4944.      This option can be used to remove the resident part of TbDisk from your
  4945.      system's memory.  All memory used by TbDisk will be released.
  4946.      Unfortunately, the removal of a TSR (like TbDisk) is not always possi-
  4947.      ble.  TbDisk checks whether it is safe to remove the resident part from
  4948.      memory. If it is not safe it just disables TbDisk. A TSR can not be
  4949.      removed if another TSR has been started after it. If this happens with
  4950.      TbDisk it will completely disable itself.
  4951.  
  4952.      off (d)
  4953.      If you specify this option TbDisk will be disabled, but it will remain
  4954.      in memory.
  4955.  
  4956.      on (e)
  4957.      If you use this option TbDisk will be activated again after you disabled
  4958.      it with the 'off' option.
  4959.  
  4960.      wrprot (p)
  4961.      Hard disks are more difficult to protect against writing than floppies,
  4962.      which adds considerably to the risks involved when, for instance,
  4963.      testing new software. Sometimes you might want to find out what this
  4964.      software will do to your hard disk and how this could possibly affect
  4965.      your valuable data. With option 'wrprot' it will be safer to do so.
  4966.      Whenever a program wishes to write to a protected disk you will receive
  4967.      a message such as:
  4968.  
  4969.      "Write protect error writing drive C: A)bort, R)etry, I)gnore?"
  4970.  
  4971.      You may then take appropriate action.
  4972.  
  4973. =>   Note: A software write protection solution is not absolutely reliable.
  4974.      It can be bypassed, but, fortunately, viruses that are actually capable
  4975.      to do so are few and far between. It can be a valuable shield against
  4976.      most malicious software, despite its shortcomings.
  4977.  
  4978.      nowrprot (n)
  4979.      You can use this option to undo the option 'wrprot'.
  4980.  
  4981.      win32 (w)
  4982.      Windows 386 Enhanced Mode uses some undocumented DOS calls to retrieve
  4983.      the original BIOS disk handler when 32-bit disk access has been enabled.
  4984.      Since TbDisk guards these calls, 32-bit disk access will no longer be
  4985.      possible, unless you specify option 'win32' when TbDisk is initialized. 
  4986.  
  4987. =>   Note: Use this option, which reduces antiviral security to some extent,
  4988.      only in Windows 386 Enhanced Mode with fast 32-bit disk access enabled!
  4989.  
  4990.      secure (s)
  4991.      TbDisk normally asks whether the user wants to continue or cancel when a
  4992.      program tries to perform direct disk access. In some business environ-
  4993.      ments, however, this should not be left up to employees. Option 'secure'
  4994.      disables direct disk access permission to new or unknown software. It
  4995.      also disables option 'off' and 'remove'.
  4996.  
  4997.                                      III - 50
  4998. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  4999.  
  5000.  
  5001.      nostealth (a)
  5002.      TbDisk tries to detect direct calls into the BIOS. If such an  attempt
  5003.      occurs, TbDisk pops up with a message that the disk is accessed in an
  5004.      unusual way. If this feature causes false alarms, you can use this
  5005.      option to turn it off.
  5006.  
  5007.      notunnel (t)
  5008.      One of TbDisk's regular tasks is to detect tunneling attempts on the
  5009.      part of viruses. 'Tunneling' is a technique used by viruses to determine
  5010.      the location of the BIOS system code in memory, and to use that address
  5011.      to communicate with the BIOS directly. This will inactivate all TSR
  5012.      programs, including resident anti-virus software. TbDisk can detect
  5013.      'tunneling' attempts in advance and informs you about this. Some other
  5014.      antiviral products employ tunneling techniques also to bypass resident
  5015.      viruses, causing a false alarm. If you make use of such other anti-virus
  5016.      products, you may use the option 'notunnel' to disable tunneling-detec-
  5017.      tion.
  5018.  
  5019.      install (i)
  5020.      Incorrect installation may result in a large number of false alarms. You
  5021.      should use option 'install' when installing TbDisk, which will reduce
  5022.      the risk of cancelling a valid disk write operation as a result of false
  5023.      alarms.
  5024.  
  5025.  
  5026.      TbDisk in process
  5027.  
  5028.      What is Direct Disk Access?  
  5029.      Programs often access files, usually through the operating system (DOS).
  5030.      Whenever a program wants to update a file, for example, it asks DOS to
  5031.      write the data to disk. There are however also possibilities to write to
  5032.      a disk without using DOS. This is called 'direct disk access'.
  5033.  
  5034.      Normal programs do not write to the disk directly. However, there are
  5035.      some programs that need to write to disk directly. Programs in this
  5036.      category are:
  5037.  
  5038.      -    Format utilities. A disk can only be formatted by direct disk
  5039.           access.
  5040.  
  5041.      -    Disk diagnosis utilities (such as the NORTON disk doctor, DOS
  5042.           chkdsk, etc.)
  5043.  
  5044.      -    Disk optimizers.
  5045.  
  5046.      As many viruses are able to perform direct disk access as well, it is
  5047.      essential to have some control over all this. TbDisk can distinguish
  5048.      between legitimate programs and a virus with the help of the Anti-
  5049.      Vir.Dat records, generated by TbSetup under your guidance.
  5050.  
  5051.  
  5052.      Detecting direct disk accesses
  5053.  
  5054.                                      III - 51
  5055. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5056.  
  5057.  
  5058.      Whenever TbDisk pops up with the message that a program accesses to the
  5059.      disk directly, consider its purpose carefully. While it is perfectly
  5060.      acceptable for a format utility or a disk optimizer to format or edit
  5061.      disk sectors, the same cannot be said about a word processor or databa-
  5062.      se. When TbDisk warns you that a spreadsheet or some other 'normal'
  5063.      program is about to format a sector, you can be sure that something is
  5064.      wrong. Terminate the program -pronto!- and check things out with a virus
  5065.      scanner before the worst can happen.
  5066.  
  5067.  
  5068.  
  5069.  
  5070.  
  5071.  
  5072.  
  5073.  
  5074.  
  5075.  
  5076.  
  5077.  
  5078.  
  5079.  
  5080.  
  5081.  
  5082.  
  5083.  
  5084.  
  5085.  
  5086.  
  5087.  
  5088.  
  5089.  
  5090.  
  5091.  
  5092.  
  5093.  
  5094.  
  5095.  
  5096.  
  5097.  
  5098.  
  5099.  
  5100.  
  5101.  
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.  
  5109.  
  5110.  
  5111.                                      III - 52
  5112. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5113.  
  5114.  
  5115. 6. TBAV Tools
  5116.  
  5117.  
  5118. 6.1. TbUtil
  5119.  
  5120.      The Purpose of TbUtil
  5121.  
  5122.      TbUtil provides a defense against partition table and bootsector viru-
  5123.      ses:
  5124.  
  5125.      TbUtil copies the partition table, bootsector and CMOS data area into a
  5126.      file. On a regular base you can use TbUtil to compare both the current
  5127.      and the copied versions of the partition table, bootsector and CMOS data
  5128.      area. After a (virus) accident you can restore the copy with the TbUtil
  5129.      program. 
  5130.  
  5131.      TbUtil removes a partition table virus without having to low-level
  5132.      format the hard disk, even if there is no backup of the partition table.
  5133.  
  5134.      TbUtil removes bootsector viruses.
  5135.  
  5136.      TbUtil creates a partition table that has some first-line virus defenses
  5137.      built-in.
  5138.  
  5139.      TbUtil replaces the infected or clean bootsector by a safe TBAV boots-
  5140.      ector.
  5141.  
  5142.  
  5143.      What is a partition table?
  5144.  
  5145.      A partition is a logical drive on a hard disk. A physical hard disk can
  5146.      contain multiple DOS partitions. Every DOS partition has its own drive
  5147.      ID (eg. C: D: E:). The partition table contains the disk lay-out and the
  5148.      start and end cylinder of every partition. The partition table also
  5149.      carries information about the operating system of a partition and which
  5150.      partition should be used to boot. The partition table is always located
  5151.      at the first sector of the hard disk. It is called the "Master Boot
  5152.      Record".
  5153.  
  5154.  
  5155.      No format needed
  5156.  
  5157.      Unlike most file viruses, partition table viruses are hard to remove.
  5158.      The only solution is to low-level format the hard disk and to make a new
  5159.      partition table, or to make use of undocumented DOS commands.
  5160.  
  5161.      TbUtil makes a backup of the partition table and bootsector, and will
  5162.      use this backup to compare and restore both the original partition table
  5163.      and bootsector once they have been infected. You don't have to format
  5164.      your disk anymore to get rid of a partition table or bootsector virus.
  5165.      The program can also restore the CMOS configuration.
  5166.  
  5167.  
  5168.                                      III - 53
  5169. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5170.  
  5171.  
  5172.      If desired TbUtil replaces the partition table code with an immunized
  5173.      partition table, containing facilities against viruses. The TbUtil
  5174.      partition code will be executed before the bootsector gains control, so
  5175.      it is able to check the bootsector in a clean environment. Once the
  5176.      bootsector is executed it is difficult to check it, because the virus is
  5177.      already resident in memory and can fool any protection. Instead of
  5178.      booting from a clean DOS diskette just to inspect the bootsector, the
  5179.      TbUtil partition code performs a CRC calculation on the bootsector just
  5180.      before control is passed to it.
  5181.  
  5182.      If the bootsector has been modified the TbUtil partition code will warn
  5183.      you about this. The TbUtil partition code also checks the RAM layout and
  5184.      informs you when it has changed. It does this every time you boot from
  5185.      your hard disk.
  5186.  
  5187.      TbUtil can replace infected and clean diskette bootsectors by a new
  5188.      bootsector, which has advantages over the standard bootsector. It has
  5189.      bootsector virus detection capabilities, it performs a sanity check, and
  5190.      it offers you the possibility to redirect the boot process to the hard
  5191.      disk without opening the diskette drive door.
  5192.  
  5193.  
  5194.      How to use TbUtil
  5195.  
  5196.      The TbUtil module contains several programs, which can be executed from
  5197.      the TbUtil menu or in case of an emergency from a TbUtil recovery
  5198.      diskette using the DOS command line. TbUtil allows some additional menu
  5199.      options. These options are discussed below. The corresponding command
  5200.      line parameters are listed in chapter 6 of this section.
  5201.  
  5202.  
  5203.      The system maintenance menu
  5204.  
  5205.      This menu contains the actual TbUtil program. The program takes care of
  5206.      saving, restoring or comparing the system configuration of your PC. The
  5207.      backup system configuration is stored on a diskette in a file with
  5208.      either a default name or a name you can specify yourself.
  5209.  
  5210. =>   Warning: You can only restore a system configuration datafile on the
  5211.      machine which created the datafile. If not, restoring such a file will
  5212.      make your PC inaccessible!
  5213.  
  5214.  
  5215.  
  5216.  
  5217.  
  5218.  
  5219.  
  5220.  
  5221.  
  5222.  
  5223.  
  5224.  
  5225.                                      III - 54
  5226. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5227.  
  5228.  
  5229.      +----Main menu-----+
  5230.      |  Confi+-----------TbUtil menu-----------+
  5231.      |  TbSet|  Syste+-------System maintenance-------+
  5232.      |  TbSca|  Immun|  Execute TbUtil                |
  5233.      |  TbUti|  Immun|  Describe this machine         |
  5234.      |  TbCLe|  Immun|  Save system configuration     |
  5235.      |  TBAV +-------|v Compare system configuration  |
  5236.      |  Documentation|  Restore system configuration  |
  5237.      |  Register TBAV|v process CMOS memory           |
  5238.      |  Quit and save|v process Partition code        |
  5239.      |  eXit (no save|v process Bootsector            |
  5240.      +---------------+--------------------------------+
  5241.  
  5242.  
  5243.      Execute TbUtil
  5244.  
  5245.      Before activating this option, you must select one of the optional
  5246.      functions: save, compare or restore the system configuration. Toggle to
  5247.      the desired option and type <ENTER>. A checkmark will indicate the
  5248.      selected option.
  5249.  
  5250.  
  5251.      Describe this machine 
  5252.  
  5253.      Enter a meaningful description of the machine. Enter something like "AT
  5254.      12MHz, 4Mb, room 12, Mr. Smith". You do NOT have to remember it, TbUtil
  5255.      will display it on the screen when comparing or restoring, but it helps
  5256.      you to verify that the data file belongs to the machine.
  5257.  
  5258.  
  5259.      Save system configuration 
  5260.  
  5261.      This option stores the partition table, bootsector and CMOS data area
  5262.      into the TbUtil data file. 
  5263.  
  5264. =>>  Attention! Since the PC is completely inaccessible to DOS if the parti-
  5265.      tion table gets damaged, it is HIGHLY RECOMMENDED to store both the
  5266.      TbUtil data file and the program TbUtil.Exe itself on a diskette! It is
  5267.      not nice if the partition table is destroyed and the only solution to
  5268.      the problem resides on the same inaccessible disk...
  5269.  
  5270.      When loading TbUtil from the command line you must specify a filename
  5271.      after the 'store' option. Using the TBAV menu, you may use the default
  5272.      filename 'TBUTIL.DAT'. If you own more than one PC, it is advisable to
  5273.      create one TbUtil diskette with all TbUtil data files of all your PC's
  5274.      on it. Use the extension of the file for PC identification, eg.:
  5275.  
  5276.           a:TbUtil.<number>
  5277.  
  5278.  
  5279.  
  5280.  
  5281.  
  5282.                                      III - 55
  5283. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5284.  
  5285.  
  5286.      Compare system configuration 
  5287.  
  5288.      This option enables you to check on a regular basis that everything is
  5289.      still OK. If you specify this option TbUtil will compare the information
  5290.      in the TbUtil data file against the partition table, bootsector and CMOS
  5291.      data area. It will also  show the comment stored in the data file. And
  5292.      of course, if you use this option you will also be guaranteed that the
  5293.      TbUtil data file is still readable.
  5294.  
  5295.  
  5296.      Restore system configuration 
  5297.  
  5298.      This option enables you to restore the partition table, bootsector, and
  5299.      CMOS data area. It will ask you to confirm that the data file belongs to
  5300.      the current machine. Finally it will restore the partition table,
  5301.      bootsector of the partition to be used to boot, and the CMOS data area.
  5302.  
  5303.  
  5304.      Process Partition code/Bootsector/CMOS memory
  5305.  
  5306.      TbUtil will by default restore the partition code, bootsector and CMOS
  5307.      if option 'restore' is specified. If you use one of the above mentioned
  5308.      options in combination with the option 'restore' TbUtil will restore
  5309.      just the items specified.
  5310.  
  5311.  
  5312.  
  5313.      The TbUtil menu
  5314.  
  5315.      Apart from the System maintenance menu, the TbUtil menu contains some
  5316.      useful programs to prevent bootsector virus infection or to remove these
  5317.      viruses.
  5318.  
  5319.      +----Main menu-----+
  5320.      |  Confi+-----------TbUtil menu-----------+
  5321.      |  TbSet|  System maintenance menu       >|
  5322.      |  TbSca|  Immunize/clean bootsector A:   |
  5323.      |  TbUti|  Immunize/clean bootsector B:   |
  5324.      |  TbCLe|  Immunize/clean partition code  |
  5325.      |  TBAV +---------------------------------+
  5326.      |  Documentation  >|
  5327.      |  Register TBAV   |
  5328.      |  Quit and save   |
  5329.      |  eXit (no save)  |
  5330.      +------------------+
  5331.  
  5332.  
  5333.      Immunize/clean diskette 
  5334.  
  5335.      You can use the 'immunize' program to clean diskettes infected by a
  5336.      bootsector virus or to replace the standard bootsector by a bootsector
  5337.      which has advantages over the original one:
  5338.  
  5339.                                      III - 56
  5340. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5341.  
  5342.  
  5343.      It has virus detection capabilities. The bootsector will check that it
  5344.      is still located on the correct place on the diskette, and that Int 13h
  5345.      and/or Int 40h are still located in system ROM. This makes it possible
  5346.      to detect even 'stealth' and bootsector viruses.
  5347.  
  5348.      The TBAV bootsector is able to load the system files if they are availa-
  5349.      ble on the disk, but if the DOS system files are not on the disk the
  5350.      TBAV bootsector will present a small menu and offers you two possibili-
  5351.      ties: retry the boot operation with another diskette, or to boot from
  5352.      the harddisk. If the user selects the latter, it is not required to open
  5353.      the diskette drive door.
  5354.  
  5355.  
  5356.      Immunize/clean hard disk 
  5357.  
  5358.      This is a very powerful option, which can be used to clean an infected
  5359.      partition table if there is no TbUtil data file. It replaces the exis-
  5360.      ting partition table code by a new partition routine containing some
  5361.      virus detection capabilities. The original partition code will be saved
  5362.      in a file. You have to execute TbUtil from a floppy drive or you have to
  5363.      specify the name of the file (the specified drive should be a diskette
  5364.      drive) to store the original partition code.
  5365.  
  5366.      If the original partition table is completely damaged and cannot be used
  5367.      to build a new one, TbUtil will scan the entire disk for information
  5368.      about the original disk layout. TbUtil will also search for TbUtil data
  5369.      files on the hard disk. It is however recommended to store the data file
  5370.      on a diskette, although it is a good idea to keep a copy of it on the
  5371.      hard disk. Just in case!
  5372.  
  5373.      If your system configuration changes, i.e. you update your DOS version,
  5374.      or change the amount of memory, you need to update the information
  5375.      stored in the immune partition as well. You can do this by using this
  5376.      option.
  5377.  
  5378.      In the unlikely event that the system does not boot properly, you can
  5379.      restore the original partition table using the TbUtil 'restore' option
  5380.      or by using the DOS 5+ 'FDISK /MBR' command (which will create a new
  5381.      partition table).
  5382.  
  5383.      If the new partition code works properly, you should make a back-up copy
  5384.      of it on a diskette using the TbUtil 'store' option.
  5385.  
  5386.  
  5387.      Command line options
  5388.  
  5389.      TbUtil recognizes option-characters and option-words. The words are
  5390.      easier to remember, and they will be used in this manual for convenien-
  5391.      ce.
  5392.  
  5393.  
  5394.  
  5395.  
  5396.                                      III - 57
  5397. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5398.  
  5399.  
  5400.      option     parameter   short explanation
  5401.      ------     ---------   ----  --------------------
  5402.  
  5403.      immunize   <drive>       im  Immunize/Clean boot/MBR of <drive>
  5404.      getboot    <drive>       gb  Save bootsector into file
  5405.      store      [<filename>]  st  Store system information
  5406.      restore    [<filename>]  re  Restore system information
  5407.      compare    [<filename>]  co  Compare system information
  5408.      Sub-options of option 'Immunize':
  5409.      norepeat                 nr  Do not ask for next diskette
  5410.      nomem                    nm  Do not check for amount of RAM
  5411.      batch                    ba  Do not prompt to insert a disk
  5412.      Sub-options of option 'Store':
  5413.      description<descr.>      de  Add description to data file
  5414.      Sub-options of option 'Restore':
  5415.      part                     pt  Restore partition table
  5416.      boot                     bo  Restore bootsector of HD
  5417.      cmos                     cm  Restore CMOS
  5418.  
  5419.  
  5420.      Below, the command line options are explained briefly.
  5421.  
  5422.      immunize diskette <drive> (im)
  5423.      You can use the 'immunize' program to clean diskettes infected by a
  5424.      bootsector virus or to replace the standard bootsector by a bootsector
  5425.      which has advantages over the original one: 
  5426.  
  5427.      -    It has virus detection capabilities. The bootsector will check that
  5428.           it is still located on the correct place on the diskette, and that
  5429.           Int 13h and/or Int 40h are still located in system ROM. This makes
  5430.           it possible to detect even 'stealth' and bootsector viruses.
  5431.  
  5432.      -    The TBAV bootsector is able to load the system files if they are
  5433.           available on the disk, but if the DOS system files are not on the
  5434.           disk the TBAV bootsector will present a small menu and offers you
  5435.           two possibilities: retry the boot operation with another diskette,
  5436.           or to boot from the harddisk. If the user selects the latter, it is
  5437.           not required to open the diskette drive door.
  5438.  
  5439.  
  5440.      Immunize c: (im c:)
  5441.      This is a very powerful option, which can be used to clean an infected
  5442.      partition table if there is no TbUtil data file. It replaces the exis-
  5443.      ting partition table code by a new partition routine containing some
  5444.      virus detection capabilities. The original partition code will be saved
  5445.      in a file. You have to execute TbUtil from a floppy drive or you have to
  5446.      specify the name of the file (the specified drive should be a diskette
  5447.      drive) to store the original partition code.
  5448.  
  5449.      If the original partition table is completely damaged and cannot be used
  5450.      to build a new one, TbUtil will scan the entire disk for information
  5451.      about the original disk layout. TbUtil will also search for TbUtil data
  5452.  
  5453.                                      III - 58
  5454. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5455.  
  5456.  
  5457.      files on the hard disk. It is however recommended to store the data file
  5458.      on a diskette, although it is a good idea to keep a copy of it on the
  5459.      hard disk. Just in case!
  5460.  
  5461.      If your system configuration changes, i.e. you update your DOS version,
  5462.      or change the amount of memory, you need to update the information
  5463.      stored in the immune partition as well. You can do this by using this
  5464.      option. In the unlikely event that the system does not boot properly,
  5465.      you can restore the original partition table using the TbUtil 'restore'
  5466.      option or by using the DOS 5+ 'FDISK /MBR' command (which will create a
  5467.      new partition table). If the new partition code works properly, you
  5468.      should make a back-up copy of it on a diskette using the TbUtil 'store'
  5469.      option.
  5470.  
  5471.      getboot <drive> (gb)
  5472.      With this option you can copy the bootsector of the specified drive into
  5473.      a file.
  5474.  
  5475.      store [<filename>] (st)
  5476.      This option stores the partition table, bootsector and CMOS data area
  5477.      into the TbUtil data file. 
  5478.  
  5479. =>>  Attention! Since the PC is completely inaccessible to DOS if the parti-
  5480.      tion table gets damaged, it is HIGHLY RECOMMENDED to store both the
  5481.      TbUtil data file and the program TbUtil.Exe itself on a diskette! It is
  5482.      not nice if the partition table is destroyed and the only solution to
  5483.      the problem resides on the same inaccessible disk...
  5484.  
  5485.      When loading TbUtil from the command line you must specify a filename
  5486.      after the 'store' option. Using the TBAV menu, you may use the default
  5487.      filename 'TBUTIL.DAT'. If you own more than one PC, it is advisable to
  5488.      create one TbUtil diskette with all TbUtil data files of all your PC's
  5489.      on it. Use the extension of the file for PC identification, eg.:
  5490.      a:TbUtil.<number>
  5491.  
  5492.      restore [<filename>] (re)
  5493.      This option enables you to restore the partition table, bootsector, and
  5494.      CMOS data area. It will ask you to confirm that the data file belongs to
  5495.      the current machine. Finally it will restore the partition table,
  5496.      bootsector of the partition to be used to boot, and the CMOS data area.
  5497.  
  5498.      compare [<filename>] (co)
  5499.      This option enables you to check on a regular basis that everything is
  5500.      still OK. If you specify this option TbUtil will compare the information
  5501.      in the TbUtil data file against the partition table, bootsector and CMOS
  5502.      data area. It will also  show the comment stored in the data file. And
  5503.      of course, if you use this option you will also be guaranteed that the
  5504.      TbUtil data file is still readable.
  5505.  
  5506.      norepeat (nr) 
  5507.      TbUtil will prompt you for next diskette after you immunized a diskette.
  5508.      With option 'norepeat' you can disable this.
  5509.  
  5510.                                      III - 59
  5511. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5512.  
  5513.  
  5514.      nomem (nm)
  5515.      If you specify this option when you are immunizing your partition code,
  5516.      the partition code will skip the RAM check while booting. This is
  5517.      necessary for some systems which change the memory setup during the boot
  5518.      process.
  5519.  
  5520.      batch (ba)
  5521.      If you specify this option when you are immunizing diskettes, TbUtil
  5522.      will not prompt you to insert a disk but assume that there is a disk
  5523.      inserted.
  5524.  
  5525.      description <descr.> (de)
  5526.      Enter a meaningful description of the machine. Enter something like "AT
  5527.      12MHz, 4Mb, room 12, Mr. Smith". You do NOT have to remember it, TbUtil
  5528.      will display it on the screen when comparing or restoring, but it helps
  5529.      you to verify that the data file belongs to the machine.
  5530.  
  5531.      part (pt)
  5532.      boot (bo)
  5533.      cmos (cm)
  5534.  
  5535.      TbUtil will by default restore the partition code, bootsector and CMOS
  5536.      if option 'restore' is specified. If you use one of the above mentioned
  5537.      options in combination with the option 'restore' TbUtil will restore
  5538.      just the items specified.
  5539.  
  5540.  
  5541.      Examples
  5542.           TbUtil store
  5543.           TbUtil st
  5544.           TbUtil store A:TbUtil.Dat
  5545.           TbUtil store A:TbUtil.Dat description = "Test machine"
  5546.           TbUtil compare A:TbUtil.Dat
  5547.           TbUtil restore A:TbUtil.Dat part cmos
  5548.           TbUtil immunize A:
  5549.           TbUtil immunize C: nomem
  5550.           Type A:TbUtil.Dat
  5551.  
  5552.  
  5553.      Using the anti-virus partition
  5554.  
  5555.      If you install the Thunderbyte partition code (TbUtil immunize), you
  5556.      will see the following while booting a clean system:
  5557.  
  5558.  
  5559.           Thunderbyte anti-virus partition v6.03 (C) 1993 Thunderbyte BV.
  5560.  
  5561.           Checking bootsector CRC -> OK!
  5562.           Checking available RAM -> OK!
  5563.           Checking INT 13h -> OK!
  5564.  
  5565.  
  5566.  
  5567.                                      III - 60
  5568. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5569.  
  5570.  
  5571.      If there is a virus in the bootsector or partition table you will see
  5572.      this:
  5573.  
  5574.           Thunderbyte anti-virus partition v6.03 (C) 1993 Thunderbyte BV.
  5575.  
  5576.           Checking bootsector CRC -> OK!
  5577.           Checking available RAM -> Failed!
  5578.  
  5579.           System might be infected. Continue? (N/Y)
  5580.  
  5581.  
  5582.      Some other messages that can be displayed are "No system.", which means
  5583.      that there is no active partition on the disk, and "Disk error" of which
  5584.      the meaning is obvious.
  5585.  
  5586.  
  5587.      Using the TbUtil diskette
  5588.  
  5589.      Take a new diskette, format it as a bootable diskette (eg. by using the
  5590.      dos 'format /s' command). Copy the TbUtil files onto the diskette:
  5591.  
  5592.           copy tbutil.* a:
  5593.  
  5594.      The TbUtil files you need are:
  5595.           tbutil.exe
  5596.           tbutil.lng
  5597.  
  5598.  
  5599.      Trouble-Shooting
  5600.  
  5601.      In case of an emergency, eg. a damaged or infected partition table, you
  5602.      should boot from the TbUtil diskette. Subsequently, you start the TbUtil
  5603.      program, using the 'immunize' option:
  5604.  
  5605.           a:\tbutil immunize c:
  5606.  
  5607.  
  5608. 6.2. TbLog
  5609.  
  5610.      The purpose of TbLog
  5611.  
  5612.      TbLog is a TBAV log file utility. It writes a record into a log file
  5613.      whenever one of the resident TBAV utilities pops up with an alert
  5614.      message. Also when TbScan detects a virus a record will be written.
  5615.  
  5616.      This utility is primarily intended for network users. If all workstati-
  5617.      ons have TbLog installed and configured to maintain the same log file,
  5618.      the supervisor is able to keep track of what is going on easily. When a
  5619.      virus enters the network he is able to determine which machine introdu-
  5620.      ced the virus, and he can take action in time.
  5621.  
  5622.  
  5623.  
  5624.                                      III - 61
  5625. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5626.  
  5627.  
  5628.      A TbLog record consists of the timestamp on which the event took place,
  5629.      the name of the machine on which the event occured, and an informative
  5630.      message about what happenend and which files were involved. The informa-
  5631.      tion is very comprehensive and takes just one line.
  5632.  
  5633.  
  5634.      How to use TbLog
  5635.  
  5636.      Just like the other TBAV utilities TbLog can be loaded in the Config.Sys
  5637.      or AutoExec.Bat file, after the TbDriver invokation.
  5638.  
  5639.      TbLog should be installed on every workstation. If you want to use all
  5640.      workstations to maintain the same log file, it is recommended to load
  5641.      TbLog after the network has been started.
  5642.  
  5643.      TbLog will by default maintain a log file with the name TbLog.Log in the
  5644.      TBAV directory. If you want to use another filename or in on another
  5645.      disk or directory you can specify a filename on the command line of
  5646.      TbLog. In a network environment it is highly recommended to put the log
  5647.      file on a server disk.
  5648.  
  5649.  
  5650.      Command line options
  5651.  
  5652.      It is possible to specify options on the command line. The upper five
  5653.      options are always available, the other options are available only if
  5654.      TbLog is not memory resident.
  5655.  
  5656.      option   parameter   short explanation
  5657.      ----------------------------------------------------
  5658.      help                  ?    display this helpscreen
  5659.      remove                r    remove TbLog from memory
  5660.      on                    e    enable TbLog
  5661.      off                   d    disable TbLog
  5662.      test                  t    log test message
  5663.  
  5664.      machine = <machine>   m    name of your machine
  5665.      secure                s    do not allow removal
  5666.  
  5667.  
  5668.      help (?)
  5669.      If you specify this option TbLog will show you the brief help as shown
  5670.      above.
  5671.  
  5672.      off (d)
  5673.      If you specify this option TbLog will be disable, but it will remain in
  5674.      memory.
  5675.  
  5676.      on (e)
  5677.      If you use this option TbLog will be activated again after you disabled
  5678.      it with the 'off' option.
  5679.  
  5680.  
  5681.                                      III - 62
  5682. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.               SECTION III
  5683.  
  5684.  
  5685.      remove (r)
  5686.      This option can be used to remove the resident part of TbLog from your
  5687.      system's memory.  All memory used by TbLog will be released. Unfortuna-
  5688.      tely, the removal of a TSR (like TbLog) is not always possible.  TbLog
  5689.      checks whether it is safe to remove the resident part from memory. If it
  5690.      is not safe it just disables TbLog. A TSR can not be removed if another
  5691.      TSR has been started after it. If this happens with TbLog it will
  5692.      completely disable itself.
  5693.  
  5694.      test (t)
  5695.      This option can be used to record a test message. If you use option
  5696.      'test' at the initial invocation of TbLog, it will record the time and
  5697.      machinename into the log file. If you use the 'test' option afterwards
  5698.      it will just put a test message in the log file.
  5699.  
  5700.      machine (m)
  5701.      With this option you can specify the name of the machine on which TbLog
  5702.      is loaded. This machine name will appear in the log file. On NetBios
  5703.      compatible machines TbLog will by default use the network machine name.
  5704.      On other networks - such as Novell - you have to enter the network name
  5705.      on the TbLog command line.
  5706.  
  5707.      secure (s)
  5708.      If you specify this option it is not possible anymore to use options
  5709.      'off' and 'remove'.
  5710.  
  5711.  
  5712.      Examples:
  5713.           C:\TBAV\TbLog f:\security\Tblog.log secure machine=DESK3
  5714.      or:
  5715.           Device=c:\TBAV\TbLog.Exe x:\logs\tblog.log machine=JOHN test
  5716.  
  5717.  
  5718.  
  5719.  
  5720.  
  5721.  
  5722.  
  5723.  
  5724.  
  5725.  
  5726.  
  5727.  
  5728.  
  5729.  
  5730.  
  5731.  
  5732.  
  5733.  
  5734.  
  5735.  
  5736.  
  5737.  
  5738.                                      III - 63
  5739. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  5740.  
  5741.  
  5742. SECTION IV. ADVANCED USER INFORMATION
  5743.  
  5744.  
  5745. 1. Memory requirements
  5746.  
  5747.      Free memory needed:
  5748.                               min.                min.
  5749.                               to be               after
  5750.                               loaded:             termination:
  5751.  
  5752.      TbScan                   200 Kb
  5753.      TbScanX                  10 Kb               800 bytes
  5754.      TbCheck                  4 Kb                600 bytes
  5755.      TbUtil                   64 Kb
  5756.      TbClean                  96 Kb
  5757.  
  5758.      TbMem                    4 Kb                600 bytes
  5759.      TbFile                   5 Kb                1 Kb
  5760.      TbDisk                   4 Kb                800 bytes
  5761.      TbDriver                 5 Kb                3 Kb
  5762.      TbLog                    5 Kb                1 Kb
  5763.  
  5764.  
  5765.      If you decide to use a log file TbScan will need an additional 16 Kb of
  5766.      memory for the log file buffer. If TbScan uses its own built-in file
  5767.      system it uses additional memory to keep the FAT in memory. Note that
  5768.      the memory requirements are independent of the number of signatures. The
  5769.      current memory requirements are adequate to manage at least 2500 signa-
  5770.      tures.
  5771.  
  5772.      The amount of memory TbScanX requires depends on the number of signatu-
  5773.      res. With all features enabled TbScanX uses 30 Kb of memory when scan-
  5774.      ning for 1400 family signatures. If you enable swapping TbScanX normally
  5775.      uses only 1Kb of memory. You can swap to EMS and XMS memory. Of course
  5776.      the remaining kilobyte of TbScanX can be loaded in upper memory.
  5777.  
  5778.      In the heuristic cleaning mode TbClean needs much more memory, depending
  5779.      on the size of the infected file. TbClean can also use expanded memory
  5780.      (EMS).
  5781.  
  5782.  
  5783.      Reducing memory requirements
  5784.  
  5785.      Most PC users try to maintain as much free DOS memory as possible. The
  5786.      memory resident TBAV utilities (TbScanX, TbCheck, TbMem, TbFile, TbDisk
  5787.      and TbDriver) are designed to use only a little amount of DOS memory. To
  5788.      decrease the memory requirements of these utilities even further do the
  5789.      following:
  5790.  
  5791.      Load the program from within the Config.Sys file. If loaded as a device
  5792.      driver it has no Program Segment Prefix (PSP), which saves 256 bytes for
  5793.      each TBAV utility.
  5794.  
  5795.                                       IV - 1
  5796. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  5797.  
  5798.  
  5799.      If you load the TBAV utilities from within the Autoexec.Bat file, load
  5800.      them before establishing environment variables. DOS maintains a list of
  5801.      environment variables for every resident program, so keep this list
  5802.      small while installing TSRs. Once all TSRs are installed you can define
  5803.      all environment variables without affecting the memory requirements of
  5804.      the TSRs.
  5805.  
  5806.      By using one of the options 'ems' or 'xms' TbScanX swaps itself to non-
  5807.      DOS memory, leaving only 1 Kb of code in DOS memory. Swapping to expan-
  5808.      ded memory ('ems') is preferred. 
  5809.  
  5810.      If you have DOS 5 or higher try to load the program into an upper memory
  5811.      block using the "loadhigh" or "devicehigh" commands. It is recommended
  5812.      to enable swapping also to limit the usage of upper memory.
  5813.  
  5814.      Use one of the processor specific versions of the relevant TBAV utility.
  5815.      They all consume less memory than the generic versions. Processor
  5816.      optimized versions are available on any ThunderBYTE support BBS.
  5817.  
  5818.      Consider the following memory saving options:
  5819.      TbDriver:      NoStack
  5820.      TbMem:         NoCancel
  5821.      TbScanX:       NoBoot, EMX, XMS, wild
  5822.  
  5823.  
  5824.  
  5825.  
  5826.  
  5827.  
  5828.  
  5829.  
  5830.  
  5831.  
  5832.  
  5833.  
  5834.  
  5835.  
  5836.  
  5837.  
  5838.  
  5839.  
  5840.  
  5841.  
  5842.  
  5843.  
  5844.  
  5845.  
  5846.  
  5847.  
  5848.  
  5849.  
  5850.  
  5851.  
  5852.                                       IV - 2
  5853. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  5854.  
  5855.  
  5856. 2. TbSetup
  5857.  
  5858.  
  5859. 2.1. Anti-Vir.Dat design considerations
  5860.  
  5861.      ThunderBYTE Anti-Virus expects every directory on your system with
  5862.      executable files to have its own Anti-Vir.Dat file. Some other anti-
  5863.      virus products maintain a somewhat similar 'fingerprint' list of all
  5864.      executable files, but in one large file rather than a separate file in
  5865.      every directory. TBAV contains a separate file in every directory
  5866.      instead of one file with all file information because of the following:
  5867.  
  5868.      One file in every directory will ease maintenance. If you want to remove
  5869.      a complete product, the accompanying Anti-Vir.Dat file can be removed as
  5870.      well. 
  5871.  
  5872.      It will consume less disk space because path information need not to be
  5873.      stored in the information file. 
  5874.  
  5875.      The TBAV utilities will perform faster because they do not have to
  5876.      search through a huge file to locate the information of one specific
  5877.      file.
  5878.  
  5879.      Installation is easier and more reliable in network environments. On
  5880.      networks it is not unusual that the same files have different drive ID's
  5881.      on different workstations. In case of only one information file the
  5882.      drive-ID's should be stored as well, so every workstation should main-
  5883.      tain its own list. The supervisor would easily lose control in this
  5884.      situation.
  5885.  
  5886.  
  5887. 2.2. Format of TbSetup.Dat
  5888.  
  5889.      Editing the TbSetup.Dat file is useful to TBAV site installation (see
  5890.      IV-8). Therefore, some information on the format of this file is neces-
  5891.      sary. The format of the TbSetup.Dat file is very simple. Empty lines, or
  5892.      lines starting with a semi-colon (';') or percent symbol, are either
  5893.      ignored or treated as comment lines. The lines with a preceding percent
  5894.      symbol are also displayed in TbSetup's upper window.
  5895.  
  5896.      Every entry in the TbSetup.Dat file has four items:
  5897.  
  5898.      The filename. The filename must be written in capital letters and
  5899.      without spaces.
  5900.  
  5901.      The length of the file in hexadecimal notation. This field may contain a
  5902.      single asterisk ('*') if an exact filelength match is not required.
  5903.  
  5904.      The file's 32-bit CRC in hexadecimal notation. A single asterisk is
  5905.      allowed if an exact checksum match is not required. 
  5906.  
  5907.  
  5908.  
  5909.                                       IV - 3
  5910. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  5911.  
  5912.  
  5913.      The hexadecimal number representing flags that should be set when the
  5914.      listed file is found on the system.
  5915.  
  5916.      The rest of the line may be used for a brief comment.
  5917.  
  5918.      You may use the following flags:
  5919.  
  5920.      bit 0  (0001)  Do not perform heuristic analysis
  5921.      bit 1: (0002)  Ignore CRC changes (self-modifying file)
  5922.      bit 2: (0004)  Scan for all signatures (lan remote boot file) 
  5923.      bit 3: (0008)  Do not change read-only attribute of this file 
  5924.      bit 4: (0010)  The program stays resident in memory
  5925.      bit 5: (0020)  The program performs direct disk access
  5926.      bit 6: (0040)  Program is allowed to remove read-only attributes
  5927.      bit 15:(8000)  Interrupt rehook required for TbDriver.Exe
  5928.  
  5929.  
  5930.      This is what the entries in TbSetup.Dat look like:
  5931.  
  5932.           ; filename   Length 32-bit CRC  Flags  Comment
  5933.  
  5934.           ; Files that trigger the heuristic alarm of TbScan:
  5935.           4DOS.COM     19FEA         *    0001   ;4Dos 4.0a
  5936.           AFD.COM      0FEFE  4B351A86    0001   ;AFD debugger
  5937.           ARGV0FIX.COM 001D8  431E70C0    0001   ;Argv[0]fix
  5938.           EXE2COM.EXE  00BEA  49276F89    0001   ;Exe to Com conv. utility
  5939.           KILL.EXE     00632  74D41811    0001   ;PcTools 6.0 utility
  5940.           WATCH.COM    003E1  2353625D    0001   ;TSR monitoring utility
  5941.  
  5942.           ; Files that need to be scanned completely, for ALL viruses:
  5943.           NET$DOS.SYS      *         *    0004   ;Disk image Novell boot
  5944.  
  5945.           ; Files without fixed checksum due to internal config area's:
  5946.           Q.EXE            *         *    000A    ;Qedit (all versions)
  5947.           TBCONFIG.COM     *         *    000A    ;all versions
  5948.  
  5949.  
  5950.      Defining new entries
  5951.  
  5952.      If you have any files that should be included in the list, please let us
  5953.      know! We would like to receive a copy to enhance our products and keep
  5954.      TbSetup.Dat up to date. Candidates for inclusion would be any program
  5955.      that triggers the heuristic analysis of TbScan. Whenever you choose
  5956.      'V)alidate program' in the TbScan message window, you will find that on
  5957.      subsequent occasions TbSetup displays the value '0001' in the flags
  5958.      field. If your company has many files like this installed on multiple
  5959.      machines, you may want to include these files in the TbSetup.Dat file
  5960.      yourself. In order to do that execute TbSetup for the file in question
  5961.      and make a note of its filelength and 32-bit CRC, as displayed on the
  5962.      screen. Then edit the TbSetup.Dat file entering the exact filename, the
  5963.      file length and the CRC number, plus the number of any flags you wish to
  5964.  
  5965.  
  5966.                                       IV - 4
  5967. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  5968.  
  5969.  
  5970.      set for that file. If you now use TbSetup on another machine it will set
  5971.      the appropriate flags automatically.
  5972.  
  5973. =>   Note:You may manually set or clear a flag field value when executing
  5974.      TbSetup at the DOS prompt with option 'set' and 'reset' as follows:
  5975.  
  5976.           TBSETUP TEST.EXE SET=0001
  5977.  
  5978.  
  5979. 2.3. TBAV site installation
  5980.  
  5981.      If you have to install the TBAV utilities on a lot of machines in one
  5982.      company, it would be tedious to invoke for instance every single TSR and
  5983.      disk utility on each machine in order to 'teach' TBAV which programs are
  5984.      valid and which are not. Fortunately, this is not necessary. In the
  5985.      present section, three examples are presented on how to simplify instal-
  5986.      lation on several machines.
  5987.  
  5988.      1.   If a resident utility named, for instance, TSRUTIL.EXE is used
  5989.           throughout the company, you can predefine permission by using
  5990.           TbSetup to determine the length and CRC of the program. Now put the
  5991.           name of this program along with the other information in the file
  5992.           TbSetup.Dat and assign the value '0010' to it. 
  5993.  
  5994.      Example:
  5995.           TSRUTIL.EXE  01286  E387AB21  0010  ;Our TSR utility
  5996.  
  5997.  
  5998.      2.   If a disk utility named, for instance, DISKUTIL.EXE is used throug-
  5999.           hout the company, you can predefine permission by using TbSetup to
  6000.           determine the length and CRC of the program. Now put the name of
  6001.           this program along with the other information in the file TbSetup.
  6002.           dat and assign the value '0020' to it.
  6003.  
  6004.      Example:
  6005.           DISKUTIL.EXE  01286  E387AB21  0020  ;Our DISK utility
  6006.  
  6007.      If you now execute TbSetup on every machine (you have to do this anyway)
  6008.      it will recognize this utility and it will set the disk access permissi-
  6009.      on flag for TbMem / TbDisk automatically.
  6010.  
  6011.      3.   If a utility named, for instance, UTIL.EXE is used throughout the
  6012.           company which causes TbScan to give false positives, you can
  6013.           predefine TbSetup to avoid heuristic scanning of the relevant
  6014.           program. Put the name of this program along with the other informa-
  6015.           tion in the file TbSetup.Dat and assign the value '0001' to it.
  6016.  
  6017.  
  6018.  
  6019.  
  6020.  
  6021.  
  6022.  
  6023.                                       IV - 5
  6024. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6025.  
  6026.  
  6027.      Example:
  6028.           UTIL.EXE  01286  E387AB21  0001  ;Our utility
  6029.  
  6030.      If you now execute TbSetup on every machine (you have to do this anyway)
  6031.      it will recognize this utility and TbScan will not perform heuristic
  6032.      scanning.
  6033.  
  6034.      Also consult the TbSetup.Dat file.
  6035.  
  6036.  
  6037.  
  6038.  
  6039.  
  6040.  
  6041.  
  6042.  
  6043.  
  6044.  
  6045.  
  6046.  
  6047.  
  6048.  
  6049.  
  6050.  
  6051.  
  6052.  
  6053.  
  6054.  
  6055.  
  6056.  
  6057.  
  6058.  
  6059.  
  6060.  
  6061.  
  6062.  
  6063.  
  6064.  
  6065.  
  6066.  
  6067.  
  6068.  
  6069.  
  6070.  
  6071.  
  6072.  
  6073.  
  6074.  
  6075.  
  6076.  
  6077.  
  6078.  
  6079.  
  6080.                                       IV - 6
  6081. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6082.  
  6083.  
  6084. 3. TbScan
  6085.  
  6086. 3.1. Heuristic scanning
  6087.  
  6088.      TbScan is not just a signature scanner. It also disassembles the file
  6089.      being processed, for the following purposes:
  6090.  
  6091.      1)   By disassembling the file the scanner can restrict itself to the
  6092.           area of the file where the virus might reside, reducing false
  6093.           alarms and speeding up the process.
  6094.  
  6095.      2)   It makes it possible to use the algorithmic detection method on
  6096.           encrypted viruses whose signatures would otherwise remain invisible
  6097.           to the scanner.
  6098.  
  6099.      3)   And it makes it possible to detect suspicious instruction sequen-
  6100.           ces.
  6101.  
  6102.      The detection of suspicious instruction sequences is named 'heuristic
  6103.      scanning'. It is a very powerful feature that enables you to detect new
  6104.      or modified viruses and to verify the results of the signature scan. You
  6105.      no longer have to rely on the scanner's publisher having the same virus
  6106.      as you might have. In normal cases a scanner can only find a virus if
  6107.      the scanner's publisher did have a sample of that virus, in order to
  6108.      make a suitable signature. With heuristic scanning a signature is no
  6109.      longer required, enabling the scanner to detect yet unknown viruses. You
  6110.      should not underestimate the importance of heuristic scanning, since
  6111.      every month at least 50 new viruses are reported. It is very unlikely
  6112.      that a publisher is the first one to get these new viruses...
  6113.  
  6114.  
  6115.      Heuristic level 1                       Heuristic level 2
  6116.      ------------------------------------------------------------
  6117.      Always enabled                          Only with option 'heuris
  6118.                                              tic' or after a virus has been
  6119.                                              found. 
  6120.      Detects 50% of the unknown viruses.     Detects 90% of the viruses
  6121.      Almost never causes false alarms.       Causes a few false alarms.
  6122.      Displays 'Probably infected'            Displays 'Might be infec
  6123.                                              ted'
  6124.  
  6125.  
  6126.      TEST.EXE <scanning...>         OK  (no flags)
  6127.      TEST.EXE <scanning...> R       OK  (nothing serious)
  6128.      TEST.EXE <scanning...> FRM         might be infected by unknown virus
  6129.      TEST.EXE <scanning...> FRALM#      probably infected by unknown virus  
  6130.  
  6131.      How does heuristic scanning actually work? Every program contains
  6132.      instructions for the PC's processor. By looking into the file's contents
  6133.      and by interpreting the instructions TbScan is able to detect the
  6134.      purpose of these instructions. If the purpose seems to be to format a
  6135.      disk, or to infect a file, TbScan issues a warning. There are a lot of
  6136.  
  6137.                                       IV - 7
  6138. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6139.  
  6140.  
  6141.      instruction sequences which are very common for viruses, but very
  6142.      uncommon for normal programs. Every suspicious instruction sequence is
  6143.      assigned to a character: a heuristic flag. Every heuristic flag denotes
  6144.      a score. If the total score exceeds a predefined limit, TbScan assumes
  6145.      the file contains a virus. 
  6146.  
  6147.      There are actually two predefined limits: the first one is quite sensi-
  6148.      tive and can be reached by some normal innocent programs. If this limit
  6149.      is reached, TbScan highlights the heuristic flags that are displayed on
  6150.      the screen and increases the 'suspected items' counter. TbScan does not
  6151.      indicate the existence of a virus, unless you have specified the 'heu-
  6152.      ristic' option. If you do have specified this option, TbScan tells you
  6153.      the file 'Might be infected by an unknown virus'. 
  6154.  
  6155.      The second heuristic limit will be triggered by a lot of viruses, but
  6156.      not by normal programs. If this limit is reached TbScan tells you that
  6157.      the file is 'Probably infected by an unknown virus.'
  6158.  
  6159. =>   Note: TbScan performs heuristic analysis only nearby the entry-point of
  6160.      a file. Therefore, TbScan does not detect direct writes to disk by some
  6161.      disk utilities nor does TbScan detect some programs as TSR programs.
  6162.      This is just the result of a specific approach to minimize false alarms.
  6163.      In case of a virus, the offending instructions are always nearby the
  6164.      entry-point (except when the virus is over 10Kb in size) so TbScan will
  6165.      detect suspicious phenomenons in these situations anyway. 
  6166.  
  6167.  
  6168. 3.2. Integrity checking
  6169.  
  6170.      TbScan will perform integrity checking while scanning. You have to use
  6171.      TbSetup to generate the Anti-Vir.Dat files. Once these files exist on
  6172.      your system TbScan will check that every file being scanned matches the
  6173.      information maintained in the Anti-Vir.Dat files. If a virus infects a
  6174.      file, the maintained information will not match anymore with the now
  6175.      changed file, and TbScan will inform you about this. There are no
  6176.      (command line) options to enable this feature: TbScan will perform
  6177.      integrity checking automatically if it detects the Anti-Vir.Dat files.
  6178.      Note that TbScan only reports file changes that could indicate a virus.
  6179.      Internal configuration areas of program files may also change, but
  6180.      TbScan does normally not report this. However, if a file gets infected
  6181.      with any virus -known or unknown - the vital information will change and
  6182.      TbScan will indeed report it to you!
  6183.  
  6184.      It is however possible that the checked file changes itself or changes
  6185.      frequently due to another cause. In this case you might want to exclude
  6186.      the program from integrity checking to avoid future false alarms. TbScan
  6187.      will offer you an additional menu option: 'V)alidate program'. For more
  6188.      information about this menu option consult 'Program validation' (page 6
  6189.      of this section).
  6190.  
  6191.  
  6192.  
  6193.  
  6194.                                       IV - 8
  6195. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6196.  
  6197.  
  6198. 3.3. Program validation
  6199.  
  6200.      This chapter only applies if you use TbSetup to generate the Anti-
  6201.      Vir.Dat records. Without these records program validation is not an
  6202.      option.
  6203.  
  6204.      TbScan will perform as intended on most programs. There are some pro-
  6205.      grams, however, that require special attention in order to avoid false
  6206.      alarms. Most of these programs are recognized automatically by the
  6207.      TbSetup program. Nevertheless it is certainly possible your PC contains
  6208.      some program files which trigger the heuristic alarm of TbScan and/or
  6209.      programs files which change frequently.
  6210.  
  6211.      If an 'infection' has been found with the heuristic analysis or integri-
  6212.      ty checking only and if there is an Anti-Vir.Dat record available,
  6213.      TbScan offers an additional option in its virus-alert window:  
  6214.  
  6215.           'V)alidate program'
  6216.  
  6217.      If you are convinced that the indicated program does not contain a
  6218.      virus, you can press 'V' to set a flag in the program's record. This
  6219.      makes it possible to avoid future false alarms.
  6220.  
  6221.      There are two validation modes. If TbScan alarms you due to a file
  6222.      change, the validation applies to future file changes only. If the alarm
  6223.      is due to heuristic analysis, the validation only applies to heuristic
  6224.      results. If the file is excluded from heuristic analysis the file will
  6225.      still be checksummed.  If the file is excluded from integrity checking
  6226.      TbScan will still perform heuristic analysis on the file.
  6227.  
  6228. =>   Note: if you replaced a file (software upgrade) and you did not use
  6229.      TbSetup, TbScan will pop-up its virus alert window to inform you about
  6230.      the file change. Do not select the validation option in this case,
  6231.      because this would exclude the file for future integrity checking. You
  6232.      should abort TbScan and execute TbSetup on the changed file(s) instead.
  6233.  
  6234.  
  6235. 3.4. The algorithms
  6236.  
  6237.      When TbScan processes a file it will display either 'Looking', 'Chec-
  6238.      king', 'Tracing', 'Scanning', 'Decrypting' or 'Skipping'.
  6239.  
  6240.      Looking
  6241.  
  6242.      With 'Looking' TbScan indicates it has successfully located the entry
  6243.      point of the program in one step. The program code has been identified
  6244.      so TbScan knows where to search without the need of additional analysis.
  6245.      'Looking' will be used on most known software.
  6246.  
  6247.  
  6248.  
  6249.  
  6250.  
  6251.                                       IV - 9
  6252. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6253.  
  6254.  
  6255.      Checking
  6256.  
  6257.      'Checking' indicates TbScan has successfully located the entry point of
  6258.      the program, and is scanning a frame of about 2Kb around the entry
  6259.      point. If the file is infected, the virus' signature will be located in
  6260.      this area. 'Checking' is a very fast and reliable scan algorithm.
  6261.      Checking will be used on most unknown software.
  6262.  
  6263.      Tracing
  6264.  
  6265.      'Tracing' means that TbScan has successfully traced a chain of jumps or
  6266.      calls while locating the entry-point of the program, and is scanning a
  6267.      frame of about 2Kb around this location. If the file has been infected,
  6268.      the signature of the virus will be located in this area. 'Tracing' is a
  6269.      fast and reliable scan algorithm. Tracing will be primarily used for
  6270.      TSR-type COM files. Most viruses will force TbScan to use 'Tracing'.
  6271.  
  6272.      Scanning
  6273.  
  6274.      TbScan is scanning the entire file (except for the exe-header which
  6275.      cannot contain any viral code). This algorithm will be used if 'Look-
  6276.      ing', 'Checking' or 'Tracing' can't be used safely. This is the case
  6277.      when the entry-point of the program contains other jumps and calls to
  6278.      code located outside the scanning frame, or when the heuristic analyzer
  6279.      found something that should be investigated more thoroughly. 'Scanning'
  6280.      is a slow algorithm. Since it processes almost the entire file, inclu-
  6281.      ding data areas, false alarms are more likely to occur. The 'Scanning'
  6282.      algorithm will be used while scanning bootsectors, SYS and BIN files.
  6283.  
  6284.      Decrypting
  6285.  
  6286.      TbScan detected that the file is encrypted, and decrypts it to be able
  6287.      to 'look inside'. TbScan performs signature scanning and heuristic
  6288.      analysis on the decrypted code since that is very reliable and also
  6289.      reveals polymorphic viruses.
  6290.  
  6291.      Skipping
  6292.  
  6293.      'Skipping' will occur with SYS and OVL files only. It simply means that
  6294.      the file will not be scanned. As there are many SYS files containing no
  6295.      code at all (like CONFIG.SYS), it makes absolutely no sense to scan
  6296.      these files for viruses. The same applies to .OV? files. Many overlay
  6297.      files do not deserve to be called as such as they lack an exe-header.
  6298.      Such files cannot be invoked through DOS, which makes them just as
  6299.      invulnerable to direct virus attacks as .TXT files are. If a virus is
  6300.      reported to have infected an .OV? file, it involved one of the relative-
  6301.      ly few overlay files which do contain an exe-header. In that case the
  6302.      infection was the result of the virus monitoring the DOS exec-call
  6303.      (function 4Bh) and infecting any program being invoked that way, inclu-
  6304.      ding 'real' overlay files.
  6305.  
  6306.  
  6307.  
  6308.                                       IV - 10
  6309. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6310.  
  6311.  
  6312. 3.5. The TbScan.Lng file
  6313.  
  6314.      The TbScan.Lng file contains all texts being displayed by TbScan. You
  6315.      can translate or customize the messages with any ASCII editor.
  6316.  
  6317.      The messages are separated by the dollar sign ($). The first message
  6318.      displays our address and registration info. You can edit this message as
  6319.      you please, for instance adding your company logo.
  6320.  
  6321.      You may add color codes to the TbScan.Lng file. A color code is precee-
  6322.      ded by the character '|'. The following color codes are available: (all
  6323.      numbers are in hex).
  6324.  
  6325.      Color          Foreground Highlight   Background
  6326.  
  6327.      Black          00         08          00
  6328.      Blue           01         09          10
  6329.      Green          02         0A          20
  6330.      Cyan           03         0B          30
  6331.      Red            04         0C          40
  6332.      Magenta        05         0D          50
  6333.      Yellow/Brown   06         0E          60
  6334.      White/gray     07         0F          70
  6335.  
  6336.  
  6337.      Example:  To make a highligted green character on a red background the
  6338.                color code would be 0A+40=4A. To make the character blink add
  6339.                80h to the result.
  6340.  
  6341.  
  6342. 3.6. The TBAV.MSG file
  6343.  
  6344.      The TBAV menu shell will display the contents of a file named TBAV.MSG
  6345.      if it exists. You can use this feature to put your company logo on the
  6346.      TBAV screen. You can embed color codes in this file. Consult section 3.5
  6347.      ('The TbScan.Lng file') for more information about color codes.
  6348.  
  6349.  
  6350.  
  6351.  
  6352.  
  6353.  
  6354.  
  6355.  
  6356.  
  6357.  
  6358.  
  6359.  
  6360.  
  6361.  
  6362.  
  6363.  
  6364.  
  6365.                                       IV - 11
  6366. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6367.  
  6368.  
  6369. 4. TbClean
  6370.  
  6371.      In order to understand the way a cleaning program operates, try to
  6372.      imagine how a virus usually goes about infecting a program. The basic
  6373.      principle is not difficult. A virus - just another program really - adds
  6374.      itself to the end of the program it is going to infect. The additional
  6375.      viral code, naturally, increases the size of the program. But simply
  6376.      appending a viral program to another program is not enough, to do any
  6377.      real harm - the viral code has to be executed first. So, the virus grabs
  6378.      the first few bytes at the start of the program, and replaces them with
  6379.      a 'jump' instruction to its own viral code. That way the virus is able
  6380.      to take control as soon as the program is started. Chances are you will
  6381.      never even notice the momentary delay while the extra code is executed,
  6382.      doing whatever the virus has been programmed to do. The virus then
  6383.      restores the original instructions and restarts the program (jump to the
  6384.      start). Your program, more often than not, works as usual - and it goes
  6385.      without saying that any virus worth its salt will make sure it isn't
  6386.      going to draw undue attention too soon! 
  6387.  
  6388.      So, in order to purge a program, we must first restore the starting
  6389.      instruction bytes, which the virus replaced with the jump to its own
  6390.      code. The virus is going to need these bytes again later on, so they
  6391.      will be stored somewhere in the viral code. The cleaner starts out to
  6392.      find those bytes, puts them back in their old place, and truncates the
  6393.      file to the original size.
  6394.  
  6395.      Cleaner programs basically come in two types - the conventional type,
  6396.      for specific types of viruses, and the far more advanced generic clea-
  6397.      ner, offering a much wider scope. Let's take a closer look at both
  6398.      cleaner types and find out where they differ.
  6399.  
  6400.  
  6401.      Conventional cleaners
  6402.  
  6403.      A conventional cleaner has to know which virus to remove. Suppose your
  6404.      system is infected with a Jerusalem/PLO virus. When you start such a
  6405.      conventional cleaner, a procedure much like the following will take
  6406.      place:
  6407.  
  6408.  
  6409.  
  6410.  
  6411.  
  6412.  
  6413.  
  6414.  
  6415.  
  6416.  
  6417.  
  6418.  
  6419.  
  6420.  
  6421.  
  6422.                                       IV - 12
  6423. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6424.  
  6425.  
  6426.          original program        infected program
  6427.  
  6428.          +--------------+        +--------------+
  6429.          |              |        |              |
  6430.          | p            |  100:  |jump          |
  6431.          | r            |        |to 2487       |
  6432.          | o            |        | o            |
  6433.          | g            |        | g            |
  6434.          | r            |        | r            |
  6435.          | a            |        | a            |
  6436.          | m            |        | m            |
  6437.          |              |        |              |
  6438.          | c            |        | c            |
  6439.          | o            |        | o            |
  6440.          | d            |        | d            |
  6441.          | e            |        | e            |
  6442.          |              |        |              |
  6443.          +--------------+        +--------------+
  6444.                            2487: |              |
  6445.                                  |  VIRUS!    p |
  6446.                                  |            r |
  6447.                                  |jmp 100       |
  6448.                                  +--------------+
  6449.  
  6450.  
  6451.      The virus has itself linked to the program start, and after it rstored
  6452.      the original bytes (the 'pr' in this example) it jumps then back to the
  6453.      original program start.
  6454.  
  6455.      The conventional cleaner: 'Hey, the signature file tells me this file is
  6456.      infected with the Jerusalem/PLO virus. Ok, let's see, this virus tacks
  6457.      on 1783 bytes at the end, and it overwrites the first three bytes of the
  6458.      original program with a jump to itself. The original bytes are located
  6459.      at offset 483 in the viral code. So, I have to take those bytes, copy
  6460.      them to the beginning of the file, and I have to remove 1873 bytes of
  6461.      the file. That's it!'
  6462.  
  6463.      There are several pitfalls to worry about in a scenario like this.
  6464.      Obviously, the cleaner has to be given some means to recognize the virus
  6465.      it is supposed to remove. A conventional cleaner cannot cope with a
  6466.      virus unless it knows what to look for. It is even more important to
  6467.      establish the fact that the virus is exactly the same one that the
  6468.      cleaner knows about after checking the validation data. Imagine what
  6469.      whould happen if the virus used in the example had been modified and is
  6470.      now 1869 bytes in size instead of 1873... The cleaner would remove too
  6471.      much! This is not an exceptional case, certainly not after the unslaught
  6472.      of countless so-called mutant straints. The Jerusalem/PLO family, to
  6473.      name but one example, now has more than 100 mutant members!
  6474.  
  6475.  
  6476.  
  6477.  
  6478.  
  6479.                                       IV - 13
  6480. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6481.  
  6482.  
  6483.      Generic cleaners
  6484.  
  6485.      A generic cleaner works on the principle that any kind of virus -
  6486.      whether or not it has made the signature 'charts' - is bad news. That's
  6487.      why TbClean works with a completely different disinfection scheme that
  6488.      is effective with almost all viruses - it does not even need to recogni-
  6489.      ze them. Actually, TbClean represents two cleaners in one: a 'repair'
  6490.      cleaner and a 'heuristic' cleaner.
  6491.  
  6492.      Repair cleaning
  6493.  
  6494.      Repair cleaning needs an Anti-Vir.Dat file that was generated by TbSetup
  6495.      before the infection occurred. The Anti-Vir.Dat file stores vital
  6496.      information about programs, including their original size, the first few
  6497.      instruction codes and a cryptographic checksum. This information is
  6498.      usually all it takes to disinfect a file, no matter what virus, known or
  6499.      unknown, caused the infection. The cleaner will simply restore the bytes
  6500.      at the beginning of the program, truncate the file to the original size,
  6501.      and verify the result by way of the original checksum.
  6502.  
  6503.  
  6504.      Heuristic cleaning
  6505.  
  6506.      TbClean is the first cleaner in the world that has a heuristic cleaning
  6507.      mode. This mode does not need any information about viruses either, but
  6508.      it has the added advantage that it doesn't even care about the original,
  6509.      uninfected state of a program. This cleaning mode is very effective if
  6510.      your system is infected with an unknown virus and you neglected to let
  6511.      TbSetup generate the Anti-Vir.Dat files in time.
  6512.  
  6513.      In heuristic mode, TbClean loads the infected file and starts emulating
  6514.      the program code. It uses a combination of disassembly, emulation and,
  6515.      sometimes, execution to trace the flow of the viral code, pretending to
  6516.      do more or less exactly what the virus would normally be doing. When the
  6517.      virus gets to the original program's instructions and jumps back to the
  6518.      original program code, TbClean stops the emulation process, with a
  6519.      'thank you' to the virus for its cooperation in restoring the original
  6520.      bytes. 
  6521.  
  6522.      The actual cleaning process involves almost the same three steps as with
  6523.      repair cleaning. First the program startup code is repaired and copied
  6524.      back to the file. Then the viral code, now rendered useless and ineffec-
  6525.      tive, is removed and, for the sake of security, TbClean will do a final
  6526.      analysis of the purged program file.
  6527.  
  6528.  
  6529.  
  6530.  
  6531.  
  6532.  
  6533.  
  6534.  
  6535.  
  6536.                                       IV - 14
  6537. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6538.  
  6539.  
  6540. 5. TbGensig
  6541.  
  6542. 5.1 The Purpose of TbGenSig
  6543.  
  6544.      TbGenSig is a signature file compiler. Since TBAV is distributed with an
  6545.      up to date, ready-to-use signature file, you do not really need the
  6546.      signature file compiler.
  6547.  
  6548.      If, however, you want to define your own virus signatures, you will need
  6549.      the TbGensig utility. You can use either published signatures or define
  6550.      your own ones if you are familiar with the structure of software.
  6551.  
  6552.      One way or another, you only need to do this in case of an emergency,
  6553.      like in case of the unfortunate event that your machine or even your
  6554.      company is attacked by a yet unknown, thus not recognized virus. It is
  6555.      recommended to send a few samples of the virus to some virus experts
  6556.      anyway, in order to let scanners recognize the virus in the next upgra-
  6557.      de.
  6558.  
  6559.      Since it is not possible to explain the whole subject of virus hunting
  6560.      in one manual, this document assumes you have enough experience and
  6561.      knowledge to make your own signatures.
  6562.  
  6563.      TbGenSig searches for a file named UserSig.Dat in the current directory.
  6564.      This file should contain the signatures you want to add to the TBAV
  6565.      signature file TbScan.Sig. TbGenSig checks the contents of the User-
  6566.      Sig.Dat file and applies it to the TbScan.Sig file.
  6567.  
  6568.      If you want to delete or modify your signatures, just edit or delete the
  6569.      UserSig.Dat file and execute TbGenSig again.
  6570.  
  6571.      TbGenSig will list all signatures in the TbScan.Sig file on screen while
  6572.      being executed.
  6573.  
  6574.  
  6575. 5.2 Defining signatures
  6576.  
  6577.      Format of the  UserSig.dat text
  6578.  
  6579.      You can create and edit the UserSig.Dat file with every DOS editor which
  6580.      is able to output unformatted text. All lines starting with ';' are
  6581.      comment lines. TbGenSig file ignores these lines.
  6582.  
  6583.      Lines starting with '%' will be displayed in the upper TbGenSig window.
  6584.  
  6585.      In the first line the name of a virus is expected. The second line
  6586.      contains one or more keywords. The third line contains the signature
  6587.      itself. This combination of three lines is called a 'signature record'.
  6588.  
  6589.  
  6590.  
  6591.  
  6592.  
  6593.                                       IV - 15
  6594. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6595.  
  6596.  
  6597.      A signature record should look like this:
  6598.  
  6599.           Test virus
  6600.           exe com inf
  6601.           abcd21436587abcd
  6602.  
  6603.      You may use spaces in the signature for your own convenience. TbGenSig
  6604.      will ignore these spaces.
  6605.  
  6606.  
  6607.      Adding a published signature    
  6608.  
  6609.      If you want to add a signature that has been published, you should act
  6610.      as illustrated below.
  6611.  
  6612.      -    Edit or create the UserSig.Dat file. Convert the published signatu-
  6613.           re to an acceptable format for TbGenSig.
  6614.  
  6615.      -    Use keywords COM EXE BOOT INF
  6616.  
  6617.           You would get:
  6618.  
  6619.           New virus
  6620.           exe com boot inf
  6621.           1234abcd5678efab
  6622.  
  6623.      -    Execute TbGenSig.
  6624.  
  6625.  
  6626.      Defining a Signature with TBScan
  6627.  
  6628.      This section is intended for advanced users who own a TBAV.KEY file.
  6629.  
  6630.      Although the TbScan.Sig file is updated frequently, new viruses are
  6631.      created every day, outpacing the regular upgrading service of this data
  6632.      file. It is therefore possible that one day your system gets infected by
  6633.      a recently created virus that has not yet been listed in the signature
  6634.      file. TbScan will not always detect the virus in such cases, not even
  6635.      with the heuristic analysis. If you are convinced that your system must
  6636.      have been infected without TbScan confirming this, thischapter will
  6637.      supply you with a valuable tool to detect unknown viruses with. This
  6638.      section offers step-by-step assistance in creating an emergency signatu-
  6639.      re that can be (temporarily) added to your copy of TbScan.Sig
  6640.  
  6641.      -    Collect some infected files and copy them into a temporary directo-
  6642.           ry.
  6643.  
  6644.      -    Boot from a clean write-protected diskette. Do NOT execute ANY
  6645.           program from the infected system, even though you expect this
  6646.           program to be clean.
  6647.  
  6648.  
  6649.  
  6650.                                       IV - 16
  6651. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6652.  
  6653.  
  6654.      -    Execute TbScan from your write-protected TbScan diskette with the
  6655.           'extract' option set. Make sure that the temporary directory where
  6656.           you stored the infected files will be TbScan's target directory.
  6657.           With its 'extract' option set, TbScan will NOT scan the files but,
  6658.           instead, display the first instructions that are found at the
  6659.           entry-point of the infected programs. 
  6660.  
  6661.  
  6662. =>   Please note that we highly recommend you to simultaneously set the 'log'
  6663.      option of TbScan to generate a log file.
  6664.  
  6665.      -    Compare the 'signatures' extracted by TbScan. You should see
  6666.           something like this:
  6667.  
  6668.  
  6669.           NOVIRUS1.COM    2E67BCDEAB129090909090ABCD123490CD
  6670.           NOVIRUS2.COM    N/A
  6671.           VIRUS1.COM      1234ABCD5678EFAB909090ABCD123478FF
  6672.           VIRUS2.COM      1234ABCD5678EFAB901234ABCD123478FF
  6673.           VIRUS3.COM      1234ABCD5678EFAB9A5678ABCD123478FF
  6674.  
  6675.      If the 'signatures' are completely different, the files are either
  6676.      probably not infected, or they have been infected by a polymorphic virus
  6677.      that requires an algorithmic detection module to detect it.
  6678.  
  6679.      -    There might be some differences in the 'signatures'. You can use
  6680.           the question mark wildcard ('?') in this case.
  6681.  
  6682.      A signature to detect the 'virus' in the example above could be:
  6683.  
  6684.           1234ABCD5678EFAB ?3 ABCD123478FF
  6685.  
  6686.      The '?3' means that there are three bytes on that position that should
  6687.      be skipped.
  6688.  
  6689.      -    Add the signature to the data file UserSig.Dat. Give the virus a
  6690.           name in the first line of its entry. Specify the following key-
  6691.           words: COM, EXE, INF, ATE in the second line. Enter the signature
  6692.           in the third.
  6693.  
  6694.  
  6695.      You would get:
  6696.  
  6697.           New virus
  6698.           exe com ate inf
  6699.           1234abcd5678efab?3abcd123478ff
  6700.  
  6701.  
  6702.      -    Execute TbGenSig. Make sure the resulting TbScan.Sig file is in the
  6703.           TbScan directory.
  6704.  
  6705.  
  6706.  
  6707.                                       IV - 17
  6708. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6709.  
  6710.  
  6711.      -    Execute TbScan again in the directory containing the infected
  6712.           files. TbScan should now detect the virus.
  6713.  
  6714.      -    Send a couple of infected files to a recommended virus expert,
  6715.           preferably to the ThunderBYTE organisation.
  6716.  
  6717.      Congratulations! You have defined a signature all by yourself! Now you
  6718.      can scan all your machines in search of the new virus.
  6719.      However, keep in mind that this method of extracting a signature is a
  6720.      'quick-and-dirty' solution to viral problems. The extracted signature
  6721.      might not detect the presence of the virus in all cases. A signature
  6722.      that is guaranteed to detect all instances of the virus can be made only
  6723.      after complete disassembly of the new virus. For these reasons you
  6724.      should NOT distribute your home-made 'signature' to others. The signatu-
  6725.      re eventually assembled by experienced anti-virus researchers will be
  6726.      completely different in most cases!
  6727.  
  6728.  
  6729. 5.3 Keywords
  6730.  
  6731.      Keywords are used for several purposes. They are classified in catego-
  6732.      ries. Keywords may be separated by spaces, commas or tabs. The maximum
  6733.      line length is 80 characters.
  6734.  
  6735.      At least one of the following flags should be specified:
  6736.      BOOT, COM, EXE, HIGH, LOW, SYS or WIN.
  6737.  
  6738.  
  6739.      Item keywords
  6740.  
  6741.  
  6742.      BOOT       Signature can be found in bootsector/partition
  6743.      COM        Signature can be found in COM programs.                  
  6744.  
  6745.      This flag initiates the scanner to search for this signature in executa-
  6746.      ble files that do not have an EXE header or device header.
  6747. =>   Note:   The file contents determines the file type, not the filename
  6748.      extension!
  6749.  
  6750.  
  6751.      EXE        Signature can be found in EXE programs.
  6752.  
  6753.      This flag initiates the scanner to search for this signature in the load
  6754.      module of EXE type files. EXE files are files that have an EXE header.
  6755. =>   Note: The file contents determines the file type, not the filename
  6756.      extension!
  6757.  
  6758.  
  6759.      HIGH      Signature can be found in HIGH memory (above program).This
  6760.                flag initiates the scanner to search for this signature in
  6761.                memory above the memory allocated by the scanner.
  6762.  
  6763.  
  6764.                                       IV - 18
  6765. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6766.  
  6767.  
  6768.      This keyword is intended for resident viruses that allocate memory at
  6769.      system boot, or viruses that decrease the size of the last MCB (Memory
  6770.      Control Block).
  6771. =>   Note:  The flag HIGH does not mean that the signature should be searched
  6772.      in UPPER memory.
  6773.  
  6774.  
  6775.      LOW       Signature can be found in LOW memory. This flag initiates the
  6776.                scanner to search for this signature in memory below the PSP
  6777.                (Program Segment Prefix) of the scanner and in the UMB (Upper
  6778.                Memory Blocks). This keyword is intended for viruses that
  6779.                remain resident in memory, using the normal DOS TSR (Terminate
  6780.                and Stay Resident) function calls. 
  6781.  
  6782.  
  6783.      SYS       Signature can be found in SYS programs.
  6784.  
  6785.  
  6786.      WIN       Signature can be found in Windows programs.
  6787.  
  6788.  
  6789.      Message keywords
  6790.  
  6791.      DAM        Message prefix:  'damaged by'.
  6792.      DROP       Message prefix:  'dropper of'.
  6793.      FND        Message prefix:  'found the'.
  6794.      INF        Message prefix:  'infected by' 
  6795.                 Message suffix:  'virus'
  6796.      JOKE       Message prefix:  'joke named'.
  6797.      OVW        Message prefix:  'overwritten by'.
  6798.      PROB       Mess. pre-prefix:'probably'.
  6799.      TROJ       Message prefix:  'trojanized by'.
  6800.  
  6801.  
  6802.  
  6803.      Position keywords
  6804.  
  6805.  
  6806.      UATE      Signature should be found at unresolved entry-point.
  6807.  
  6808.      Purpose:
  6809.      The signature starts directly at the unresolved entry-point of the viral
  6810.      code. With some polymorphic viruses, it may be possible to create a
  6811.      signature from the degarbling routine, although it may either be too
  6812.      short or give false positives with a global search. An initial branch
  6813.      instruction  may be part of the signature.
  6814.  
  6815.                 COM type files:  top of file (IP 0100h).
  6816.                 EXE type files:  CS:IP as defined in the
  6817.                                  EXE-header.
  6818.                 WIN type files:  Non-DOS CS:IP of the new
  6819.                                  EXE-header.
  6820.  
  6821.                                       IV - 19
  6822. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6823.  
  6824.  
  6825.      Remarks:
  6826.      The keyword UATE is not allowed for BOOT, SYS, LOW, HMA or HIGH type
  6827.      signatures.
  6828.  
  6829.  
  6830.      ATE        Signature should be found AT ENTRY point.
  6831.  
  6832.      Purpose:
  6833.      The signature starts directly at the entry-point of the viral code. With
  6834.      some polymorphic viruses, it may be possible to create a signature from
  6835.      the degarbling routine, although it may either be too short or give
  6836.      false positives with a global search.
  6837.  
  6838.      Therefore the keyword ATE is used to make sure that the scanners do not
  6839.      scan the entire file for the signature, but only look at the entry-point
  6840.      for the signature.
  6841.  
  6842.      The entry-point of a virus is defined by the first byte that is not
  6843.      equal to either a JUMP SHORT, JUMP LONG or a CALL NEAR.
  6844.  
  6845.                 Unresolved entry point:1JUMP LONG   3
  6846.                                      2 ...
  6847.                                      3 JUMP SHORT   5
  6848.                                      4 ...
  6849.                                      5 CALL FAR     7
  6850.                                      6 ...
  6851.                                      7 CALL NEAR    9
  6852.                                      8 ...
  6853.                 Resolved entry point:9  POP <reg>
  6854.  
  6855.           The entry-point of the above fragment is Line 9 as this is the
  6856.           first code to be executed which is not a JUMP SHORT, JUMP LONG or
  6857.           CALL  NEAR or CALL FAR.
  6858.  
  6859.      Remarks:
  6860.      1)   The entry-point can be determined by a code analyzer to cope with
  6861.           tricks like coding a NOP or DEC just before the branch instruction.
  6862.           Therefore the results of the scanner should be tested carefully. In
  6863.           case of trouble use the TbScan 'extract' option to find out what
  6864.           TbScan considers to be the entry point of the program. 
  6865.  
  6866.      2)   The flag ATE is not allowed for BOOT, SYS, LOW, HMA or HIGH type
  6867.           signatures.
  6868.  
  6869.  
  6870.      XHD       Signature can be found at offset 2 of the EXE header.
  6871.  
  6872.      Purpose:
  6873.      This position keyword is rarely used. It should only be used to detect
  6874.      the also very rare high-level language viruses; viruses written in a
  6875.      language like C or Basic. These viruses normally contain standard setup
  6876.      routines and library routines which are not suitable to define a signa-
  6877.  
  6878.                                       IV - 20
  6879. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6880.  
  6881.  
  6882.      ture. The XHD keyword can be used as a last resort to detect such
  6883.      viruses.
  6884.  
  6885.      Remarks:
  6886.      This flag may only be used for EXE or WIN type signatures.
  6887.  
  6888.  
  6889. 5.4 Wildcards
  6890.  
  6891.      In a virus signature, wildcards characters may be used to recognize so
  6892.      called polymorphic (self- modifying/mutating) virus code. Below a
  6893.      description is presented of the wildcard notation. All numbers are in
  6894.      hexadecimal.
  6895.  
  6896.  
  6897.      Position Wildcards
  6898.  
  6899.      Position wildcards affect the position where the parts of the signature
  6900.      will be matched.
  6901.  
  6902.           Skip
  6903.           ?n         =  Skip n amount of bytes and continue.
  6904.           ?@nn       =  Skip nn amount of bytes and continue.
  6905.                          nn should not exceed 7F.
  6906.  
  6907.           Variable
  6908.           *n         =  Skip up to n bytes.
  6909.           *@nn       =  Skip up to nn bytes and continue.
  6910.                          nn should not exceed 1F.
  6911.  
  6912.  
  6913.      Opcode wildcards      
  6914.  
  6915.      The 'opcode' wildcards are shaped to detect instruction ranges:
  6916.  
  6917.           Low opcode
  6918.           nL         =  One of the values in the range n0-n7.
  6919.  
  6920.           High opcode
  6921.           nH         =  One of the values in the range n8-nF.
  6922.  
  6923.  
  6924.      Intended use of the opcode wildcards:
  6925.  
  6926.      Suppose a polymorphic virus puts a value in a word register (using a MOV
  6927.      WREG,VALUE instruction), and increments a register (using an INC WREG
  6928.      instruction, and pops a word register from the stack (using a POP
  6929.      instruction). Both the registers and the value are variable. 
  6930.  
  6931.      You could code it like this:
  6932.           bh4l5h
  6933.  
  6934.  
  6935.                                       IV - 21
  6936. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6937.  
  6938.  
  6939.      B8-BF are the opcodes for 'MOV WREG,VALUE', 40-47 are the opcodes for
  6940.      'INC WREG', and 58-5F are the opcodes for 'POP REG'.
  6941.  
  6942.  
  6943.      Example
  6944.  
  6945.      To show the power of the use of the appropriate keywords and wildcards
  6946.      here is the signature of the Haifa.Mozkin virus. This virus is highly
  6947.      polymorphic and encrypted. It contains a small variable decryptor to
  6948.      decrypt the virus.
  6949.  
  6950.      There are two problems here: most bytes are encrypted or variable, thus
  6951.      not suitable to be part of a signature, and the remainder is short and
  6952.      would cause dozens of false alarms.
  6953.  
  6954.      However, using the appropriate keywords and wildcards, it is possible to
  6955.      define a reliable signature. The signature below is used by TbScan to
  6956.      detect the Haifa.Mozkin virus.
  6957.  
  6958.           Haifa.Mozkin
  6959.           com exe ate inf
  6960.           bh?2bh?109?2*22e80?24l4h75fl
  6961.  
  6962.  
  6963.      Let's analyze it.
  6964.  
  6965.      The first line describes the name of the virus. The second line tells
  6966.      the scanner to search for this signature in COM and EXE type files. It
  6967.      also tells the scanner that it should report the file as infected if the
  6968.      signature can be matched. The keyword ATE instructs the scanner to match
  6969.      this signature only at the resolved entry-point of the file. The virus
  6970.      starts of course with decrypting itself, so it is guaranteed that the
  6971.      scanner will scan this location. The ATE instruction limits the scope of
  6972.      this signature to just one position in a file, so this will reduce the
  6973.      chances of false alarms significantly.
  6974.  
  6975.  
  6976.      The third line is the signature definition. Let's reverse engineer it:
  6977.  
  6978.      bh?2      This means: a byte in the range B8-BF followed by two variable
  6979.                bytes. B8-BF is a 'MOV WREG,VALUE' instruction. From the
  6980.                register we only know it is a word register, the value is
  6981.                unknown as well.
  6982.  
  6983.      bh?109    This means: another 'MOV WREG,VALUE' instruction. The register
  6984.                is a word register, and from the value we know that it is in
  6985.                the range 0900 to 09FF.
  6986.  
  6987.      ?2*2      This means: skip two to four bytes. This instruction is inser-
  6988.                ted by the virus to make it harder to define a signature.
  6989.  
  6990.  
  6991.  
  6992.                                       IV - 22
  6993. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                SECTION IV
  6994.  
  6995.  
  6996.      2e80?2    This means: the virus performs an arithmethic byte sized
  6997.                operation with an immediate value (decrypts one byte) with a
  6998.                CS: segment override. The exact operation, the memory location
  6999.                and the value are unknown.
  7000.  
  7001.      4l        This means: a byte in the range 40-47. This is an 'INC WREG'
  7002.                instruction. The virus increments the counter to the next byte
  7003.                to be decrypted.
  7004.  
  7005.      4h        This means: a byte in the range 48-4F. This is a 'DEC WREG'
  7006.                instruction. The virus decrements the iteration count.
  7007.  
  7008.      75fl      Opcode 75 is a JNZ instruction. If the decremented register
  7009.                did not reach zero, the virus jumps back and repeats the
  7010.                operation. How much does it jump? That tells the 'fl' part:
  7011.                somewhere between -16 (F0h) to -8 (F7h) bytes.
  7012.  
  7013.  
  7014.      Although the signature language of TbGenSig is very powerful, there are
  7015.      viruses which are so highly polymorphic that they require even more
  7016.      sophisticated wildcards, keywords or even special detection algorithms.
  7017.      The explanation however of these wildcards, keywords or algorithmic
  7018.      detection definitions is so complicated that it is not suitable to be
  7019.      presented in a user manual.
  7020.  
  7021.  
  7022.  
  7023.  
  7024.  
  7025.  
  7026.  
  7027.  
  7028.  
  7029.  
  7030.  
  7031.  
  7032.  
  7033.  
  7034.  
  7035.  
  7036.  
  7037.  
  7038.  
  7039.  
  7040.  
  7041.  
  7042.  
  7043.  
  7044.  
  7045.  
  7046.  
  7047.  
  7048.  
  7049.                                       IV - 23
  7050. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX A
  7051.  
  7052.  
  7053. Appendix A. TBAV messages
  7054.  
  7055.  
  7056.      The TBAV utilities may display various messages when executed. Most
  7057.      messages will be clear enough, but here is some additional information
  7058.      followed by the name of the appropriate TBAV utility.
  7059.  
  7060.  
  7061.      
  7062. TbClean
  7063.  
  7064.  
  7065.      Anti-Vir.Dat record          The Anti-Vir.Dat record has been found, but
  7066.      found: information mat-      the information matches the current state
  7067.      ches the current state       of the file. The Anti-Vir.Dat record was
  7068.      of the file. Anti-           created after the file got infected, or the
  7069.      Vir.Dat file was created     file is not changed at all. TbClean is
  7070.      after the infection.         going to emulate the file to clean it heu-
  7071.      Trying emulation...          ristically.
  7072.  
  7073.      Anti-Vir.Dat record          The Anti-Vir.Dat record that belongs to the
  7074.      found: reconstructing        infected file has been found. The informa-
  7075.      original state...            tion will be used to reconstruct the file.
  7076.  
  7077.      Anti-Vir.Dat record not      The Anti-Vir.Dat file did not exist or did
  7078.      found: original state        not contain information of the infected
  7079.      unknown. Trying emulati-     program, so the original state of the in-
  7080.      on...                        fected program is unknown to TbClean. Tb-
  7081.                                   Clean will switch to its heuristic mode to
  7082.                                   determine the state of the original file.
  7083.  
  7084.                                   Note: to prevent a situation like this,
  7085.                                   make sure to use the TbSetup program to
  7086.                                   generate the Anti-Vir.Dat records.
  7087.  
  7088.                                   These records are of great help to TbClean.
  7089.                                   When the file is already infected it is too
  7090.                                   late to generate the Anti-Vir.Dat records.
  7091.  
  7092.      Emulation terminate:         The emulation process has been terminated
  7093.      <reason>                     for the reason specified. TbClan will now
  7094.      <reason> can be one of       consult the collected information to see if
  7095.      the following:               it can disinfect the file.
  7096.  
  7097.      Jump to BIOS code.           The virus tried to perform a call or jump
  7098.                                   directly into BIOS code. This process can
  7099.                                   not be emulated so it will be aborted. The
  7100.                                   program can probably not be disinfected.
  7101.  
  7102.      Approached stack crash.      The emulated program is approaching a
  7103.                                   crash. Something went wrong while emulating
  7104.                                   the program so it will be aborted. The
  7105.                                   program can probably not be disinfected.
  7106. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX A
  7107.  
  7108.  
  7109.      Attempt to violate li-       TbClean will not disassemble this program
  7110.      cense agreements.            for obvious reasons.
  7111.  
  7112.      Encountered keyboard         The emulated program tries to read the
  7113.      input request.               keyboard. This is very unusual for viruses,
  7114.                                   so the file is probably not infected at
  7115.                                   all.
  7116.  
  7117.      Encountered an invalid       The emulator encountered an unknown in-
  7118.      instruction.                 struction. For some reason the emulation
  7119.                                   failed. The program can probably not be
  7120.                                   disinfected.
  7121.  
  7122.      DOS program-terminate        The emulated program requests DOS to stop
  7123.      request.                     execution. The program is not infected at
  7124.                                   all, or infected by an overwriting virus
  7125.                                   that does not pass control to its host
  7126.                                   program. The program can not be disinfec-
  7127.                                   ted.
  7128.  
  7129.      Jumped to original pro-      The program jumped back to the start po-
  7130.      gram entry point.            sition. It is very likely it is infected.
  7131.                                   The program can probably be disinfected.
  7132.  
  7133.      Undocumented DOS call        This is very common for viruses that add
  7134.      with pointers to reloca-     themselves in front of the COM type pro-
  7135.      ted code.                    gram. The program can probably be disin-
  7136.                                   fected.
  7137.  
  7138.      Encountered an endless       TbClean encountered a situation in which
  7139.      loop.                        the program is executing the same in-
  7140.                                   struction sequences over and over again for
  7141.                                   hundreds of thousands of times. It is unli-
  7142.                                   kely that the program will ever escape from
  7143.                                   this loop, so the emulation will be abor-
  7144.                                   ted.
  7145.  
  7146.      Ctrl-break pressed.          The user pressed <Ctrl><Break> so the clean
  7147.                                   attempt is aborted.
  7148.  
  7149.      Emulation aborted for        If this message is shown, please send a
  7150.      unknown reason.              copy of the file being emulated to ESaSS BV
  7151.                                   or one of the support BBSs.
  7152.  
  7153.      Sorry, the collected         The heuristic cleaning mode of TbClean is
  7154.      information is not suf-      aborted and has not been successful. The
  7155.      ficient to clean file...     only option left is to restore the file
  7156.                                   from a backup or to re-install the program.
  7157.  
  7158.      Collected enough infor-      The emulation of the virus provided TbClean
  7159.      mation to attempt a re-      with all information to disinfect the file.
  7160.      liable clean opera-
  7161.      tion...
  7162. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX A
  7163.  
  7164.  
  7165.      Some DOS error occured.      Some DOS error occured while trying to
  7166.      TbClean aborted!             clean the file. Check that no files are
  7167.                                   read-only or located on a write protected
  7168.                                   disk, and make sure there is a reasonable
  7169.                                   amount of free disk space.
  7170.  
  7171.      The clean attempt seems      It seems that TbClean removed the virus
  7172.      to be successful. Test       from the file. No doubt about the virus: it
  7173.      the file carefully!          is gone. However, take care and test the
  7174.                                   file carefully to see if it works as expec-
  7175.                                   ted.
  7176.  
  7177.      Reconstruction failed.       TbClean tried to reconstruct the original
  7178.      Program might be over-       file with the help of the Anti-Vir.Dat
  7179.      written. Trying emulati-     record. However, the attempt failed. Tb-
  7180.      on...                        Clean is going to emulate the file to try
  7181.                                   to clean it heuristically.
  7182.  
  7183.      Reconstruction succes-       The file has been reconstructed to its
  7184.      sfully completed.            original state with help of the information
  7185.                                   of the Anti-Vir.Dat record. The CRC (check-
  7186.                                   sum) of the original file and the cleaned
  7187.                                   file are completely equal, so the cleaned
  7188.                                   file is almost certain equal to the origi-
  7189.                                   nal file.
  7190.  
  7191.      Staring clean attempt.       TbClean is analyzing the infected file and
  7192.      Analyzing infected fi-       tries to locate the Anti-Vir.Dat record.
  7193.      le...
  7194.  
  7195.  
  7196. TbDriver
  7197.  
  7198.      Another version of Tb-       You started a TbDriver.Exe with another
  7199.      Driver is already resi-      version number or processor type than the
  7200.      dent!                        TbDriver already in memory.
  7201.  
  7202.      Cannot remove TbDriver.      You tried to remove TbDriver from memory,
  7203.      Unload other TSRs first!     but other resident software as loaded after
  7204.                                   TbDriver. Resident software can only be
  7205.                                   removed from memory by unloading them in
  7206.                                   reversed order.
  7207.  
  7208.      LAN support was  already     You tried to use the option 'net' for a
  7209.      installed.                   second time, or TbDriver already enabled
  7210.                                   network support automatically.
  7211.  
  7212.      TbDriver not active.         The resident TBAV utilities need TbDriver,
  7213.      Load TbDriver first!         so you have to load TbDriver first.
  7214.  
  7215.      TbDriver is not <versi-      The version of TbDriver found in memory
  7216.      on>.                         does not match the version number of this
  7217.                                   resident TBAV utility. Make sure you do not
  7218.                                   mix version numbers!
  7219. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX A
  7220.  
  7221.  
  7222.      This version of TbDriver     You are using a processor optimized version
  7223.      requires a <typeID> pro-     of TbDriver which can not be executed by
  7224.      cessor.                      the current processor.
  7225.  
  7226.  
  7227. TbScan
  7228.  
  7229.      Cannot create logfile.       The specified log file path is illegal, the
  7230.                                   disk is full or write protected, or the
  7231.                                   file already exists and cannot be overwrit-
  7232.                                   ten.
  7233.  
  7234.      [Cannot read datafile]       TbScan needs access to its data file to be
  7235.                                   able to tell you the name of the virus. If
  7236.                                   it cannot access the data file it displays
  7237.                                   this message instead of the virus.
  7238.  
  7239.      Command line error.          An invalid or illegal commandline option
  7240.                                   has been specified.
  7241.  
  7242.      No matching executable       The specified path does not exist, is emp-
  7243.      files found.                 ty, or is not an executable file.
  7244.  
  7245.      Sanity check failed!         TbScan detected that its internal checksum
  7246.                                   does not match anymore. TbScan is possibly
  7247.                                   contaminated by a virus. Obtain a clean
  7248.                                   copy of TbScan, copy the program on a write
  7249.                                   protected diskette, boot from that diskette
  7250.                                   and try again!
  7251.  
  7252.  
  7253. TbScanX
  7254.  
  7255.      Data file not found.         TbScanX has not been able to locate the
  7256.                                   data file.
  7257.  
  7258.      Not enough memory.           There is not enough free memory to process
  7259.                                   the data file. Try to enable swapping, or
  7260.                                   if you are already doing so, try another
  7261.                                   swapping mode. See also section IV, chapter
  7262.                                   "Memory requirements".
  7263. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX B
  7264.  
  7265.  
  7266. Appendix B. TbScan - Heuristic flag descriptions
  7267.  
  7268.  
  7269.      # - Decryptor code found
  7270.      The file possibly contains a self-decryption routine. Some copy-protec-
  7271.      ted software is encrypted so this warning may appear for some of your
  7272.      files. If, however, this warning appears in combination with, for
  7273.      example, the 'T' warning, there could be a virus involved and TbScan
  7274.      assumes the file is contaminated! Many viruses encrypt themselves and
  7275.      cause this warning to be displayed.
  7276.  
  7277.      ! - Invalid program.
  7278.      Invalid opcode or out-of-range branch. The program has either an entry
  7279.      point that has been located outside the body of the file, or reveals a
  7280.      chain of 'jumps' that can be traced to a location outside the program
  7281.      file. Another possibility is that the program contains invalid processor
  7282.      instructions. The program being checked is probably damaged, and cannot
  7283.      be executed in most cases. Anyway, TbScan does not take any risk and
  7284.      uses the 'scan' method to scan the file.
  7285.  
  7286.      1 - 80186+ instructions
  7287.      The file contains instructions which can not be executed by 8088 proces-
  7288.      sors, and require a 80186 or better processor.
  7289.  
  7290.      @ - Strange instructions
  7291.      The file contains instructions which are not likely to be generated by
  7292.      an assembler, but by some code generator like a polymorphic virus
  7293.      instead.
  7294.  
  7295.      ? - Inconsistent header.
  7296.      The program being processed has an exe-header that does not reflect the
  7297.      actual program lay-out. Many viruses do not update the exe-header of an
  7298.      EXE file correctly after they have infected the file, so if this warning
  7299.      pops up frequently, it seems you have a problem.
  7300.  
  7301.      c - No integrity check
  7302.      This warning indicates that no checksum/recovery information has been
  7303.      found about the indicated file. It is highly recommended to use TbSetup
  7304.      in this case to store information of the mentioned file. This info can
  7305.      be used later on for integrity checking and to recover from virus
  7306.      infections.
  7307.  
  7308.      h - Hidden or System file.
  7309.      The file has the 'Hidden' or the 'System' file attribute set. This means
  7310.      that the file is not visible in a DOS directory display but TbScan will
  7311.      scan it anyway. If you don't know the origin and/or purpose of this
  7312.      file, you might be dealing with a 'Trojan Horse' or a 'joke' virus
  7313.      program. Copy such a file onto a diskette; then remove it from it's
  7314.      program environment and check if the program concerned is missing the
  7315.      file. If a program does not miss it, you will have freed some disk
  7316.      space, and maybe you have saved your system from a future disaster in
  7317.      the process.
  7318.  
  7319.      i - Internal overlay.
  7320. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX B
  7321.  
  7322.  
  7323.      The program being processed has additional data or code behind the load-
  7324.      module as specified in the exe-header of the file. The program might
  7325.      have internal overlay(s), or configuration or debug information appended
  7326.      behind the load-module of the EXE file.
  7327.  
  7328.      p - Packed or compressed file.
  7329.      The program has been packed or compressed. There are some utilities that
  7330.      are able to compress a program file, like EXEPACK or PKLITE. If the file
  7331.      was infected after the file had been compressed, TbScan will be able to
  7332.      detect the virus. However, if the file had already been infected before
  7333.      it was compressed, the virus has also been compressed in the process,
  7334.      and a virus scanner might not be able to recognize the virus anymore.
  7335.      Fortunately, this does not happen very often, but you should beware! A
  7336.      new program might look clean, but can turn out to be the carrier of a
  7337.      compressed virus. Other files in your system will then be infected too,
  7338.      and it is these infections that will be clearly visible to virus scan-
  7339.      ners.
  7340.  
  7341.      w - Windows or OS/2 header.
  7342.      The program can be or is intended to be used in a Windows (or OS/2)
  7343.      environment. TbScan will also scan this file for Windows and OS/2
  7344.      viruses too.
  7345.  
  7346.      A - Suspicious Memory Allocation
  7347.      The program uses a non-standard way to search for, and/or to allocate
  7348.      memory. A lot of viruses try to hide themselves in memory so they use a
  7349.      non-standard way to allocate this memory. Some programs (high-loaders or
  7350.      diagnostic software) also use non-standard ways to search or allocate
  7351.      memory.
  7352.  
  7353.      B - Back to entry.
  7354.      The program seems to execute some code, and after that it jumps back to
  7355.      the entry-point of the program. Normally this would result in an endless
  7356.      loop, except when the program has also modified some of its instructi-
  7357.      ons. This is quite common behaviour for computer viruses. In combination
  7358.      with any other flag TbScan will report a virus.
  7359.  
  7360.      C - File has been changed
  7361.      This warning can only appear if you used TbSetup to generate the Anti-
  7362.      Vir.Dat files. If this warning appears this means that the file has been
  7363.      changed. If you did not upgrade the software it is very likely that a
  7364.      virus infected the file! Note that TbScan does not display this warning
  7365.      if only some internal configuration area of the file changes. This
  7366.      warning means that code at the program entry point, the entry-point
  7367.      itself and/or the file size have been changed.
  7368.  
  7369.      D - Direct disk access
  7370.      This flag is displayed if the program being processed has instructions
  7371.      near the entry-point to write to a disk directly. It is quite normal
  7372.      that some disk-related utilities cause this flag to be displayed. As
  7373.      usual, if many of your files (which have no business writing directly to
  7374.      the disk) cause this flag to be displayed, your system might be infected
  7375.      by an unknown virus.
  7376. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX B
  7377.  
  7378.  
  7379. =>   Note that a program that accesses the disk directly does not always have
  7380.      to be marked by the 'D' flag. Only when the direct disk instructions are
  7381.      near the program entry point it will be reported by TbScan. If a virus
  7382.      is involved the harmful instructions are always near the entry point,
  7383.      which is the place where TbScan looks for them.
  7384.  
  7385.      E - Flexible Entry-point
  7386.      The program starts with a routine that determines its own location
  7387.      within the program file. This is rather suspicious because sound pro-
  7388.      grams have a fixed entry-point so they do not have to determine this
  7389.      location. For viruses however this is quite common: about 50% of the
  7390.      known viruses cause this flag to be displayed.
  7391.  
  7392.      F - Suspicious file access
  7393.      TbScan has found instruction sequences common to infection schemes used
  7394.      by viruses. This flag will appear with those programs that are able to
  7395.      create or modify existing files.
  7396.  
  7397.      G - Garbage instructions.
  7398.      The program contains code that seems to have no purpose other than
  7399.      encryption or avoiding recognition by virus scanners. In most cases
  7400.      there will not be any other flags since the file is encrypted and the
  7401.      instructions are hidden. In a few cases this flag will appear for
  7402.      'normal' files. These files however are badly designed, which is the
  7403.      reason the 'garbage' flag appears.
  7404.  
  7405.      J - Suspicious jump construct.
  7406.      The program did not start at the program entry point. The code has
  7407.      jumped at least two times before reaching the final start-up code, or
  7408.      the program jumped using an indirect operand. Sound programs should not
  7409.      display this kind of strange behaviour. If many files cause this warning
  7410.      to be displayed, you should investigate your system thoroughly.
  7411.  
  7412.      K - Unusual stack.
  7413.      The EXE file being processed has an odd (instead of even) stack offset
  7414.      or a suspicious stack segment. Many viruses are quite 'buggy' by setting
  7415.      up an illegal stack value.
  7416.  
  7417.      L - program Load trap
  7418.      The program might trap the execution of other software. If the file also
  7419.      causes flag M (memory resident code) to be displayed, it is very likely
  7420.      that the file is a resident program that determines when another program
  7421.      is executed. A lot of viruses trap the program load and use it to infect
  7422.      the program. Some anti-virus utilities also trap the program load.
  7423.  
  7424.      M - Memory resident code.
  7425.      TbScan has found instruction sequences which could cause the program to
  7426.      hook into important interrupts. A lot of TSR (Terminate and Stay Resi-
  7427.      dent) programs will trigger this flag, because hooking into interrupts
  7428.      is part of their usual behaviour. If, however, a lot of non-TSR programs
  7429.      cause this warning flag to appear, you should be suspicious. It is
  7430.      likely that your files have been infected by a virus that remains
  7431.      resident in memory. Note that this warning does not appear with all true
  7432. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX B
  7433.  
  7434.  
  7435.      TSR programs. Nor can TSR detection in non-TSR programs always be relied
  7436.      upon.
  7437.  
  7438.      N - Wrong name extension
  7439.      Name conflict. The program carries the extension .EXE but appears to be
  7440.      an ordinary .COM file, or it has the extension .COM but the internal
  7441.      layout of an .EXE file. A wrong name extension might in some cases
  7442.      indicate a virus, but in most cases it does not.
  7443.  
  7444.      O - code Overwrite.
  7445.      This flag will be displayed if TbScan detects that the program overwri-
  7446.      tes some of its own instructions. However, it does not seem to have a
  7447.      complete (de)cryptor routine.
  7448.  
  7449.      R - Suspicious relocator
  7450.      Flag 'R' refers to a suspicious relocator. A relocator is a sequence of
  7451.      instructions that changes the proportion of CS:IP. It is often used by
  7452.      viruses. Those viruses have to relocate the CS:IP proportion because
  7453.      they have been compiled for a specific location in the executable file;
  7454.      a virus that infects another program can hardly ever use its original
  7455.      location in the file as it is appended to this file. Sound pro-
  7456.      grams'know' their location in the executable file, so they don't have to
  7457.      relocate themselves. On systems that operate normally only a small
  7458.      percentage of the programs should therefore cause this flag to be
  7459.      displayed.
  7460.  
  7461.      S - Search for executables
  7462.      The program searches for *.COM or *.EXE files. This by itself does not
  7463.      indicate a virus, but it is an ingredient of most viruses anyway (they
  7464.      have to search for suitable files to spread themselves).  If accompanied
  7465.      by other flags, TbScan will assume the file is infected by a virus.
  7466.  
  7467.      T - Invalid timestamp.
  7468.      The timestamp of the program is invalid: e.g. the number of seconds in
  7469.      the timestamp is illegal, or the date is illegal or later than the year
  7470.      2000. This is suspicious because many viruses set the timestamp to an
  7471.      illegal value (like 62 seconds) to mark that they already infected the
  7472.      file, preventing themselves from infecting a file for a second time
  7473.      around. It is possible that the program being checked is contaminated
  7474.      with a virus that is still unknown, especially if many files on your
  7475.      system have an invalid timestamp. If only a very few programs have an
  7476.      invalid timestamp you'd better correct it and scan frequently to check
  7477.      that the timestamp of the files remains valid.
  7478.  
  7479.      U - Undocumented system call.
  7480.      The program uses unknown DOS calls or interrupts. These unknown calls
  7481.      can be issued to invoke undocumented DOS features, or to communicate
  7482.      with an unknown driver in memory. Since a lot of viruses use undocumen-
  7483.      ted DOS features, or communicate with memory resident parts of a previ-
  7484.      ously loaded instance of the virus, it is suspicious if a program
  7485.      performs unknown or undocumented communications. Nevertheless, it does
  7486.      not necessarily indicate a virus, since some 'tricky' programs use
  7487.      undocumented features also. 
  7488. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX B
  7489.  
  7490.  
  7491.      V - Validated program
  7492.      The program has been validated to avoid false alarms.
  7493.      -    The design of this program would normally cause a false alarm by
  7494.           the heuristic scan mode of TbScan, or:
  7495.      -    This program might change frequently, and the file is excluded from
  7496.           integrity checking.
  7497.      These exclusions are stored in the Anti-Vir.Dat file by either TbSetup
  7498.      (automatically) or by TbScan (manually).
  7499.  
  7500.      Y - Invalid bootsector.
  7501.      The bootsector is not completely in accordance with the IBM defined
  7502.      bootsector format. It is possible that the bootsector contains a virus
  7503.      or has been corrupted.
  7504.  
  7505.      Z - EXE/COM determinator.
  7506.      The program seems to check whether a file is a COM or EXE type program.
  7507.      Infecting a COM file is a process that is not similar to infecting an
  7508.      EXE file, which implies that viruses able to infect both program types
  7509.      should also be able to distinguish between them. There are of course
  7510.      also innocent programs that need to find out whether a file is a COM or
  7511.      EXE file. Executable file compressors, EXE2COM converters, debuggers,
  7512.      and high-loaders are examples of programs that may contain a routine to
  7513.      distinguish between EXE and COM files.
  7514. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX C
  7515.  
  7516.  
  7517. Appendix C. Solving incompatibility problems
  7518.  
  7519.  
  7520.      Although TBAV utilities have been designed to cooperate with other
  7521.      resident software, other software may not, causing system errors or
  7522.      worse.
  7523.  
  7524.  
  7525.  
  7526.      Problem:  If any TBAV utility tries to display a message, the text
  7527.                'message file <filename> could not be opened' appears.
  7528.  
  7529.      Solution: Specify the FULL path and filename of the file you will use as
  7530.                message file after the TbDriver loading command. The default
  7531.                file name is "TbDriver.Lng".
  7532.  
  7533.  
  7534.  
  7535.      Problem:  One of your utilities is loading a TSR into memory without an
  7536.                'executable' filename extension, such as .EXE or .COM. Since
  7537.                TbSetup will only create Anti-Vir.Dat records for files with
  7538.                an 'executable' extension, there is no Anti-Vir.Dat, so TbMem
  7539.                is not able to record the TSR permission information.
  7540.  
  7541.      Solution: Run TbSetup and specify the exact filename of the TSR. TbSetup
  7542.                will create an Anti-Vir.Dat record, regardless of the filename
  7543.                extension, so TbMem is now able to record its information.
  7544.  
  7545.                Although the Anti-Vir.Dat record exists, TbScan will not use
  7546.                it to check the CRC to avoid false alarms.
  7547.  
  7548.  
  7549.      Problem:  You are running a network. 
  7550.  
  7551.                TbScanX is installed succesfully, but it does not display the
  7552.                "*scanning*" message while accessing files. It does not detect
  7553.                viruses either.
  7554.  
  7555.                TbCheck is installed succesfully, but it does not display the
  7556.                "*checking*" message while accessing files. It does not detect
  7557.                viruses either. 
  7558.  
  7559.                TbFile is installed succesfully, but it does not detect anyt-
  7560.                hing anymore.
  7561.  
  7562.                TbMem is installed succesfully, but it does not detect TSRs
  7563.                anymore.
  7564.  
  7565.      Solution: Use the command 'TbDriver net' after the network has been
  7566.                loaded.
  7567. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX C
  7568.  
  7569.  
  7570.      Problem:  The system sometimes hangs when the message "*scanning*" is on
  7571.                the screen.
  7572.  
  7573.      Solution: Try TbScanX without option 'EMS' or 'XMS'. If TbScanX now
  7574.                works without any problems, add option 'EMS' or 'XMS' again
  7575.                along with option 'compat'. On some systems the TbScanX 'XMS'
  7576.                option cannot be used at all, because these systems do not
  7577.                allow the use of extended memory by resident software.
  7578.  
  7579.                If the problem is related to option 'XMS' and can not be
  7580.                solved with option 'compat', you can use option 'XMSseg =
  7581.                <value>' to change the XMS swap segment address. The value
  7582.                should be between 2000 and 8000. The default value is 4000.
  7583.  
  7584.  
  7585.  
  7586.      Problem:  After you have given permission for a program to remain resi-
  7587.                dent in memory, TbMem asks the same question the next time.
  7588.  
  7589.      Solution: 1)   The 'secure' option of TbDriver is specified. Remove this
  7590.                     option, reboot and try again.
  7591.  
  7592.                2)   The program mentioned does not appear in the Anti-Vir.Dat
  7593.                     file and therefore TbMem cannot permanently store the
  7594.                     permission flag. Use TbSetup to generate the Anti-Vir.Dat
  7595.                     record of this program!
  7596.  
  7597.  
  7598.  
  7599.      Problem:  The system sometimes hangs when you answer 'YES' (abort pro-
  7600.                gram) to a TbMem message.
  7601.  
  7602.      Solution: None. Some resident programs deeply interfere with the system,
  7603.                and once they are rejected from memory the state of the system
  7604.                is not stable anymore.
  7605.  
  7606.  
  7607.  
  7608.      Problem:  When you load TbDisk from the DOS command prompt everything
  7609.                works OK. However, when you install TbDisk from within the
  7610.                Config.Sys or AutoExec.Bat file it keeps on warning that
  7611.                programs write to disk directly.
  7612.  
  7613.      Solution: Load TbDisk at the end of your AutoExec.Bat file.
  7614.  
  7615.  
  7616.  
  7617.      Problem:  You formatted the hard disk using DOS FORMAT.COM, but TbDisk
  7618.                did not come up with a message until the process was almost
  7619.                finished.
  7620.  
  7621.      Solution: This is not a problem. A high level format program like DOS
  7622.                FORMAT.COM does actually not format the disk, but it reads all
  7623.                tracks to locate possible bad spots, and finally it clears the
  7624. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX C
  7625.  
  7626.  
  7627.                FAT and directory structure. Only this last step implies a
  7628.                disk write, so only this last step is detected by TbDisk.
  7629.  
  7630.  
  7631.  
  7632.      Problem:  After you have given permission for a program to perform
  7633.                direct disk access, TbDisk asks the same question next time.
  7634.  
  7635.      Solution: 1)   The 'secure' option of TbDriver is specified.  Remove
  7636.                     this option, reboot and try again. 
  7637.  
  7638.                2)   The program mentioned does not appear in the Anti-Vir.Dat
  7639.                     file and therefore TbDisk can not permanently store the
  7640.                     permission flag. Use TbSetup to generate the Anti-Vir.Dat
  7641.                     record ofthis program!
  7642.  
  7643.  
  7644.  
  7645.      Problem:  If you try to use Windows fast 32 bit disk access, Windows
  7646.                comes up with an error message.
  7647.  
  7648.      Solution: Use option 'win32' on the TbDisk command line.
  7649. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX D
  7650.  
  7651.  
  7652. Appendix D. Batch file handling
  7653.  
  7654.  
  7655.      All TBAV utilities return to DOS with an error code which you can use by
  7656.      the DOS 'errorlevel' command. Consult your DOS manual for information
  7657.      how to use this command.
  7658.  
  7659.      TbScan terminates with one of the following exit codes:
  7660.  
  7661.      Errorlevel      0        No viruses found / No error occurred
  7662.                      1        No files found
  7663.                      2        Error occurred
  7664.                      3        Files have been changed
  7665.                      4        Virus found by heuristic analysis
  7666.                      5        Virus found by signature scanning
  7667.                    255        Sanity check failed
  7668.  
  7669.  
  7670.      TbUtil terminates with one of the following exit codes:
  7671.  
  7672.      Errorlevel      0        No error occurred
  7673.                      1        When option 'compare' fails or an error occurs
  7674.  
  7675.  
  7676.      All other ultilities exit with one of the following exit codes:
  7677.  
  7678.      Errorlevel      0        No error occurred
  7679.                      1        Error occurred
  7680.  
  7681.  
  7682.      To detect within a batch file whether a resident TBAV utility has been
  7683.      loaded you can check for the device names. All TBAV utilities install a
  7684.      device name, whether they are loaded in the Config.Sys or AutoExec.Bat.
  7685.  
  7686.      You can use the DOS 'if exist' construction to check for the device
  7687.      names:
  7688.  
  7689.           @echo off
  7690.           if not exist SCANX echo TbScanX has not been loaded!
  7691.  
  7692.      Or you can branch to a label by using the goto command:
  7693.  
  7694.           If not exist SCANX goto noscanx
  7695.           bla bla
  7696.           :noscanx
  7697.           bla bla
  7698.  
  7699.      The TBAV device names are:
  7700.           TbScanX:            SCANX
  7701.           TbCheck:            TBCHKXXX
  7702.           TbMem:              TBMEMXXX
  7703.           TbFile:             TBFILXXX
  7704.           TbDisk:             TBDSKXXX
  7705.           TbLog:              TBLOGXXX
  7706. TBAV user manual (C) Copyright 1994 Thunderbyte B.V.                APPENDIX E
  7707.  
  7708.  
  7709. Appendix E. Virus naming
  7710.  
  7711.  
  7712.      How many viruses does TbScan detect?
  7713.  
  7714.      Most of the TbScan signatures are family signatures: one signature
  7715.      detects a whole set of viruses. All these viruses are related to each
  7716.      other. The Jerusalem signature for instance covers more than 100 viru-
  7717.      ses. For this reason one cannot tell how many viruses TbScan detects.
  7718.      Some competitive products treat each virus mutant as a separate virus,
  7719.      thus claiming to detect over 2000 viruses. TbScan, however can detect
  7720.      viruses using 'only' 1000 signatures. If you want to compare virus
  7721.      scanners, you have to rely on the tests frequently published in magazi-
  7722.      nes.
  7723.  
  7724.  
  7725.      The virus naming convention
  7726.  
  7727.      TbScan follows the CARO virus naming recommendations. CARO is an organi-
  7728.      sation in which leading anti-virus researchers participate. Viruses are
  7729.      grouped in a hierarchical tree, which indicates to which family viruses
  7730.      belong. TbScan shows the complete CARO name where possible. Many other
  7731.      anti-virus products however just show the family name or the member
  7732.      name. For instance, the 'Leprosy.Seneca.493' virus might be indicated by
  7733.      the familiy name 'Leprosy' or member name 'Seneca', or even by the
  7734.      variant name '493'. 
  7735.  
  7736.      Anti-virus products developed by non CARO members might even use a
  7737.      completely different name. TbScan however tries to display as much of
  7738.      the name as possible. If TbScan is not able to distinguish between the
  7739.      'Leprosy.Seneca.493' and 'Leprosy.Seneca.517' viruses, both viruses are
  7740.      indicated by the name 'Leprosy.Seneca'.
  7741.  
  7742.      Some viruses mutate themselves frequently. To detect all instances of
  7743.      such a virus it is sometimes necessary to use multiple signatures.
  7744.      Although these signatures cover exactly the same virus, they do have a
  7745.      slightly different indication. Behind the name of the virus you will see
  7746.      a number between anglebrackets. This number however has nothing to do
  7747.      with the name of the virus, but is there just for maintenance reasons.