Computer viruses are types of malicious software that replicate by inserting copies of themselves into other programs and files. When activated, viruses infect hosts by looking for programs to insert themselves into. There are many types of viruses, including Trojan horses, spyware, boot sector viruses, time bombs, browser hijackers, file infector viruses, adware, and worms. Ransomware is a malicious program that encrypts a user's files and demands payment to decrypt them, carrying out attacks through disguised email attachments or automatically spreading worms.