The word malware derives from the term malicious software, and is a common name for all software designed to infiltrate or damage a computer system without the owner's informed consent.
Computer viruses, worms, trojans, keyloggers etc. are all different kinds of malware.