The most typical type of malware is an infection. view An infection is a piece of code that is developed to duplicate itself and trigger damage to a computer system. There are several kinds of infections, and they can be spread in a number of ways, including through email accessories, download links, and infected websites.