A program that can copy itself and infect a computer. Sometimes used loosely to refer to any kind of malware, strictly speaking a virus attaches itself to an existing program and usually corrupts or modifies files on the device it infects. Viruses spread across networks to infect other computers.