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.)

Computer Science · Malware

Rebuild the virus's spread loop

2 stages are missing. Use the rest of the loop to work out which goes where.

  1. Stage 1: An infected file is opened or run

    The virus is hiding inside a host file. Someone opens the file or runs the program, usually with no idea what's inside.

  2. Stage 4: An infected copy is passed to another computer

    As a shared file, on removable storage or as an email attachment. When someone opens it there, the loop starts all over again.

…and stage 4 leads back to stage 1.

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

Virus, worm or Trojan?

Tick every property that's true of each type of malware. Then press check and see which cells you got wrong.

Virus
Worm
Trojan

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.

On A file arrives from an unknown source. 2 branches to choose from.

Walk each route and see where the infection starts, or where it gets stopped.

Watch out: Anti-malware only recognises viruses it knows about. It's not a free pass to open every file you're sent.

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

1A virus has to be inside a host file and needs a user action to spread. It doesn't spread by itself.
2The spread is a loop: opened, active, copies itself into other files, passed on, opened on the next computer.
3Active viruses can delete or corrupt data, slow the computer down and let other malware in.
4A worm spreads without a host file or a user action. A Trojan hides behind a useful-looking disguise instead of copying itself into files.
5Anti-malware, kept up to date, recognises known viruses. Not opening untrusted files stops the loop at its first link.

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?
Malicious code that copies itself into other programs or files (host files) and spreads when those infected files are opened and passed on.
What two things does a virus need before it can spread?
A host file, and a user action: someone has to open or run the infected file.
What happens the moment an infected file is opened or run?
The virus becomes active and copies itself into other programs or files.
Name three ways an infected copy can reach another computer.
As a shared file, on removable storage, or as an email attachment.
Name four things an active virus can do.
Copy itself into more files, delete or corrupt data, slow the computer down, and let other malware in.
How is a worm different from a virus?
A worm needs no host file and can spread without a user action. A virus needs both.
What makes a Trojan different from a virus?
A Trojan disguises itself as useful software to trick you into running it, and it doesn't copy itself into files.
Why must anti-malware software be kept up to date?
It recognises and removes known viruses. Out of date, it may not recognise a virus it doesn't know about.
Give two habits, besides anti-malware, that reduce the risk of a virus infection.
Don't open files from untrusted sources, and keep your software up to date.
An infected file is opened, but no copy ever leaves that computer. What happens to the spread?
It stays on that one computer. With nothing passed on, no other computer gets infected.

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 AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

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.