A bug is a piece of code that is created to disrupt the typical performance of a computer. Infections can spread rapidly and trigger significant damage to both private computers and networks. Some infections are harmless, while others can erase files, corrupt information, or even damage hardware.