Article View: comp.virus
Article #5295Re: How the 1554 virus recognizes infected files (PC)
From: Gonzalo M. Rojas Costa
Date: Thu, 01 Mar 1990 19:16
Date: Thu, 01 Mar 1990 19:16
46 lines
2399 bytes
2399 bytes
Hi...
Vesselin Bontchev (T762102@DM0LRZ01.BITNET) writes:
>> For .COM files:
>> If the contents of the word at offset 02 in the file is 12Eh,
>> then the file is infected.
No. The file isn't infected if the contents of the word at offset 02
in the file is 12Eh. (i.e. If I have an infected program, this always
have the word 12Eh at offset 02, because this word is part of an
instruction of the virus).
>> For .EXE files:
>> If the contents of the word at offset 02 in the file is equal
>> to the negated contents of the word at offset 12h, then the file is
>> infected.
No. If the contents of the word at offset 02 (Number of bytes
contained in last page) is equal to the negated contents of the
word at offset 12h (negative sum of all the words in the file),
then the program ISN'T INFECTED.
(In the process of infection, the virus negates the number of bytes
contained in the last page of the EXE program, and this value it
puts at offset 12h of the header (i.e. as the negative sum of all
the words in the file).
>> Unfortunately, this does not give us a method for file vaccination,
>> since the contents of the bytes mentioned above is used. For .COM
>> files, the byte at offset 02 is usually (not always!) the third
>> byte of a JMP instruction. For .EXE files the situation is
>> easier --- the word at offset 12h contains the so-called checksum,
>> which is never used and can be modified.
I completely agree with you.
Disclaimer: The views expressed are my own! I do not speak for, nor do
I represent any other person or company.
Gonzalo M. Rojas Costa
BITNET: LISTVIR@USACHVM1
ARPA: LISTVIR%USACHVM1.BITNET@CUNYVM.CUNY.EDU
Owner of ASSMPC-L ("Assembly for the IBM-PC")
Antiviral Research Group
Technical Support Unit
Universidad de Santiago de Chile
Technical Details
Message-ID:
<0008.9003011504.AA12678@ge.sei.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!vax1.cc.lehigh.edu!sei.cmu.edu!krvwShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!vax1.cc.lehigh.edu!sei.cmu.edu!krvw From: LISTVIR@USACHVM1.BITNET (Gonzalo M. Rojas Costa) Newsgroups: comp.virus Subject: Re: How the 1554 virus recognizes infected files (PC) Message-ID: <0008.9003011504.AA12678@ge.sei.cmu.edu> Date: 1 Mar 90 19:16:47 GMT Sender: Virus Discussion List <VIRUS-L@IBM1.CC.Lehigh.EDU> Lines: 46 Approved: krvw@sei.cmu.edu