GCSE · Computer Science · AQA · Spec 8525

Malicious code (malware)

Picture a laptop that looks perfectly normal: fast, quiet, no warnings. Now picture it quietly sending your passwords to a stranger. That’s malware at its sneakiest.

Sort it out

Who does what? Virus, Trojan or spyware

For each statement, tick every circle it fits. If it’s true of all three, it belongs in the middle. If it isn’t malware at all, tick nothing. Then check.

  • A Virus
  • B Trojan
  • C Spyware
  1. Software written to cause harm to a computer system or its users
  2. Can reach a system through an infected email attachment, a download or removable storage
  3. Inserts copies of itself into other programs or files
  4. Spreads when an infected file is run or opened and then passed on to other computers
  5. Disguised as legitimate, useful software
  6. Installed willingly by a user who thinks it is useful
  7. Secretly monitors what the user does, for example recording key presses
  8. Sends passwords or personal details to a third party without the user’s knowledge
  9. A trick that persuades a person to hand over their password, using no malicious code

Spot the threat

Which one is it?

Read each story, pick the threat it describes, and see the reason.

Still to sort

Virus (0)

Copies itself into other files.

Trojan (0)

Pretends to be useful.

Spyware (0)

Secretly watches and reports.

Social engineering (not malware) (0)

Targets a person, not a system, and uses no malicious code.

Where the line is: If a person is being persuaded and no program is attacking, it isn’t malware.

5 of 5 still to sort.

Why secret matters

?

Reason it through

Why is spyware so harmful when the user can’t see it doing anything?

Link 1 of 4

First link · your turn

How does spyware get onto a computer in the first place?

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

How it gets in

Three routes in. What decides the ending?

Pick a route in, then follow the choices to see where it ends up.

Route in → What the user does → Protection in place

9 possible endings.

On Malware is waiting at the door. 3 branches to choose from.

Gut check

Seems fine. Is it fine?

Your computer is running quickly, nothing odd has popped up, and everything seems perfectly normal.

Can it still have malware on it? Which of these is closest to what you think?
How sure are you?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

What they share, what makes each one different, and what isn’t malware at all.

What you need to know

  • Malware is software written to cause harm to a computer system or its users.
  • That harm can be damaging or deleting data, stealing information, or gaining unauthorised access to or control of a system.
  • Social engineering is a different cyber security threat. It targets people, while malware attacks through code.
  • Have a goSam says: ‘Someone from ‘tech support’ talked me into giving them my password, so I must have caught malware.’ Is Sam right?

    No. That was social engineering, not malware.

    A person was persuaded and no malicious code attacked anything, and malware only counts when it attacks through code.

  • A virus inserts copies of itself into other programs or files, and spreads when an infected file is run or opened and passed on.
  • A Trojan is disguised as legitimate, useful software. You install it willingly, it does harm in the background, and it does not replicate itself.
  • Have a goA free ‘homework timer’ that Mia chose to install really does time her homework. It also quietly harms her files, and it never copies itself. Virus or Trojan?

    Trojan.

    It was useful-looking software she installed willingly, and a virus would need to insert copies of itself into other files.

  • Spyware secretly monitors your activity, for example recording key presses, and sends details like passwords to a third party without your knowledge.
  • Malware typically arrives by infected email attachments, downloaded files or software, or infected removable storage.
  • Have a goA pupil plugs in a USB stick from a friend’s bag and opens a file on it. Which typical route in is that?

    Infected removable storage.

    A USB stick is removable storage, one of the typical routes, and opening the file is what lets the malware in.

  • Anti-malware software, automatic software updates and careful behaviour, such as not opening untrusted files or links, reduce the risk of infection.

The big picture

Malware is software written to cause harm to a computer system or its users. A virus copies itself into other files, a Trojan pretends to be useful software, and spyware secretly watches and reports. Social engineering is a different threat because it targets people, not systems, through code. Malware typically arrives through email attachments, downloads or removable storage, and anti-malware software, automatic updates and careful behaviour reduce the risk.

Key points

1Malware is software written to cause harm. Forms such as viruses, Trojans and spyware are all members of that family.
2Malware attacks through code, whereas social engineering attacks target people.
3Ask what the one defining behaviour is: copying itself (virus), pretending to be useful (Trojan), or secretly watching and reporting (spyware).
4A Trojan does not replicate itself, and spyware works without the user’s knowledge, so malware doesn’t always show itself.
5Typical routes in are email attachments, downloads and removable storage. Anti-malware software, updates and careful behaviour reduce the risk.

Worked example

Problem

Aisha downloads a free ‘homework planner’ from a site she has never used before. It works nicely as a planner. Without her noticing, it also starts damaging her files. Is this malware, and if so, which form? How could she have reduced the risk?

⚠ Watch out

Assuming every cyber attack is malware, and that malware always shows itself. Social engineering attacks people rather than systems, and spyware and Trojans are designed to work without the user noticing.

🧠

Memory hook

Virus = copies. Trojan = costume. Spyware = spy.

✓

Check yourself

Without looking back: what single thing do all three forms of malware have in common, and what is the one behaviour that defines each of virus, Trojan and spyware?

Flashcards

(11)
What is malware?
Software written to cause harm to a computer system or its users.
Name three kinds of harm malware can cause.
Damaging or deleting data, stealing information, and gaining unauthorised access to or control of a system.
How does malware attack, compared with social engineering?
Malware attacks through code. Social engineering targets people.
What is the defining behaviour of a virus?
It inserts copies of itself into other programs or files.
How does a virus spread?
When an infected file is run or opened and then passed on to other computers.
What is a Trojan?
Malware disguised as legitimate, useful software.
Who installs a Trojan, and does it copy itself?
The user installs it willingly. It then does harm in the background, but it does not replicate itself.
What is spyware?
Malware that secretly monitors a user’s activity, for example by recording key presses.
What does spyware do with what it records?
It sends information such as passwords or personal details to a third party without the user’s knowledge.
Give three typical ways malware reaches a system.
An infected email attachment, a downloaded file or software, and infected removable storage.
What three things reduce the risk of malware infection?
Anti-malware software, automatic software updates, and careful user behaviour such as not opening untrusted files or links.

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