What Is a Computer Virus?

Posted by on January 4, 2014

We’re constantly warned against the risks posed by computer viruses and the need for protection in the form of anti-virus software.

But what is a computer virus, exactly? And do we really need to worry about it?

A computer virus is a piece of software that makes copies of itself, typically inserting these copies into other programs and files. It’s not always malicious, but when it is, it’s classified as a form of malicious software, or malware.

Viruses can spread between computers via removable media (such as discs, external hard drives, flash drives, media players and other devices that can store computer files), via the Internet or over a networked system.

A virus will almost always be attached to an executable (.exe) program, or a file designed to be opened by a specific program (for example, a “.doc” file that automatically opens in Microsoft Word. The virus will need the host program to be launched before it can become active — if the program isn’t launched, the virus will remain dormant.

When the host program is run on a computer, the virus is run as well. Typically, the host program will continue to run normally, although more virulent infections may damage the program so it doesn’t execute properly.

Viruses can have a number of negative effects, sometimes unintentionally. They can damage software so that it no longer runs correctly; erase files; or cause your computer to malfunction, run slowly, crash, reboot at random or break down altogether.

Other forms of malicious software, or “malware,” are often referred to as viruses, including worms, rootkits, Trojan horses, spyware and adware. This is a misnomer, however, because these forms of malware behave differently from true viruses.

Anti-virus software can detect and remove viruses after the computer has downloaded or executed an infected file. The most common method of detection involves examining the computer’s memory (RAM) and the boot sectors of the hard drive, then comparing their contents against a database of algorithms or hashes (numbers-derived text strings), each of which uniquely identifies a specific virus. These hashes are known as virus signatures.

Anti-virus software may also scan opened files and files sent via email. Anti-virus software needs to be updated regularly to catch new viruses.

Regular backups can also minimize the impact of a viral infection by preventing data loss.

Follow us @tomsguide, on Facebook and on Google+.

Comments are closed.