Computer viruses are programs designed to spread from computer to computer and interfere with operations. The first virus appeared in 1982 as a prank. Viruses are often spread through email attachments and downloads. To protect against viruses, only open attachments from trusted sources, backup files frequently, and use antivirus software. Common types of malware include viruses, worms, Trojan horses, and boot sector viruses.