GCSE · Computer Science · Edexcel · Spec 1CP2

Malware – key loggers

Picture typing your password while something silently writes down every key you press. That's a keylogger. Let's follow one infection, from getting in to doing damage.

Computer Science · Malware

Two halves of every malware story

Does this event show how malware gets in, or what malware can do once it is in?

Still to sort

How malware gets in (0)

A route onto the device

Where the line is: Ask yourself: is this how the software arrives on the device?

What it can do once it's in (0)

Something that happens after the device is infected

Where the line is: Ask yourself: is this something the software does after it has arrived?

9 of 9 still to sort.

Some of these are ways malware gets IN. Others are things it can do once it's IN. Sort first, then read why.

Predict, then check

Ben has no idea his laptop is infected. Commit to a prediction before you look.

Ben's laptop has spyware that includes a keylogger. He types his email password into a normal login box. What does the keylogger capture?

Computer Science · Malware

Which of these would you have said?

Four students are revising malware. Each one says what they think.

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

Computer Science · Have a go

Write it, then check it

Describe how a keylogger could put a user's data at risk, and give two ways malware can infect a device. [4 marks]

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

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

What you need to know

  • Malware is short for malicious software: any software designed to cause harm, steal information, secretly control or disrupt a system.
  • It can reach a device through malicious downloads, email attachments, fake or hacked websites, or unsafe networks.
  • Those routes are examples, not a full list: pirated software, outdated software and unsafe Wi-Fi are others.
  • Malware often tricks users into downloading or installing it.
  • Have a goYour friend Dev says: 'I only ever grab software from random sites with FREE!!! in giant letters.' Which way in has Dev volunteered for, and what do malware makers hope he'll do?

    A malicious download. They hope he'll download and install it.

    Malware often tricks users into downloading or installing it, so a tempting 'free' offer is the lure. 'Often' matters: it is a common trick, not the only way in.

  • Once a device is infected, malware could disable hardware, steal data, send spam email, or ask for a ransom to unlock files.
  • That can mean serious damage: data loss, system failure or financial loss.
  • Have a goAn infected laptop suddenly emails hundreds of strangers from the owner's account. Is that a way malware got in, or something it can do once in?

    Something it can do once in: sending spam email.

    Email can be a route in (an attachment) or the output of an infected device (spam). Ask whether the software is arriving or already at work.

  • Spyware is unwanted software that monitors and gathers information on a person and how they use their computer.
  • Spyware can include a keylogger, which records every keystroke the user makes, including a typed password.
  • Have a goYou type the nine-character password sunshine7 into a login box on a device with a keylogger. How many of those nine characters does it record?

    All nine.

    A keylogger records every keystroke, so it doesn't skip the characters that look 'important'.

  • Not all spyware includes a keylogger, so write 'can include', never 'always includes'.
  • Malware is a wide label, so it doesn't just mean viruses.

The big picture

Malware is any software designed to cause harm, steal information, secretly control or disrupt a system. It can get onto a device in several ways, and once it's there it could do serious damage. Spyware monitors a user, and spyware can include a keylogger that records every keystroke.

Key points

1Malware = software designed to cause harm, steal information, secretly control or disrupt a computer system, network or device.
2Ways in include malicious downloads, email attachments, fake or hacked websites and unsafe networks; these are examples, not a closed list.
3Once infected, malware could disable hardware, steal data, send spam email or ask for a ransom to unlock files.
4Spyware monitors and gathers information on a user; spyware can include a keylogger that records every keystroke.

Worked example

Problem

Follow one imagined infection from start to finish. Kai opens an email attachment that turns out to carry spyware with a keylogger. Later he types his email password. Say what is happening at each stage.

⚠ Watch out

Writing 'spyware always includes a keylogger' or 'malware means viruses'. Safer: spyware can include a keylogger, and malware is any software designed to cause harm.

🧠

Memory hook

Malware = anything built to harm. Spyware = the one that watches you. A keylogger = the spy's notepad, writing down every key. (Not every spy carries one.)

✓

Check yourself

Imagine you have just typed a password on an infected device. In two sentences, say how the malware could have got in and what has just been recorded.

Flashcards

(10)
What is malware?
Short for malicious software: any software designed to cause harm, steal information, exploit or secretly control, or disrupt a computer system, network or device.
Give two ways malware can infect a device.
Any two of: malicious downloads, email attachments, fake or hacked websites, unsafe networks. These are examples; pirated software, outdated software and unsafe Wi-Fi are others.
How do types of malware often get onto a device?
They often trick users into downloading or installing them.
Name four things malware could do once a device is infected.
Disable hardware, steal data, send email spam, or ask for a ransom to unlock files or systems.
What serious damage can malware cause?
Data loss, system failure or financial loss.
What is spyware?
Unwanted software that monitors and gathers information on a person and how they use their computer.
What is a keylogger?
Something spyware can include, which records every keystroke a user makes.
True or false: all spyware includes a keylogger.
False. Spyware can include a keylogger, but not all spyware does.
Why is a keylogger a danger to passwords?
It records every keystroke, so a password you type is captured along with everything else you type.
Is malware just another word for viruses?
No. Malware is any software designed to cause harm, steal information, secretly control or disrupt a system, whatever it is called.

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