GCSE · Computer Science · AQA · Spec 8525
Computer virus
A file called 'holiday_photos' lands in your inbox and just sits there, harmless. What is the one thing it's waiting for?
Predict, then check
Someone has just run an infected program. The virus is now awake.
What can the virus do now?
Computer Science · Malware
Follow an unknown file
A file arrives from a source you don't know. Pick a branch at each fork to see where that route ends.
Do you open it? → Does up-to-date anti-malware recognise it?
3 routes the file can take.
Walk each route and see where the infection starts, or where it is stopped.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- A computer virus is malicious code that copies itself into other files, which then act as its host files.
- A virus can't move by itself. It needs a host file and a person to open or run that file.
Have a goYour mate swears a virus 'just jumps' off his laptop and onto yours, with no help from anybody. What is he missing?
A virus can't move by itself. It sits in a host file until a person opens or runs it.
Without that user action the virus stays stuck in its host file, so it can't move from one computer to another.
- Once the infected file is opened or run, the virus becomes active and copies itself into other programs or files.
- It spreads when an infected copy is passed on: as a shared file, on removable storage or as an email attachment.
Have a goAn infected file is emailed from computer A to computer B. Nobody on B ever opens the attachment. Does the virus start copying itself on B?
No. It stays inactive, because the file was never opened or run.
Receiving a copy isn't enough. The virus only becomes active when someone opens or runs the infected file.
- Break any link in that loop, so the file is never opened or never passed on, and the spread stops.
- An active virus can delete or corrupt data, slow the computer down and let other malware in.
- A worm is different: it needs no host file and can spread on its own across a network.
Have a goTrue or false: a worm needs a host file, and someone has to open it before it can spread.
False. A worm needs no host file and can spread without a user action.
That description fits a virus. The worm's difference is that it doesn't wait for a person to open anything.
- A Trojan disguises itself as useful software to trick you into running it, and it doesn't copy itself into files.
- Anti-malware software that is kept up to date can recognise known viruses and remove them.
- Keeping software up to date and not opening files from untrusted sources both help stop a virus before it starts.
The big picture
A computer virus can't travel on its own. It hides in a host file, wakes up when someone opens that file, copies itself into other files, and rides along whenever an infected copy is passed on. Break any link in that loop and the spread stops. Worms and Trojans work differently, and anti-malware plus careful habits protect you.
Key points
Worked example
Problem
The school IT team gets three reports of malware. Report A: after a pupil opened a file from a memory stick, other files on that computer started copying the same harmful code. Report B: a program that looked like a free photo editor was installed by a pupil, then damaged files, and it never copied itself into any other file. Report C: harmful code appeared on every computer on the school network overnight, and nobody had opened or run anything. Decide whether each report is a virus, a worm or a Trojan, and give the clue that tells you.
⚠ Watch out
Using 'virus' as a name for any malware. A virus copies itself into other files and needs a host file and a user action. A worm spreads without those, and a Trojan is defined by its disguise.
Memory hook
Virus: the victim opens it. Worm: nobody has to. Trojan: somebody gets tricked.
Check yourself
Draw the virus loop in four boxes. Which two points need a person, and what happens to the spread if either never happens?
Flashcards
(10)What is a computer virus?
What does a virus need before it can spread?
What happens the moment an infected file is opened or run?
Name three ways an infected copy can reach another computer.
Name four things an active virus can do.
How is a worm different from a virus?
What makes a Trojan different from a virus?
What does anti-malware software need to be able to recognise a virus?
Give two ways to reduce the risk of a virus infection.
True or false: a virus spreads across a network all by itself.
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 postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)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 9 October 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.