The most common type of malware is an infection. https://geogenes.org/?p=338 A virus is a piece of code that is designed to replicate itself and spread out from one computer to another. viruses can be spread through email accessories, downloads, and other files.