Skip to main content

Computer Science · Security Unit · Session 2 of 8

Most attacks don't break the system. They talk someone into opening the door.

A fictional message lands in a student inbox: the school storage closes in 30 minutes, sign in now, don't bother contacting IT. Nothing here needs a single line of code — it needs 30 seconds of urgency. This session pulls apart what malware actually is, and traces exactly how a message like that turns into a stolen password.

A red padlock resting on a computer keyboard.
Malware and phishing both aim at the same lock — one picks it with code, the other just asks you for the key. Photo: FlyD / Unsplash

Executive summary

Goal: explain how an attack works, rather than simply naming it.

TaskMinutes
Recall the CIA triad5
Read notes and worked example15
Core video and question10
Investigate the fictional message20
Self-check and exit question10

1. Malware is an umbrella term​

Malware means malicious software. Different labels describe how it spreads, how it disguises itself, or what harm it actually causes.

TypeDefining featurePossible effect
VirusAttaches to a host file or program; runs and spreads when infected material is executedChanges or damages files
WormReplicates and spreads between systems without attaching to a host fileDisrupts services or delivers another malicious payload
TrojanPretends to be legitimate softwareInstalls hidden remote access or steals data
RansomwareExtorts a victim, commonly by encrypting files or blocking accessMakes records unavailable; may accompany data theft
SpywareSecretly collects informationReveals browsing activity or credentials

These categories overlap constantly. A fake "useful" program can be a Trojan that installs spyware. Not every piece of malware is a virus, and not every infection needs someone to open an attachment.

2. Social engineering targets decisions, not code​

Social engineering manipulates a person into an unsafe action. Phishing commonly uses deceptive emails or messages to obtain information, deliver malware, or persuade someone to transfer money. A version aimed at one specific, researched target is often called spear phishing.

Attackers lean on urgency, fear, curiosity or authority — not technical skill. A message can carry a real name, flawless grammar and copied branding, and still be fake. Those features prove nothing. Equally, an unusual message is a reason to verify, not proof that an attack has already happened.

Reading the diagram: this is one possible route, not a guaranteed outcome. Account permissions and authentication controls decide what the attacker can actually do once they have a password.

3. What separates a weak answer from a strong one​

4. Responding to a suspicious message​

Never use the message's own contact details to check whether it's genuine — that's asking the attacker to vouch for themselves. Instead, open a previously known school portal independently, or contact the school through a channel you already trust. Report suspicious messages through school procedures. If information has already been entered somewhere, tell school IT immediately so the account can be secured and investigated.

Watch​

Activity — A fictional school message​

Reveal model answers and check your work

The urgent deadline, the unfamiliar destination, and the instruction not to verify are all warning signs. Safe verification can prevent credential submission; MFA may prevent a later login; least privilege limits which records are exposed even if an account is compromised.

The fake game is both a Trojan (it pretends to be legitimate) and spyware (it secretly collects information). The attached malicious code is a virus if it infects host material and replicates through it. Independent replication between systems, with no host file, describes a worm.

Ransomware commonly harms availability by blocking access. If records are also copied and leaked, confidentiality is harmed too — describe that as a separate action, rather than assuming encryption itself leaks information.

Key terms

  • malware
  • virus
  • worm
  • Trojan
  • ransomware
  • spyware
  • social engineering
  • phishing
  • spear phishing
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8