A bug is a piece of code that is designed to disrupt the typical functioning of a computer. Viruses can spread out rapidly and cause considerable damage to both private computer systems and networks. Some infections are harmless, while others can erase files, corrupt information, or perhaps damage hardware.