What is malware?
Malware, short for malicious software, is hardware, firmware or software that is intentionally included in a system for a harmful purpose. In everyday use it means any program built to damage a device, steal data, spy on you or take control of your computer or phone (NIST glossary).
The word covers a wide family: viruses, worms, trojans, ransomware, spyware and more. This page is the short hub. It explains the main types, the signs of an infection, how malware usually arrives and what to do if you suspect it, with links to deeper guides on each topic. For a long catalog, see 26 types of malware attacks and the malware glossary entry.
Malware vs a virus vs a worm vs a trojan
People often use “virus” for everything, but the terms describe different behavior:
Get the free 5-minute weekday brief
Scam alerts you can act on, major breaches, and our free Scam Survival Kit (PDF). Free, every weekday.
By subscribing you agree to our Privacy Policy.
For everyday readers, small businesses and security teams. Unsubscribe anytime.
| Term | Plain-English meaning | Read more |
|---|---|---|
| Malware | The umbrella term for any malicious software | This page |
| Virus | Attaches itself to a program or file and spreads when that file is run or shared | What is a virus |
| Worm | Copies itself across networks on its own, without a person opening a file | What is a computer worm |
| Trojan | Pretends to be a useful or legitimate program to get you to install it | What is a trojan |
| Ransomware | Locks files and demands payment | What is ransomware |
| Spyware | Secretly watches activity or collects information | What is spyware |
Microsoft makes the same point about trojans: unlike viruses, they cannot spread on their own, so they have to be downloaded manually or installed by other malware (Microsoft Learn).
Common signs of malware
No single sign proves an infection, and many of these can have ordinary causes such as an aging device or a full disk. Several together deserve attention:
- The device is suddenly much slower, crashes often or overheats with nothing demanding running.
- Pop-ups or ads appear in places they should not, or your browser home page or search engine changed without your input.
- New apps, browser extensions or toolbars you did not install.
- Security software is turned off, or you cannot update it.
- Files are missing, renamed or locked, or a message demands payment.
- Unexpected sign-in alerts, password reset emails or messages sent from your accounts that you did not write.
Security software can catch many of these problems. Our anti-malware vs antivirus guide explains what it can and cannot do.
How malware usually gets in
- Phishing. Email, text or chat messages with malicious links or attachments. Try our phishing quiz.
- Fake or pirated software. Installers from unofficial sites, cracked programs and fake updates.
- Unpatched software. Known flaws in operating systems, browsers and apps that were never updated.
- Malicious ads and websites. Pages that push a fake “download” or “your computer is infected” warning.
- Infected removable drives and compromised accounts.
CISA’s guidance on malicious code covers these risks and the everyday defenses against them (CISA: Protecting Against Malicious Code).
What to do if you suspect malware
- Disconnect from the internet to limit damage while you work out what is going on.
- Do not enter passwords on the affected device. If you already have, change them from a different, clean device.
- Run a full scan with built-in or reputable security software. Microsoft offers Microsoft Defender Antivirus and Microsoft Safety Scanner for Windows (Microsoft Learn).
- Remove anything you do not recognize and install pending updates.
- Restore from a clean backup or reset the device if the scan cannot clear the problem.
- Watch your accounts for unusual activity and turn on multi-factor authentication.
If your files are locked and there is a payment demand, jump to what ransomware is and what to do first.
How to stay safer
- Turn on automatic updates for your operating system, browser and apps.
- Install apps only from official stores or the publisher’s own site.
- Use a standard (non-administrator) account for daily use where you can.
- Keep a tested backup that is not always connected to your computer.
- Use security software you trust. Our anti-malware vs antivirus guide explains the difference.
- Be skeptical of unexpected messages, even from people you know, and turn on MFA for important accounts.
Microsoft publishes a practical set of habits in its guide to preventing malware infection (Microsoft Learn).
Frequently asked questions
What is malware in simple words?
Malware is any software built to harm you or your device, steal information or take control of it. NIST describes it as hardware, firmware or software intentionally included in a system for a harmful purpose. Source: NIST glossary.
What is the difference between malware and a virus?
Malware is the broad category. A virus is one type that spreads by attaching itself to files or programs. Worms, trojans, ransomware and spyware are other types.
How do I know if my computer has malware?
Look for several signs together: unusual slowness, unexpected pop-ups, changed browser settings, unknown apps, disabled security software or locked files. Then run a full scan with trusted software.
Can malware infect a phone?
Yes. Phones can be affected through malicious apps, links in texts and outdated software. Install apps from official stores and keep the operating system updated.
Can antivirus remove all malware?
No tool catches everything. Security software helps, but updates, careful clicking, backups and multi-factor authentication matter too.
What should I do first if I think I have malware?
Disconnect from the internet, avoid typing passwords on the device, run a full scan and change your passwords from a clean device. See Microsoft guidance on removing trojans.
Sources
- NIST CSRC Glossary: malware
- Microsoft Learn: Trojan malware
- Microsoft Learn: Prevent malware infection
- CISA: Protecting Against Malicious Code
- CISA: Ransomware 101
Start your morning with the signal that matters.
Get the biggest cybersecurity developments, why they matter, and where to go deeper on CyberExperts.
By subscribing you agree to our Privacy Policy.
For everyday readers, small businesses and security teams. Unsubscribe anytime.