A Map of the Attack Categories
News reports call almost every incident "a hack". To defend against attacks you need finer names: a password-spraying campaign, a phishing email and a ransomware outbreak need different detections and different fixes, and one real incident often contains all three. This lesson is the map for the next ten lessons: eleven categories of attack, where in an intrusion each one usually acts, the warning signs it leaves, and the defence that stops it. Each category then gets its own lesson that goes from mechanism to detection to fix.
Intuition: stages of an intrusion
Most intrusions follow the same arc. The attacker first has to reach the target, then get in, then obtain credentials or a session to act as someone legitimate, then escalate to more power, and finally cause the impact they came for. Categories of attack are tools for one or more of these stages. The defender's advantage is that every stage leaves traces, so there are five chances to notice, not one.
The stages simplify two frameworks you will meet throughout the track. The Cyber Kill Chain (Lockheed Martin) has seven steps: reconnaissance, weaponisation, delivery, exploitation, installation, command and control, actions on objectives. MITRE ATT&CK for Enterprise is a large, public knowledge base of real attacker behaviour organised into tactics (the attacker's goal at a step: Reconnaissance, Resource Development, Initial Access, Execution, Persistence, Privilege Escalation, Stealth, Defense Impairment, Credential Access, Discovery, Lateral Movement, Collection, Command and Control, Exfiltration, Impact; 15 since version 19 of April 2026 split the older Defense Evasion tactic into Stealth and Defense Impairment, so older material counts 14), each with many techniques with IDs such as T1110 (Brute Force) or T1566 (Phishing). Real attacks don't follow the order strictly; ATT&CK is a matrix, not a line. The on-ramp has a simplified attack lifecycle, and sec-blue-team uses ATT&CK for detection coverage.
The eleven categories
| Category | Mechanism in one line | Mainly hits | Warning signs | Main defences | Lesson |
|---|---|---|---|---|---|
| Brute force, password spraying | guess many passwords for one account, or one common password for many accounts | C | bursts of failed logins; many accounts failing from one source | MFA, rate limits, banned-password lists | lesson |
| Phishing, social engineering | trick a person into giving credentials, money or access | C, I | lookalike domains, urgency, failed SPF/DKIM/DMARC | phishing-resistant MFA, mail authentication, reporting culture | lesson |
| DoS, DDoS | exhaust bandwidth, connections or CPU so real users can't be served | A | traffic spikes from many sources, rising latency | rate limiting, capacity, upstream filtering, CDNs | lesson |
| Man-in-the-middle | sit between two parties to read or change traffic | C, I | certificate warnings, unexpected gateways or proxies | TLS everywhere with validation, HSTS, VPNs | lesson |
| Replay | resend a captured valid message or token | I | duplicate nonces or message IDs, old timestamps | nonces, timestamps, short-lived signed tokens | lesson |
| Session hijacking | steal or fix a session identifier and act as the user | C, I | one session from two places, impossible travel | secure cookie flags, rotation on login, short sessions | lesson |
| Credential theft | collect passwords, hashes or tokens from memory, files, keyloggers or breaches | C | logins from new devices, use of dormant accounts, leaked credentials | MFA, password managers, no secrets in files, credential monitoring | lesson |
| DNS and ARP spoofing | answer name or address lookups with the attacker's address | C, I | gateway MAC changes, DNS answers that differ from the authoritative ones | DNSSEC, DoH/DoT to a trusted resolver, dynamic ARP inspection, TLS | lesson |
| Malware, ransomware | run hostile code that steals, spies or encrypts | C, I, A | new processes and services, mass file renames, beacons to rare hosts | patching, allow-listing, EDR, offline backups | lesson |
| Supply chain | compromise a supplier, library or update so the victim installs the attack itself | C, I, A | dependency or hash changes, unsigned updates, new maintainers | pinning, signatures, SBOMs, vendor review | lesson |
| Privilege escalation | turn a foothold into admin or root through a bug or misconfiguration | C, I, A | new admin group members, unexpected SUID files or services, sudo misuse | least privilege, patching, hardening, monitoring privileged changes | lesson |
C, I and A are the CIA properties from CIA, AAA and Access Control. Several categories hit all three, which is why "which property?" is a starting question, not a classification scheme.
From warning signs to categories
A security analyst works this map backwards: from what was observed to what is probably happening. The program matches synthetic observations from one morning in the lab domain against a table of warning signs, then counts the ATT&CK tactics involved:
# Warning signs -> attack category -> ATT&CK tactic. Observations are synthetic, from the lab domain.
SIGNS = [ # (pattern in the observation, category, tactic)
("failed logins for one account", "brute force", "Credential Access"),
("one failed login for many accounts", "password spraying", "Credential Access"),
("lookalike sender domain", "phishing", "Initial Access"),
("requests per second x50", "DoS/DDoS", "Impact"),
("gateway MAC changed", "ARP spoofing", "Credential Access"),
("same session id from two countries", "session hijacking", "Credential Access"),
("many files renamed to .locked", "ransomware", "Impact"),
("package hash differs from lockfile", "supply chain", "Initial Access"),
("new member of the admins group", "privilege escalation", "Privilege Escalation"),
]
observations = [
"09:02 web01: 40 failed logins for one account (alice) in 2 min",
"09:05 mail: lookalike sender domain lab-test.example asks for a password reset",
"09:10 vpn: one failed login for many accounts (57) from 192.0.2.44",
"09:40 ws07: gateway MAC changed from 02:00:00:0a:0a:01 to 02:00:00:0a:0a:66",
"10:15 dc01: new member of the admins group: bob",
"10:16 fs01: many files renamed to .locked by user bob",
]
by_tactic = {}
for obs in observations:
for pattern, category, tactic in SIGNS:
if pattern in obs:
print(f"{obs[:5]} {category:<21} {tactic:<21} {obs[6:].split(':')[0]}")
by_tactic.setdefault(tactic, []).append(category)
print({tactic: len(cats) for tactic, cats in by_tactic.items()})09:02 brute force Credential Access web01
09:05 phishing Initial Access mail
09:10 password spraying Credential Access vpn
09:40 ARP spoofing Credential Access ws07
10:15 privilege escalation Privilege Escalation dc01
10:16 ransomware Impact fs01
{'Credential Access': 3, 'Initial Access': 1, 'Privilege Escalation': 1, 'Impact': 1}
Read by time, the lines tell one story: guessing and phishing at 09:02 to 09:05, spraying the VPN at 09:10, a machine on the internal network having its gateway spoofed at 09:40, the account bob added to the admins group at 10:15 and files on the file server renamed one minute later, by the same bob. Separate alerts on separate systems were stages of one intrusion. Linking them is what a SOC does (sec-blue-team); the lesson here is that each category on its own is detectable, and the earliest detection (09:02) was the cheapest point to stop it.
A real matcher is not a substring search: signs are counted over time windows, thresholds are tuned to avoid false alarms, and sources are correlated by user and host. The category lessons build those detections one at a time, on synthetic logs.
How to use the map as a defender
- Coverage check: for each row, do you have at least one preventive and one detective control? An empty cell in your own copy of this table is a gap (Security Auditing and Controls).
- Risk register rows: each category, applied to one of your assets, becomes a scenario you can score (Risk Assessment).
- Defence in depth across stages: MFA (stage 2 and 3) plus least privilege (stage 4) plus offline backups (stage 5) means an attacker must beat three different controls.
Pitfalls
- Treating categories as exclusive. A phishing email that installs malware that steals credentials is three rows at once.
- Defending only the last stage. Ransomware is the impact; the incident started with a phish or a guessed password weeks before.
- Learning attacks without their detection. Each lesson that follows ends with how you would notice the attack and how to stop it. That is the half employers pay for.
- Practising outside your lab. Every technique on this map is a crime against systems you are not authorised to test (Law and Ethics).
Practice
- An attacker registers
lab-test.example, emails staff a "password expired" link, then logs into webmail with the collected passwords. Which categories and which stages? - Which single control in the table appears as a defence for the most categories?
- Add a warning sign to the program for a replay attack and write an observation that triggers it.
Answers
- Phishing and social engineering (stage 2, get in), credential theft (stage 3: the passwords are the stolen credentials), and the login itself uses valid accounts. MFA, especially phishing-resistant MFA, breaks the chain at the login.
- MFA (brute force, spraying, phishing, credential theft, and it limits session and MITM damage), followed by TLS with proper validation.
- For example
("duplicate nonce", "replay", "Credential Access")and the observation"11:00 api: duplicate nonce 7f3a in two payment requests". The line then prints11:00 replay Credential Access api. (ATT&CK has no single "replay" tactic; replays of tokens and tickets fall under techniques such as T1550, Use Alternate Authentication Material, which ATT&CK lists under Lateral Movement among other tactics. Pick the tactic that matches the goal.)
Test yourself
Many accounts each fail one login from the same address within minutes. Which category does that suggest?
- Brute force on one account
- Password spraying
- DDoS
- Session hijacking
In MITRE ATT&CK, what is a tactic?
- A specific piece of malware
- The attacker's goal at a step, such as Credential Access or Impact
- A CVE number
- A firewall rule
Which category mainly attacks availability?
- Replay
- DoS and DDoS
- Credential theft
- Session hijacking
Why is detecting the 09:02 brute-force burst more valuable than detecting the 10:16 mass renames?
- It is easier to read
- It is earlier in the intrusion: stopping it there prevents the later, costlier stages
- Ransomware cannot be detected
- Brute force is more dangerous than ransomware