Malware
Malware is any software secretly installed on a computer or network to damage it, steal data, spy on users or give an attacker control. Viruses, ransomware, spyware, trojans and infostealers are all types of malware.
Also called: malicious software, malicious code
What is malware?
NIST defines malware as a program inserted into a system, usually covertly, with the intent of compromising the confidentiality, integrity or availability of the victim's data, applications or operating system. In plain terms, it is software that does something harmful that the owner didn't agree to. "Malware" is the umbrella term; viruses, ransomware and spyware are all types of it.
How does malware work?
Malware has to reach a device, run, and then do its job without being noticed.
- Delivery: phishing attachments and links, fake software downloads and malicious ads, infected USB drives, or attackers exploiting unpatched systems directly.
- Execution: the victim opens a file or installs a program, or an exploit runs the code automatically.
- Persistence: the malware makes sure it survives a reboot, for example by adding itself to startup tasks.
- The payload: it then does what it was built for: encrypting files, stealing passwords, spying, or giving the attacker remote control through a command and control server.
Common types of malware
- [Ransomware](/glossary/ransomware/): encrypts files and demands payment.
- Infostealers and [spyware](/glossary/spyware/): collect passwords, browser sessions and other data.
- [Trojan horses](/glossary/trojan-horse/): pose as legitimate software.
- [Viruses](/glossary/computer-virus/) and [worms](/glossary/computer-worm/): spread from file to file or system to system.
- [Remote access trojans](/glossary/remote-access-trojan/): give the attacker hands-on control.
- [Botnet](/glossary/botnet/) malware: turns devices into part of a network the attacker controls.
- [Rootkits](/glossary/rootkit/), [fileless malware](/glossary/fileless-malware/) and [wipers](/glossary/wiper-malware/): hide deep in the system, run only in memory, or destroy data.
Warning signs of a malware infection
The FTC lists signs such as a computer that suddenly slows down, crashes or shows repeated error messages, won't shut down or restart, shows lots of pop-ups, or has new toolbars, icons or a changed home page you didn't add. Many business infections show no signs at all, which is why monitoring matters.
How to protect your business
- Keep operating systems, browsers and business apps patched.
- Limit admin rights, so a user's mistake can't install software across the network.
- Run endpoint protection on every device. Traditional antivirus matches known malware, while endpoint detection and response also watches for suspicious behavior and helps catch new variants.
- Filter email and web traffic, and allow software installs only from approved sources.
- Keep tested backups, and have someone watch the alerts. A managed security provider can run that monitoring for you.
What to do if you find malware
Disconnect the device from the network, but don't wipe it until you know what happened. Change passwords from a clean device, starting with email and admin accounts. Then check whether the malware spread or took data. NIST SP 800-83 describes the standard steps: contain, remove, recover and learn. For anything beyond a single machine, bring in an incident response team.
Related terms
Sources
- Glossary: malware (NIST)
- SP 800-83 Rev. 1: Guide to Malware Incident Prevention and Handling for Desktops and Laptops (NIST)
- How To Recognize, Remove, and Avoid Malware (Federal Trade Commission)
Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.
