Live lesson · progress saved to your account

Cyber Threats & Attack Types

Malware families, phishing and social engineering, password attacks, DoS/DDoS and MITM, web attacks, supply chain and insider threats. Ends with triaging a hospital's week of incidents.

beginner75 minwalkthrough

Anyone can read this lesson. To submit answers and earn XP, create a free account.

TASK 01Mission briefing: a week at the hospital

INCIDENTS · PERIYAR-SOC-W48 Periyar Care Hospital (a fictional 300-bed hospital in Kochi) had a terrible week:

  • Monday: 37 staff received an email titled "Salary revision 2026". Four typed in their passwords.
  • Wednesday: the patient portal went down for three hours. Appointments and lab reports were unreachable.
  • Friday: a security guard found a USB stick labelled "Staff Salary 2026" in the car park and plugged it into the reception PC.

You've joined the hospital's two-person security team. Hospitals are a favourite target: patient data sells well, downtime is dangerous, and staff are busy and helpful, which attackers exploit.

Before you can defend against an attack you have to recognise it. This room builds the vocabulary every later room uses: what the attack is, who is likely behind it, and what to do first.

By the end you'll triage all three incidents.

Answer the questions

+10 XP

+10 XP

TASK 02Threats, vulnerabilities and threat actors

Three words people mix up:

TermMeaningHospital example
ThreatAnyone or anything that could cause harmA ransomware gang
VulnerabilityA weakness that can be exploitedAn unpatched Windows PC, a staff member who clicks links
RiskThe chance and impact of a threat exploiting a vulnerabilityPatient records encrypted, surgeries postponed

The threat actor is who is behind an attack. Knowing their motive tells you what they want and how hard they'll try:

Who attacks, and why Pick an actor

MotiveMoney: ransomware, stolen card data, extortion, selling access.

ExampleRansomware gangs that encrypt hospitals and demand payment in crypto.

Skill3/5

Resources3/5

threat (who/what could harm you) × vulnerability (the weakness) = risk

An attack vector is the route they use to get in: email, a website, a USB stick, an exposed service, a phone call. The sum of all your possible entry points is your attack surface.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 03Malware families

Malware (malicious software) is any program written to harm. The families are named by how they spread and what they do. Pick a family to watch its steps, then classify the samples from the hospital's quarantine folder:

Malware families 0/7 classified
STEP 1

Lands on one PC

STEP 2

Scans the network for the same hole

STEP 3

Copies itself, no click needed

Self-spreads across networks at machine speed. WannaCry (2017) used the SMB flaw EternalBlue.

Classify each sample from the hospital's quarantine

Arrived as 'FreeVPN_Pro.exe'. Works as a VPN, but also opens a backdoor.

Encrypted every shared drive and left a note demanding 2 BTC.

Jumped from PC to PC across the ward network over SMB, with no clicks.

Records keystrokes at the billing desk and uploads them hourly.

Hides its own files and processes from Task Manager by hooking the kernel.

Thousands of hacked CCTV cameras await commands from one server.

Inserts its code into other .exe files on a USB stick; runs when they are opened.

FamilySpreads byKey idea
VirusAttaching to a host file; a person runs itNeeds a host and a human
WormItself, across the networkNo click needed
TrojanDisguise: looks like useful softwareThe victim installs it
RansomwareAny of the aboveEncrypts files for a ransom
Spyware / keyloggerSilent installSteals what you type and see
RootkitAfter gaining admin/kernel rightsHides itself and other malware
BotnetInfecting many devicesRemote army controlled by a C2 (command-and-control) server

Case: WannaCry (May 2017)

WannaCry was ransomware with a worm built in. It used EternalBlue, an exploit for a flaw in Windows SMB (port 445), to spread from PC to PC without anyone clicking anything. In about a day it hit 200,000+ computers in 150 countries, including the UK's NHS, where ambulances were diverted. Microsoft had released the patch (MS17-010) two months earlier.

Release a worm on the ward network and see what patching does:

Worm spread · ward network 0/50 infected

Click PCs to patch them (green) before releasing the worm. A worm only needs one unpatched neighbour to keep going; this is how WannaCry hit 200,000+ computers in about a day.

One unpatched neighbour is enough for a worm to keep going. Patching (and network segmentation) is how you cut the chain.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 04Phishing and social engineering

Social engineering attacks the person instead of the computer. It exploits trust, fear, urgency, curiosity and helpfulness. Phishing is social engineering by message, and it's the most common way breaches start.

Follow Monday's phishing email from inbox to account takeover. Try it again with MFA turned on:

Phishing, step by step 1/5 · The email

From: HR Department <hr@periyarcare-in.com>

Salary revision 2026: confirm your bank details by 5 PM today

Dear staff, the revised salary will be credited only after you confirm your details. Unconfirmed accounts will be put on hold.

Phishing comes in many channels

NameChannel
PhishingEmail (mass)
Spear phishingEmail aimed at one person or team, using real details
WhalingSpear phishing aimed at executives
SmishingSMS / WhatsApp
VishingVoice call
QuishingQR code

Other techniques

  • Pretexting: an invented story ("I'm the auditor, Dr. Menon said…").
  • Baiting: leaving something tempting, like an infected USB stick.
  • Tailgating / piggybacking: following someone through a secure door.
Social engineering playbook Pick a technique

attackerHello, this is Rahul from IT. Your mailbox is being migrated tonight.

Red flags

Urgency or threats · a sender address or link domain that is almost right · requests for passwords, OTPs, payments, gift cards or bank-detail changes · unexpected attachments (especially .html, .zip, .exe, double extensions) · "keep this confidential".

Defence: hover before you click, verify requests through a known phone number, report suspicious messages, and use MFA, so a stolen password alone isn't enough.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 05Password attacks

Most systems still check a password, so attackers have many ways to get one. Switch between the four attacks and turn the defences on and off:

Password attacks vs defences Dictionary

Common passwords first, against one account.

  • dr.thomas
AttackHow it worksStopped by lockout?
Brute forceEvery possible combination against one accountYes
DictionaryA list of common passwords against one accountYes
Credential stuffingUsername:password pairs leaked from another site, one try eachNo: one try per account
Password sprayingOne common password (Welcome@123) against many accounts, slowlyNo: stays under the limit

MFA (multi-factor authentication) stops all four, because the attacker also needs something you have (a phone, a key) or are (a fingerprint).

Hashing

A good system never stores your password. It stores a hash: the output of a one-way function. At login it hashes what you typed and compares. If the database leaks, attackers can't reverse the hash, but they can hash millions of guesses per second and look for matches. That's why sites add a unique random salt to each password before hashing, and use deliberately slow hash functions like bcrypt or Argon2.

You'll crack some hashes yourself in the lab.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 06Network attacks: DoS, DDoS and MITM

Denial of service

A DoS (denial of service) attack makes a service unavailable to real users, attacking the A in the CIA triad. A DDoS (distributed DoS) does it from thousands of machines at once, usually a botnet.

DDoS on the patient portal DDoS (botnet)

bot 1

bot 2

bot 3

bot 4

bot 5

bot 6

bot 7

patient

internet

portal

portal health100%

Thousands of bots, each sending a little. No single IP to block; the portal's CPU and bandwidth run out.

Common floods:

  • SYN flood: sends thousands of TCP SYNs and never completes the handshake, so the server's table of half-open connections fills up (you saw the handshake in Room 04).
  • UDP / ICMP floods: raw volume to fill the bandwidth.
  • HTTP floods: requests that look real, aimed at expensive pages like search.

Defences: rate limiting, a CDN or scrubbing service that absorbs and filters traffic at the edge, SYN cookies, and an ISP that can block traffic upstream.

Man-in-the-middle

In a MITM attack the attacker sits between two parties, reading or changing traffic. Common ways in: ARP spoofing on a LAN (Room 04), and the evil twin, a fake Wi-Fi access point with the same name as the real one.

Man-in-the-middle on hospital Wi-Fi Evil twin

nurse laptop

PeriyarCare-Guest (real)

PeriyarCare-Guest (fake)

internet

The attacker's hotspot broadcasts the same name, 'PeriyarCare-Guest', with a stronger signal. The laptop joins it, and every packet passes through the attacker, who can read and change unencrypted traffic.

Sniffing is capturing traffic as it passes (Wireshark does this legitimately). Encryption (HTTPS, a VPN) is the defence: the attacker can still see the traffic, but can't read it.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 07Web attacks at a glance

Web apps take input from strangers and turn it into database queries, pages and file paths. When they trust that input, things break. Try the payloads, then switch on each defence:

Web attacks at a glance SQLI
SELECT * FROM staff WHERE user = 'anu' AND pass = '••••'

Wrong password. Normal behaviour.

AttackWhat goes wrongDefence
SQL injection (SQLi)Input becomes part of an SQL queryParameterised queries (prepared statements)
Cross-site scripting (XSS)Input becomes script in other users' browsersOutput encoding, Content Security Policy
Broken access control / IDORThe server doesn't check whether this user may see that objectCheck ownership on every request

' OR '1'='1' -- is the classic SQLi login bypass: the quote closes the string, OR '1'='1' is always true, and -- comments out the rest of the query, including the password check.

Broken access control is #1 on the OWASP Top 10 (the standard list of the most critical web risks). You'll exploit all of these properly in Room 15.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 08Supply chain and insider threats

Some of the most damaging attacks don't break in at all: they come through someone you already trust.

Trusted paths: supply chain and insiders Vendor compromised

vendor

signed update

billing PC 1

billing PC 2

billing PC 3

billing PC 4

Attackers break into the vendor's build server and slip a backdoor in before signing. The update is genuinely signed, so every customer installs it. (SolarWinds, 2020, hit ~18,000 organisations this way.)

Supply chain attacks

The attacker compromises a vendor, a software update, an open-source library or an IT service provider, and reaches all of its customers at once.

  • SolarWinds (2020): attackers backdoored the build of the Orion monitoring software. The update was genuinely signed, and about 18,000 organisations installed it.
  • A compromised vendor's email account is also a supply-chain risk: "our bank details have changed" invoices are a classic (business email compromise, BEC).

Insider threats

  • Malicious: a staff member who steals or sabotages, for money or revenge.
  • Negligent: someone who emails records to a personal address, or loses an unencrypted laptop. This is more common.

Defences: least privilege, logging and alerts on unusual access, data loss prevention (DLP), removing access the day someone leaves, and verifying vendor requests out of band.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

TASK 09Lab: phish or legit, and cracking hashes

Part 1 · Phish or legit?

The security mailbox has collected 10 reported emails. Read each one's headers before you decide:

  • From can be faked; compare it with Reply-To and Return-Path.
  • SPF, DKIM and DMARC check whether the sending server is allowed to send for that domain. A pass only proves the email came from that domain, not that the domain is honest.
  • Check where links really go and what attachments really are.
Lab · Phish or legit? (10 emails) 0/10 · 0 correct
From
HR Department <hr@periyarcare.in>
Reply-To
hr-payroll@periyarcare-in.com
Return-Path
bounce@periyarcare-in.com
Subject
Salary revision 2026: confirm by 5 PM
SPF=failDKIM=noneDMARC=fail

Confirm your bank details or your revised salary will be put on hold.

link ▸ https://periyarcare-in.com/hr/login

Part 2 · Password cracking concepts

An old staff portal leaked unsalted SHA-256 hashes. Run the wordlist, then switch on the rules and run it again. Then use the brute-force calculator.

Lab · Password cracking concepts 0/6 cracked

An old staff portal leaked these unsalted SHA-256 hashes. Hashes can't be reversed, but you can hash guesses and compare.

usersha256 (first 20)cracked
ravi.k0256cfb37194b4f21850……
sreeja.na941a4c4fd0c01cddef6……
dr.thomas0b14d501a594442a01c6……
admin.pharmadd7bb965dc25d6beab22……
nurse.anu972057cae5ca4b1cfe73……
ward4.deska941a4c4fd0c01cddef6……

Notice two users share the exact same hash. With a unique random salt per user (and a slow hash like bcrypt or Argon2), identical passwords give different hashes and every guess costs far more.

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP

TASK 10Final mission: triage the week

Triage the hospital's three incidents. For each, name the attack, the most likely actor, and the first containment step:

Mission · Triage the hospital's week 0/9 correct

Monday · 37 staff get 'Salary revision 2026' emails; 4 enter their passwords on periyarcare-in.com.

attack
actor
step

Wednesday · Patient portal down for 3 hours; traffic from 40,000 IPs. A group posts 'this is for the billing scandal' on Telegram.

attack
actor
step

Friday · A guard plugs a car-park USB labelled 'Staff Salary 2026' into the reception PC. A window flashes for 3 seconds.

attack
actor
step

What happened:

  • Monday: a credential-harvesting phish from the lookalike periyarcare-in.com. Block the domain, find everyone who clicked (mail and proxy logs), reset their passwords and sessions, and turn on MFA.
  • Wednesday: a hacktivist DDoS from a botnet, announced on Telegram. Switch on the CDN's scrubbing and rate limiting; the ISP can filter upstream.
  • Friday: baiting with a USB that acted as a keyboard (a "BadUSB") and typed commands in seconds. Isolate the reception PC from the network first, then investigate and reimage it. Never plug in unknown USBs; disable USB storage on shared PCs.

Complete the mission for the Threat Spotter badge and 510 XP. Level 1 complete!

Answer the questions

+10 XP

+10 XP

+10 XP

+10 XP

+10 XP