You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson provides an in-depth look at the different types of malware you need to know for OCR J277 Section 1.4. Each type has distinct characteristics, methods of spreading, and impacts.
Malware is a general term for any software that is intentionally designed to cause damage to a computer, server, client or computer network. The word comes from "malicious software."
Malware can:
A computer virus is a piece of malicious code that attaches itself to a legitimate program or file. It requires human action to spread — the infected file must be opened, run, or shared.
| Feature | Detail |
|---|---|
| Needs host file | Yes |
| Needs user action | Yes — user must open/run the file |
| Self-replicating | Only when host is executed |
| Spread method | Email, USB, downloads |
A worm is a standalone malicious program that replicates itself to spread to other computers. Unlike viruses, worms do not need a host file and do not require user action to spread.
Worms can spread extremely quickly across networks, consuming bandwidth and processing power. They can also carry a payload that performs additional malicious actions.
OCR Exam Tip: The key difference between a virus and a worm is that a worm is self-replicating and does NOT need a host file or user action. This is a very common comparison question in the exam.
A trojan (short for Trojan horse) is malware that disguises itself as legitimate or useful software to trick users into installing it.
| Feature | Virus | Worm | Trojan |
|---|---|---|---|
| Needs host file | Yes | No | No (is the file itself) |
| Self-replicates | Yes (with host) | Yes (standalone) | No |
| Needs user action | Yes | No | Yes (installation) |
| Disguised | Sometimes | No | Always |
Ransomware is malware that encrypts the victim's files or locks their system, then demands payment (usually in cryptocurrency) for the decryption key.
OCR Exam Tip: Ransomware questions often ask about the impact on businesses. Key impacts include: loss of access to critical data, financial cost of ransom or recovery, reputational damage, and potential breach of data protection law.
Spyware is malware that secretly monitors and collects information about a user's activities without their knowledge or consent.
Spyware often arrives bundled with free software or through malicious websites. It runs silently in the background and sends collected data back to the attacker.
Adware is software that automatically displays or downloads advertising material, often in the form of pop-up windows or browser redirects.
While adware is sometimes considered less harmful than other malware, it can:
| Malware Type | Key Feature | Self-Replicates? | Needs User Action? |
|---|---|---|---|
| Virus | Attaches to host files | Yes (with host) | Yes |
| Worm | Standalone, exploits vulnerabilities | Yes | No |
| Trojan | Disguised as legitimate software | No | Yes |
| Ransomware | Encrypts files, demands payment | Sometimes | Usually |
| Spyware | Secretly monitors activity | No | Usually |
| Adware | Displays unwanted adverts | No | Usually |
The decision tree below helps you classify a malware sample by its behaviour — a useful technique when an exam scenario describes symptoms.
flowchart TD
A[Suspicious software] --> B{Self-replicates?}
B -- Yes --> C{Needs host file?}
C -- Yes --> V[Virus]
C -- No --> W[Worm]
B -- No --> D{"Disguised as<br/>legitimate?"}
D -- Yes --> T[Trojan]
D -- No --> E{What does it do?}
E -- Encrypts files for ransom --> R[Ransomware]
E -- Monitors user secretly --> S[Spyware]
E -- Shows unwanted adverts --> AD[Adware]
Understanding the differences between these malware types is essential for your OCR J277 exam. You should be able to identify each type from a description and explain how to protect against them.
In May 2017, WannaCry ransomware spread across the world in a matter of hours. Within a day it had affected more than 200,000 computers in 150 countries. In the United Kingdom, the National Health Service was hit particularly hard: at least 80 NHS trusts had machines infected, thousands of appointments and operations were cancelled, and A&E departments diverted ambulances to hospitals that were still able to accept patients. The incident is studied because it demonstrates how several categories of malware behaviour can combine in a single piece of software.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.