A computer system infection is a piece of code that is developed to interfere with the typical functioning of a computer system. Infections can spread quickly and cause substantial damage to both individual computers and networks. Some viruses are safe, while others can delete files, corrupt data, or even damage hardware.