Malware, spyware, and Trojan horses are types of computer viruses. Malware is software used to disrupt computers, gather sensitive information, or gain unauthorized access. Spyware aims to collect user information without consent. A Trojan horse misleads users into installing malicious programs. Antivirus software detects and removes viruses and other threats, while firewalls monitor network traffic and control access based on security rules.