Viruses, Trojan horses, worms, spyware, and adware are types of malware that can infect computers. Viruses spread by replicating themselves while worms use networks to spread. Trojan horses disguise themselves as legitimate programs to gain access to computers. Spyware secretly monitors user activity and adware displays unwanted advertisements. Malware is any software designed to disrupt or damage computers.