Educatifu
Open menu

Thinking like an attacker

Real attacks aren't a single magic exploit — they're a campaign with stages. Learn the attack lifecycle and you learn where defenders get to intervene.

AdvancedCyber Security~14 min

Before this lesson

  • Lesson: Web vulnerabilities — how attackers get in

Beginners picture hacking as a single dramatic moment — a genius types furiously and "I'm in!" Reality is slower and more methodical. A serious breach is a campaign that unfolds over days, weeks or months, in stages. Understanding those stages is what turns you from someone who reacts to individual bugs into someone who can defend a whole system — because each stage is a chance to catch the attacker.

The attack lifecycle

Most intrusions move through roughly these phases (see the diagram):

  1. Reconnaissance — the attacker studies the target: employees, exposed servers, technologies, leaked credentials. Much of this uses public information and triggers no alarms.
  2. Initial access — they get a first foothold, often not through a clever exploit but through a phished password, an unpatched service, or a leaked key.
  3. Privilege escalation — a normal-user foothold isn't enough, so they exploit a flaw or misconfiguration to gain administrator rights.
  4. Lateral movement — from one machine they pivot across the network, hunting for valuable systems, quietly expanding their access.
  5. Actions on objectives (exfiltration) — finally they do what they came for: steal data, encrypt everything for ransom, or sabotage.

Why stages matter: defence in depth

The single most important insight here is defensive. Because an attack is a chain, a defender only has to break one link. If reconnaissance is noticed, or initial access is blocked, or privilege escalation fails, or lateral movement is contained, the campaign stalls before real damage. This is why defence in depth — many independent layers — beats one strong wall: any single layer might fail, but all of them failing in sequence is far less likely. And the earlier you catch it, the cheaper it is.

Mapping the enemy: MITRE ATT&CK

Defenders don't have to imagine attacker behaviour — it has been catalogued. MITRE ATT&CK is a public, constantly updated knowledge base of the real tactics and techniques attackers use, organised by lifecycle stage. Security teams map their defences and detections against ATT&CK to find blind spots ("we have nothing that would catch lateral movement via technique X") and close them systematically. It turns "think like an attacker" from a slogan into a checklist.

With the shape of an attack clear, the next lessons go deeper on the terrain it crosses — the network — and then on what happens when, inevitably, something gets through.

Five attack stages — recon, access, escalate, move, exfiltrate — with a defender band detecting and responding at every stage.
The attack lifecycle — and the defender's chance to intervene at every step.

Key takeaways

  • A serious attack moves through stages — reconnaissance, initial access, privilege escalation, lateral movement, exfiltration — not one instant break-in.
  • Each stage is a chance for defenders to detect and stop it; the earlier the better. This is why layered defence works.
  • Frameworks like MITRE ATT&CK catalogue real attacker techniques so defenders can map and close gaps systematically.

Sources

  1. [1]MITRE ATT&CKattack.mitre.org
  2. [2]Kill chain (cyber) — Wikipediaen.wikipedia.org
  3. [3]Threat model — Wikipediaen.wikipedia.org

← All Cyber Security lessons

Bring us the problem, not a perfect specification

Tell us what needs to change, who it affects and any important deadline. We will review the context and reply with useful next questions.

  1. 01Share contextDescribe the workflow, constraint or risk.
  2. 02Clarify togetherWe identify missing facts and useful options.
  3. 03Choose a startAgree a focused assessment or delivery step.
Start a conversation