The Cyber Attack Lifecycle
How real intrusions unfold: the Cyber Kill Chain and MITRE ATT&CK, mapped to the detection and disruption opportunities defenders have at each stage.
1. Executive Summary & Objective
Attacks are not a single event — they’re a lifecycle of stages. Understanding that sequence lets defenders place detections and disruptions at multiple points, so one good control can break the whole chain.
Objective: Walk the Cyber Kill Chain, map defensive opportunities to each stage, and understand how MITRE ATT&CK turns those stages into concrete, detectable techniques.
2. Core Concept & Theory (The “Why”)
| Stage | Attacker does | Defender opportunity |
|---|---|---|
| Recon | OSINT, scanning | attack-surface reduction, decoys |
| Weaponize | build payload | threat intel on tooling |
| Deliver | phishing, drive-by | email filtering, web proxy |
| Exploit | run the payload | patching, EDR exploit prevention |
| Install | persistence | EDR, integrity monitoring |
| C2 | remote control channel | egress filtering, beacon detection |
| Actions | exfiltrate / ransom / lateral move | DLP, segmentation, anomaly detection |
3. MITRE ATT&CK: from stages to techniques
The kill chain is high-level. MITRE ATT&CK is a detailed, community-maintained matrix of real-world Tactics (the why, e.g. Persistence, Lateral Movement) and Techniques (the how, e.g. T1059 Command and Scripting Interpreter, T1021 Remote Services). Blue teams use it to:
- map their detection coverage (“which techniques can we actually see?”),
- drive threat hunting,
- describe adversaries in a shared vocabulary.
4. Applying It
For an alert, ask: which stage/technique is this, and what comes next? A single “unusual PowerShell” alert (Execution) gains urgency when you realize the next stages are persistence and lateral movement — so you contain the host now.
Your proxy logs show a workstation beaconing to an unknown domain every 60 seconds. Which kill-chain stage is this, and why act fast?
This is Command & Control (C2) — regular beaconing to an external host is a classic C2 pattern. Act fast because C2 means the host is already compromised and under attacker control; blocking the domain and isolating the host severs control before ‘Actions on Objectives’ (exfil/ransomware/lateral movement).
5. Walkthrough: A Phishing Email That Ends in Ransomware
Mapping a realistic attack to the kill chain and to ATT&CK shows where it can be detected and stopped:
| Stage | What the attacker does | ATT&CK example | Where defenders can act |
|---|---|---|---|
| Reconnaissance | Finds staff names and email formats on LinkedIn and the website | Gather victim identity information | Limit public detail; monitor for lookalike domains |
| Weaponisation / resource development | Registers a lookalike domain, builds a macro document | Acquire infrastructure; develop capabilities | Brand monitoring, email authentication (SPF/DKIM/DMARC) |
| Delivery / initial access | Emails a fake invoice with a malicious attachment | Phishing: spearphishing attachment (T1566.001) | Mail filtering and sandboxing, user training, a report button |
| Exploitation / execution | The user enables macros; PowerShell runs | Command and scripting interpreter (T1059) | Block macros from the internet, EDR, script logging |
| Persistence | Creates a scheduled task and a new service | Scheduled task/job (T1053), boot or logon autostart (T1547) | Alert on new tasks and services, application control |
| Privilege escalation and credential access | Dumps passwords from memory; uses a cached admin credential | OS credential dumping (T1003), valid accounts (T1078) | Credential Guard, no local admin rights, LAPS, EDR |
| Discovery and lateral movement | Scans the network; moves to the file and domain servers | Remote services (T1021) | Segmentation, east-west monitoring, MFA for admin protocols |
| Defence evasion | Disables antivirus, clears logs | Indicator removal (T1070), impair defences | Tamper protection, log forwarding, alert on log clearing |
| Command and control | Beacons to an external server over HTTPS | Application layer protocol (T1071) | DNS and proxy logs, egress filtering, NDR |
| Exfiltration | Uploads stolen data to cloud storage | Exfiltration over web service (T1567) | DLP, egress monitoring, unusual volume alerts |
| Actions on objectives / impact | Deletes backups and encrypts servers | Inhibit system recovery (T1490), data encrypted for impact (T1486) | Immutable backups, rapid isolation, tested recovery plan |
The lesson: the attacker must succeed at many stages, and a defender only needs to break one link or detect one step to stop the rest. That is why layered defence and good logging matter. Note also how long the stages take: real intrusions often spend days or weeks between initial access and encryption, which gives a window for detection.
6. Other Frameworks Worth Knowing
- Lockheed Martin Cyber Kill Chain: seven linear stages (reconnaissance to actions on objectives). Simple and useful for explanation, but it assumes a perimeter and a linear path.
- MITRE ATT&CK: a knowledge base of real adversary tactics (the goal, such as persistence) and techniques (the method, such as scheduled tasks), organised in matrices for Enterprise, Mobile and ICS. Used to map detections, run red-team plans, compare threat groups and measure coverage.
- Unified Kill Chain: extends the stages to cover attacks that move through networks after the initial foothold.
- Diamond Model of Intrusion Analysis: describes each event by adversary, capability, infrastructure and victim, helping analysts pivot between related incidents.
- Pyramid of Pain: ranks indicators by how hard they are for an attacker to change: hash values (trivial) to IP addresses, domains, network and host artefacts, tools, and finally tactics, techniques and procedures (TTPs) (hardest). Detect TTPs, not just indicators.
7. Using the Lifecycle for Defence
- Map your controls to the stages. For each stage, ask “what stops it, what detects it?”. Gaps (for example nothing detecting command and control) tell you where to invest.
- Prioritise earlier stages when cheap, later stages when critical. Stopping phishing is excellent, but assume some will get through and make sure you can detect lateral movement and exfiltration.
- Build detections on behaviour (ATT&CK techniques), and test them (purple teaming: red and blue teams working together).
- Use threat intelligence about the groups likely to target your sector, and their usual techniques, to focus effort.
- Measure time: how long between initial access and detection? That “dwell time” is the number to shrink.
- Rehearse: run tabletop exercises that walk through a lifecycle and ask at each stage “would we notice, and who does what?”.
8. Key Takeaways
- Attacks are a lifecycle; defenders get a detection/disruption chance at each stage.
- C2 and lateral movement are high-value internal detection points.
- MITRE ATT&CK turns stages into concrete TTPs to measure coverage and hunt.
- Break one link and you can stop the whole intrusion.
Hands-on practice
Write the functions marked TODO. The checks read the variables your program leaves behind, so keep the lines at the bottom as they are, run it, then press Check my work.
🧪 Want to practise this on your own computer? See how to set up your lab →