What Is Malware?

Malware, short for malicious software, is any program designed to harm a computer or phone, or to steal from the person using it. Viruses, worms, trojans, ransomware, spyware and adware are all types of malware.

Types of malware

Pick a type to see how it gets in, what it does and how to stop it.

Virus

Code that attaches itself to a file or program and runs when you open it.

How it spreads:
Infected email attachments, pirated software, macros in documents and USB drives. It needs a person to open the host file.
What it does:
Copies itself into other files, then corrupts data, slows the computer or opens the door for other malware.
Real example:
ILOVEYOU (2000) arrived as a “love letter” attachment and overwrote files on millions of PCs.
How to stop it:
Keep antivirus on, and do not open attachments or enable macros you were not expecting.

Malware vs virus

People say “virus” for anything bad on a computer, but a virus is only one kind of malware: the kind that infects other files. Most attacks today use trojans, ransomware and spyware, which is why security tools are now called anti-malware rather than antivirus.

What is ransomware? Step through an attack

Ransomware is malware that encrypts your files and demands payment for the key. Most attacks follow the same seven stages.

Stage 1 of 7

Way in

An employee opens a phishing email, or the attacker logs in to remote desktop with a stolen password.

Signs you might have malware

Tick what you have noticed on this computer or phone. Your answers stay in this browser.

Symptoms

No signs checked

  1. Tick anything you have noticed on this device to see what it might mean.

What to do if you think you have malware

  1. Disconnect. Turn off Wi-Fi and unplug network cables so the malware cannot spread or send your data.
  2. Scan. Run a full scan with your built-in security tool, such as Microsoft Defender, and remove what it finds.
  3. Change passwords. From a clean device, change your email, banking and password-manager passwords and turn on multi-factor authentication.
  4. Restore. If the problem returns, wipe the device, reinstall the system and restore files from a backup made before the infection.

This page is educational only. It does not scan your device or download anything. Back to the checklist

Malware basics quiz

Try 5 questions and check your answers.

1. What is malware?
2. What is the difference between malware and a virus?
3. Which type spreads across a network by itself, with no click needed?
4. Ransomware has locked your files. What protects you best?
5. You downloaded a “free” video converter and now your search engine keeps changing. What is it most likely?

Malware questions, answered

What is malware in simple terms?

Malware, short for malicious software, is any program written to harm a device or its user: to steal data, lock files, spy on activity or show unwanted ads.

What is the difference between malware and a virus?

Malware is the umbrella term. A virus is one type of malware that spreads by attaching itself to files. Worms, trojans, ransomware, spyware and adware are other types.

How do I know if I have malware?

Strong signs are a ransom message, files that will not open, security tools turned off, and messages sent from your accounts that you did not write. Pop-ups outside the browser and changed browser settings point to adware.

Can phones and Macs get malware?

Yes. Macs, iPhones and Android phones are attacked less often than Windows PCs, but spyware, fake apps and malicious profiles exist for all of them. Updates and official app stores are the main defense.

Should I pay a ransomware demand?

Law enforcement advises against it. Paying does not guarantee a working key or that stolen data is deleted, and it funds more attacks. Restore from backups and report the attack instead.

For current threats and guidance, see CISA’s StopRansomware and the FTC’s malware guide.

Running AI coding agents on your machine? Explore Tornic to turn your Claude Code, Codex or Cursor subscription into repeatable, reviewable workflows.