A virus is a piece of code that is developed to interfere with the regular performance of a computer. Viruses can spread out quickly and trigger considerable damage to both private computers and networks. Some infections are safe, while others can delete files, corrupt data, or even damage hardware.