home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / utils / antivir2.zip / NEWVIRUS < prev    next >
Text File  |  1988-02-14  |  8KB  |  132 lines

  1. (This was found in the Info-IBMPPC digest Volume 7 Number 8 from USENET) 
  2.  
  3.  
  4. Date: Wed,  27 Jan 88 13:22:27 +0200
  5. >From: Y. Radai <RADAI1%HBUNOS.BITNET@CNUCE-VM.ARPA>
  6. Subject: Another PC Virus
  7.  
  8.    Issue 74 of the Info-IBMPC digest contained a description of a "virus"
  9. discovered at Lehigh University which destroys the contents of disks after
  10. propagating itself to other disks four times.  Some of us here in Israel,
  11. never far behind other countries in new achievements (good or bad), are
  12. suffering from what appears to be a local strain of the virus.  Since it
  13. may have spread to other countries (or, for all we know, may have been im-
  14. ported from abroad), I thought it would be a good idea to spread the word
  15. around.
  16.  
  17.    Our version, instead of inhabiting only COMMAND.COM, can infect any ex-
  18. ecutable file.  It works in two stages:  When you execute an infected EXE
  19. or COM file the first time after booting, the virus captures interrupt 21h
  20. and inserts its own code.  After this has been done, whenever any EXE file
  21. is executed, the virus code is written to the end of that file, increasing
  22. its size by 1808 bytes.  COM files are also affected, but the 1808 bytes
  23. are written to the beginning of the file, another 5 bytes (the string
  24. "MsDos") are written to the end, and this extension occurs only once.
  25.  
  26.    The disease manifests itself in at least three ways: (1) Because of this
  27. continual increase in the size of EXE files, such programs eventually be-
  28. come too large to be loaded into memory or there is insufficient room on
  29. the disk for further extension.  (2) After a certain interval of time
  30. (apparently 30 minutes after infection of memory), delays are inserted so
  31. that execution of programs slows down considerably.  (The speed seems to be
  32. reduced by a factor of 5 on ordinary PCs, but by a smaller factor on faster
  33. models.)  (3) After memory has been infected on a Friday the 13th (the next
  34. such date being May 13, 1988), any COM or EXE file which is executed on
  35. that date gets deleted.  Moreover, it may be that other files are also af-
  36. fected on that date; I'm still checking this out.
  37.  
  38. (If this is correct, then use of Norton's UnErase or some similar utility
  39. to restore files which are erased on that date will not be sufficient.)
  40.  
  41.    Note that this virus infects even read-only files, that it does not
  42. change the date and time of the files which it infects, and that while the
  43. virus cannot infect a write-protected diskette, you get no clue that an at-
  44. tempt has been made by a "Write protect error" message since the pos-
  45. sibility of writing is checked before an actual attempt to write is made.
  46.  
  47.    It is possible that the whole thing might not have been discovered in
  48. time were it not for the fact that when the virus code is present, an EXE
  49. file is increased in size *every* time it is executed.  This enlargement of
  50. EXE files on each execution is apparently a bug; probably the intention was
  51. that it should grow only once, as with COM files, and it is fortunate that
  52. the continual growth of the EXE files enabled us to discover the virus much
  53. sooner than otherwise.
  54.  
  55.    From the above it follows that you can fairly easily detect whether your
  56. files have become infected.  Simply choose one of your EXE files
  57. (preferably your most frequently executed one), note its length, and ex-
  58. ecute it twice.  If it does not grow, it is not infected by this virus.
  59. If it does, the present file is infected, and so, probably, are some of
  60. your other files.  (Another way of detecting this virus is to look for the
  61. string "sUMsDos" in bytes 4-10 of COM files or about 1800 bytes before the
  62. end of EXE files; however, this method is less reliable since the string
  63. can be altered without attenuating the virus.)
  64.  
  65.    If any of you have heard of this virus in your area, please let me know;
  66. perhaps it is an import after all.  (Please specify dates; ours was noticed
  67. on Dec. 24 but presumably first infected our disks much earlier.)
  68.  
  69.    Fortunately, both an "antidote" and a "vaccine" have been developed for
  70. this virus.  The first program cures already infected files by removing the
  71. virus code, while the second (a RAM-resident program) prevents future in-
  72. fection of memory and displays a message when there is any attempt to in-
  73. fect it.  One such pair of programs was written primarily by Yuval Rakavy,
  74. a student in our Computer Science Dept.
  75.  
  76.    In their present form these two programs are specific to this particular
  77. virus; they will not help with any other, and of course, the author of the
  78. present virus may develop a mutant against which these two programs will be
  79. ineffective.  On the other hand, it is to the credit of our people that
  80. they were able to come up with the above two programs within a relatively
  81. short time.
  82.  
  83.    My original intention was to put this software on some server so that it
  84. could be available to all free of charge.  However, the powers that be have
  85. decreed that it may not be distributed outside our university except under
  86. special circumstances, for example that an epidemic of this virus actually
  87. exists at the requesting site and that a formal request is sent to our head
  88. of computer security by the management of the institution.
  89.  
  90.    Incidentally, long before the appearance of this virus, I had been using
  91. a software equivalent of a write-protect tab, i.e. a program to prevent
  92. writing onto a hard disk, especially when testing new software.  It is
  93. called PROTECT, was written by Tom Kihlken, and appeared in the Jan. 13,
  94. 1987 issue of PC Magazine; a slightly amended version was submitted to the
  95. Info-IBMPC library.  Though I originally had my doubts, it turned out that
  96. it is effective against this virus, although it wouldn't be too hard to
  97. develop a virus or Trojan horse for which this would not be true.  (By the
  98. way, I notice in Issue 3 of the digest, which I received only this morning,
  99. that the version of PROTECT.ASM in the Info-IBMPC library has been replaced
  100. by another version submitted by R. Kleinrensing.  However, in one respect
  101. the new version seems to be inferior: one should *not* write-protect all
  102. drives above C: because that might prevent you from writing to a RAMdisk or
  103. an auxiliary diskette drive.)
  104.  
  105.    Of course, this is only the beginning.  We can expect to see many new
  106. viruses both here and abroad.  In fact, two others have already been dis-
  107. covered here.  In both cases the target date is April 1.  One affects only
  108. COM files, while the other affects only EXE files.  What they do on that
  109. date is to display a "Ha ha" message and lock up, forcing you to cold boot.
  110. Moreover (at least in the EXE version), there is also a lockup one hour
  111. after infection of memory on any day on which you use the default date of
  112. 1-1-80.  (These viruses may actually be older than the above-described
  113. virus, but simply weren't noticed earlier since they extend files only
  114. once.)
  115.  
  116.    The author of the above-mentioned anti-viral software has now extended
  117. his programs to combat these two viruses as well.  At present, he is con-
  118. centrating his efforts on developing broad-spectrum programs, i.e. programs
  119. capable of detecting a wide variety of viruses.
  120.  
  121.    Just now (this will give you an idea of the speed at which developments
  122. are proceeding here) I received notice of the existence of an anti-viral
  123. program written by someone else, which "checks executable files and reports
  124. whether they include code which performs absolute writes to disk, disk for-
  125. matting, writes to disk without updating the FAT, etc."  (I haven't yet
  126. received the program itself.)
  127.  
  128.                                        Y. Radai
  129.                                        Computation Center
  130.                                        Hebrew University of Jerusalem
  131.                                        RADAI1@HBUNOS.BITNET
  132.