GCSE · Computer Science · AQA · Spec 8525
Computer virus
A file called 'holiday_photos' lands in your inbox. It just sits there, doing nothing at all. So what is it waiting for? (Hint: it's waiting for you.)
Predict, then check
Someone has just run an infected program. The virus is now awake.
So what can the virus do now?
Computer Science · Malware
Follow an unknown file
A file turns up from a source you don't know. Pick a branch at each fork and 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 gets stopped.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- A computer virus is malware: code that attaches itself to, or copies itself into, other programs or files.
- A virus can't move by itself. It needs a host file and a person to open or run it.
Have a goYour mate swears a virus 'just jumps' off his laptop and onto yours, with no help from anybody. What's 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 make the jump from one computer to another.
- Open or run the infected file and the virus becomes active, copying itself into more programs or files.
- It reaches new computers when an infected copy is passed on: a shared file, removable storage or 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.
Arriving isn't the same as running. The virus only becomes active when someone opens or runs the infected file.
- Stop the file being opened, or stop it being passed on, and the loop breaks. No spread.
- 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, with no user action.
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 get run. It doesn't copy itself into other files.
- Anti-malware scans files and removes known viruses, so it has to be kept up to date.
Have a goPriya's anti-malware hasn't updated in a year. She says, 'Relax, it'll catch anything.' Should she relax?
No. Out of date, it may not recognise a virus it doesn't know about.
Anti-malware removes viruses it recognises as known, so an old version can miss newer ones. Installed isn't the same as protected.
- Keeping your other software up to date and not opening files from untrusted sources protect you too.
The big picture
A computer virus can't travel on its own. It hides in a host file, wakes up when someone opens or runs that file, copies itself into other files, and hitches a ride whenever an infected copy is passed on. Break any link in that loop and the spread stops. Worms and Trojans work differently, and up-to-date anti-malware plus careful habits keep you safe.
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. It's an easy slip, because people say 'virus' for everything. But 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 two things 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?
Why must anti-malware software be kept up to date?
Give two habits, besides anti-malware, that reduce the risk of a virus infection.
An infected file is opened, but no copy ever leaves that computer. What happens to the spread?
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 29 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.