The most typical type of malware is an infection. Look At Thissite A virus is a piece of code that is designed to duplicate itself and spread out from one computer system to another. viruses can be spread through email attachments, downloads, and other files.