Companion Virus

A companion virus is a type of virus that does not modify any files. This functonality is uncommon among viruses and makes it particularily troubling for an infected host. Such viruses were more frequently encountered during the MS-DOS era due to the way the OS handled file extensions of executables.



How It Works


A companion virus takes a pre-existing file and makes a copy of it with a different extension. The most common extension given to a copied file is .COM. For example a companion virus would take a file on the host such as run.exe and make a copy called run.com.
Usually such a virus would scan the host looking for directories containing executable files. It would then copy the executables file name and append the .com extension. This new file would be placed either in a directory containing the original file or into another one which might have precedence with respect to file execution. The infected host would then run the program run.exe unbeknowst to them actually runs the infected file, infecting the host.