A bug is a piece of code that is designed to interrupt the normal performance of a computer. Viruses can spread out quickly and cause significant damage to both specific computers and networks. Some infections are safe, while others can delete files, corrupt information, or even damage hardware.