Malware is malicious software designed to harm or access a computer system without consent. It includes viruses, worms, trojan horses, spyware, and other unwanted programs. Malware was originally written as experiments or pranks, but is now often used for criminal purposes like identity theft or installing botnets for spam or denial of service attacks. It spreads through the internet and removable media. Malware authors aim to conceal the malware and prevent its removal through techniques like rootkits.