10.07.2015 Views

virus

virus

virus

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

File VirusesViruses infecting compiler libraries, object modules and source codeare exotic enough and not widely spread. There is a total of about ten ofthem. Those infecting OBJ and LIB files merge their code into modules orlibraries in the format of an object module or library. Therefore infected filesare not executable and can not continue spreading the <strong>virus</strong> further in itscurrent state. Its the COM or EXE file, created as a result of linking theinfected OBJ/LIB file with other object modules and libraries, that carries the<strong>virus</strong>. Therefore, the spreading of the <strong>virus</strong> goes in two stages: during thefirst one the OBJ/LIB files are infected, during the second stage thereemerges a viable <strong>virus</strong>.Infecting the source code of the programs is a logical continuation ofthe previous method of multiplication. Here the <strong>virus</strong> adds its source code tothe source code in the original target file (in this case the <strong>virus</strong> has to containit inside its body) or its own hex dump (which is technically easier to do). Theinfected file is capable of spreading the <strong>virus</strong> further only upon completion ofcompiling and linking (see for example the "SrcVir" and "Urphin" <strong>virus</strong>es).1.2 Operating Algorithm of a File VirusHaving received control, the <strong>virus</strong> does the following (here goes a listof the most common actions of the <strong>virus</strong> during its execution; for eachparticular <strong>virus</strong> this list may be added to, or items may change order andbroaden):A memory resident <strong>virus</strong> checks RAM for presence of the copy of this<strong>virus</strong> in it, and infects RAM if no copy has been found. Non-TSR <strong>virus</strong> looksfor uninfected files in the current and (or) the root directory, in thedirectories of the PATH, scans the directory tree of logical drives, and theninfects the found files;7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!