GCSE · Computer Science · Edexcel · Spec 1CP2

Malware – viruses

Everyone says 'my computer's got a virus'. Plot twist: 'virus' is only one kind of malware, and it has a very particular trick.

Computer science · Malware

Virus or worm? Sort the features

Start with what a virus and a worm share. Tick which circle each feature belongs in: virus, worm, both, or neither. Then check.

  • A Virus
  • B Worm
  1. Makes copies of itself (self-replicating)
  2. Is a type of malware
  3. Attaches itself to files
  4. Replicates by modifying other programs and inserting code
  5. Replicates without attaching itself to files
  6. Is the name for every kind of malware

Exam line: Both self-replicate. Only a virus attaches itself to files, by modifying other programs and inserting code.

Computer science · Malware

Is 'virus' just another word for malware?

A friend says: 'My laptop's playing up, it must have a virus.'

Which idea is closest to what you think right now?
How sure are you?

Exam line: A virus is one type of malware. Malware is the umbrella word.

Why a virus matters

?

Reason it through

Why can one infected program become a problem for a whole network?

Link 1 of 4

First link · your turn

A virus has got into one computer. What does it do to the other programs on it?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

Computer science · Malware

Open door or locked door?

Pick an action, then pick where it belongs.

Still to sort

Opens a way in or raises the risk (0)

Gives malware a route into a system, or makes infection more likely.

Reduces the risk (0)

Makes it harder for malware to get in.

10 of 10 still to sort.

Malware often tricks users into downloading or installing it. Which everyday actions help it in, and which lower the risk?

Exam line: Ways in are alternatives, not stages. Outdated software and no antivirus protection increase the risk.

Computer science · Malware

Say it in your own words

Describe how a virus replicates, state one way it differs from a worm, and state one thing a virus and a worm have in common. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

Exam line: Describe how it replicates, then give one difference and one similarity.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

What a virus really is, how it differs from a worm, and how malware gets in.

What you need to know

  • Malware is any program or file made to damage, steal from, or take control of a computer system without permission.
  • Types of malware include viruses, worms, trojans, ransomware, spyware and adware; each works differently depending on what it is designed to do.
  • Have a goA classmate swears 'virus' is just another word for malware. Which name in the list above proves them wrong?

    Any of the others: worms, trojans, ransomware, spyware or adware.

    Malware is the umbrella word, and virus is only one of the types listed under it.

  • A virus is self-replicating: it copies itself by modifying other programs and inserting code, so it attaches itself to files.
  • Worms replicate without attaching themselves to files, and that is how a worm differs from a virus.
  • Have a goA program copies itself but does not attach itself to any file. Virus or worm?

    A worm.

    Copying itself does not make something a virus; a virus attaches itself to files by modifying other programs.

  • Viruses and worms still have one thing in common: both are self-replicating.
  • Malware often tricks users into downloading or installing it.
  • It can arrive on infected USB sticks, email attachments, unsafe downloads, fake apps, hacked-site links, pirated software or unsafe Wi-Fi.
  • Outdated software, or no antivirus protection, increases the risk of infection.
  • Have a goLaptop A has out-of-date software and no antivirus. Laptop B has neither problem. Which one is at greater risk?

    Laptop A.

    Outdated software and no antivirus protection increase the risk; that is a raised risk, not a certainty.

  • Once inside, malware can hide, spread and cause data loss, system failure or financial loss, on one device or a whole network.

The big picture

Malware is any program or file made to damage, steal from or take control of a computer system without permission. A virus is one type of malware: it copies itself by modifying other programs and inserting code, so it attaches itself to files. A worm also copies itself, but without attaching to files. Malware often tricks people into installing it, and once inside it can hide, spread and cause damage on one device or a whole network.

Key points

1Malware is the umbrella word; a virus is one type of malware.
2A virus copies itself by modifying other programs and inserting code, so it attaches itself to files.
3A worm replicates without attaching itself to files, but like a virus it is self-replicating.
4Malware often tricks users into installing it, and outdated software or no antivirus increases the risk.
5Malware can hide, spread and cause data loss, system failure or financial loss on one device or a whole network.

Worked example

Problem

Hana plugs in a USB memory stick someone gave her. Soon several programs on her laptop contain code she never added, and those programs keep passing it on. Decide what kind of malware this is and how it probably got in.

⚠ Watch out

Thinking that copying itself is what makes something a virus rather than a worm. Both are self-replicating. The difference is that a virus attaches itself to files by modifying other programs and inserting code, and a worm replicates without attaching itself to files.

🧠

Memory hook

A virus hitches a ride inside other programs; a worm travels on its own.

✓

Check yourself

Cover the page and fill the gaps: a virus is _____-replicating malware that attaches itself to files by _____ other programs and _____ code.

Flashcards

(12)
What is malware?
Any program or file created to damage, steal from, or take control of a computer system without the user's permission.
Name six types of malware.
Viruses, worms, trojans, ransomware, spyware and adware.
What is a virus?
A self-replicating type of malware that copies itself by modifying other programs and inserting code.
Why does a virus end up attached to files?
Because it replicates by modifying other programs and inserting its code into them.
How does a worm differ from a virus?
A worm replicates without attaching itself to files; a virus attaches itself to files.
What do viruses and worms have in common?
Both are self-replicating.
Is 'virus' another word for all malware?
No. A virus is only one type of malware, alongside worms, trojans, ransomware, spyware and adware.
What does malware often try to get users to do?
Download or install it.
Name three ways malware can enter a system.
Any three of: infected USB memory stick, infected files from unsafe websites, email attachments, fake apps, links on fake or hacked websites, pirated or fake software, unsafe Wi-Fi.
What two things increase the risk of infection?
Using outdated software and having no antivirus protection.
What can malware do once it is inside a system?
Hide, spread and start doing damage, such as data loss, system failure or financial loss.
How far can a malware infection reach?
A single digital device or a whole network.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 21 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.