Definition
Malware is a broad term for malicious software. It includes viruses that attach to other files, worms that spread on their own, trojans that pretend to be useful programs, spyware that records activity, and ransomware that locks files.
Malware arrives through downloads from untrusted sources, pirated software, malicious attachments, fake browser updates and sometimes infected advertising. Keeping the operating system and apps up to date closes many of the weaknesses it uses.
Signs of infection include slow performance, unexpected pop-ups, new programs you did not install, and changed browser settings. Run a reputable security scan, remove unknown programs, change passwords from a clean device, and restore from backup if files were damaged.