Viruses And How They Infect Files
Thursday, December 4th, 2008A virus is a computer program written by nefarious individuals with the malicious intention of altering the way a system operates without the knowledge of the people who use the system. The virus is capable of executing and rewriting itself. The reason why people dread viruses is that they can wreck havoc on the system. They can corrupt or delete files, render programs useless and can even reformat the hard disk which can result in data loss and system crashes.
How Viruses Can Get On To Your System
Viruses can find their way to your system by several methods. You can get viruses as attachments with emails and instant messages. When you open these attachments they can infect your systems. When you download and open a program from the internet that has been infected and when you share a file over a server that has been infected you risk infecting your own system. It can also transmit through infected removable disks.
Types Of File Viruses
There are many different types of viruses that can be classified based on their mode of infection, the area of infection and the method used to select a system to infect. There are viruses that infect the files, boot sectors, script hosts and macro environments.
Viruses that infect the file system are further sub-divided into various types. File viruses infect files using various methods. The simplest method is to overwrite the code of the infected file. This makes the file unusable and can result in system crash.
There are files that modify the code of the infected file and the file is not rendered useless, it remains partially or fully functional and such a virus is called a parasitic virus. The malicious code can be written either at the beginning, the ending or in the middle of the file. There are files that write themselves on to gaps present in the file or the empty sectors found in the file. Each time the file is accessed they ensure that the malicious command is also executed. These files need to have the right entry point in order to be executed soon or they may remain dormant for a very long time and can also be deleted before they can infect the system.
Companion viruses are file viruses that do not modify the original file that they infect instead create a duplicate file with the malicious code. When the original file is being accessed, the virus makes sure that the duplicate file with the virus gets executed.
There are files that copy themselves onto various directories and lie dormant until they are executed. There are certain viruses that modify the file system in such a fashion that the infected file is executed. These are termed as link viruses.
The boot sector and master boot record viruses are memory residents. They can infect the system when an infected disk is read on the system. Multi-parasite viruses infect program files as well as the boot records. Both these viruses infect the start up files.
Macro viruses are those that infect data files. These files can be written in such a fashion that the other file apart from data files can be infected. They infect Microsoft PowerPoint, Excel, Word and Access files.
Script viruses are viruses that are written in script languages that infect other script files.
When the viruses infect the system it slows down without any explanation, it behaves erratically displaying error messages and you might find programs or certain files missing. Some files may not open and you may find some programs do not function as they should. The best way to deal with virus threats is to use an updated anti-virus that can scan and keep your system virus-free.