Malware, short for malicious software, is a general term for software designed to damage computers, smartphones, or networks, gain unauthorized access to them, or steal information. Viruses, worms, Trojan horses, ransomware, and spyware all fall under the term.
Malware typically reaches a device through email attachments, compromised websites, or software vulnerabilities. Once installed, it may capture screen contents or keystrokes, encrypt files, or send data to an external server. Antivirus programs and operating system security features aim to detect and block such behavior.
In the AI field, the term comes up both in discussions of language models being misused to write malware and in machine learning techniques for detecting it.