A virus is the most common malicious software that infects other files and computers. It is a computer program that can copy itself, infect a computer and alter the way it works without the permission or knowledge of the owner. The term "virus" is also commonly but mistakenly used to refer to other types of malicious software such as worms and spyware that do not have the reproductive ability.