Malware is malicious software designed to disrupt, damage, or gain unauthorized access to computer systems and networks, including viruses, worms, trojan horses, and ransomware.