Phases of a Cyberattack Explained | AP Cybersecurity

AP Cybersecurity Topics › Phases of a Cyberattack
Unit 2 • Topic 2.1 • Cyber Foundations

The Phases of a Cyberattack (Recon to Evading Detection)

Adversaries usually work in phases. Topic 2.1 asks you to describe these phases, which run from gathering information to covering tracks. Not every attack uses every phase, but the sequence is the mental model.

6attack phases (EK 2.1.C)
Reconstarts with OSINT
Evadeends by hiding tracks
ReconInitial accessLateral movementTaking action
Four of the six phases; persistence and evading detection fill out the sequence.

The six phases

Reconnaissance: gather information, often using open-source intelligence (OSINT), freely available data. Initial access: establish a foothold, often through social engineering or weak credentials. Persistence: keep access without needing to re-enter, sometimes via a command-and-control channel or malware like a remote access trojan.

Lateral movement: escalate privileges and reach accounts and systems with more access. Taking action: collect and exfiltrate data, disrupt services, or destroy data. Evading detection: remove or edit logs and erase planted files to avoid being caught.

Scenario

An attacker scrapes an employee's public LinkedIn and company org chart before sending a tailored phishing email. Which phase is the scraping?

Reveal answer

Reconnaissance using OSINT. They are gathering freely available information about the target before attempting initial access.

Exam tip

The phases are a sequence, but not every attack uses all six. Match the described activity to the phase: gathering info = recon, getting in = initial access, staying in = persistence, spreading = lateral movement, acting = taking action, hiding = evading detection.

Why phases help defenders

Mapping an incident to phases helps responders understand how far an attacker got and what to do next. Catching an attack during reconnaissance or initial access is far cheaper than after data exfiltration.

Defenders place controls and detection at each phase, which connects directly to defense in depth later in this unit.

Scenario

During an investigation, logs show the attacker accessed an admin account they did not start with. Which phase does this indicate?

Reveal answer

Lateral movement, specifically privilege escalation. The attacker moved from their initial foothold to an account with greater access.

Real-world example

The kill chain in real intrusions

Major breaches follow this arc: weeks or months of quiet reconnaissance and lateral movement before the visible 'taking action' step. Catching an attacker during recon or initial access is far cheaper than after data is stolen.

Detection at every phase is the goal.

Key Terms

Reconnaissance Gathering information about a target, often via OSINT.
OSINT Open-source intelligence: freely available information.
Persistence Maintaining access without needing to re-enter.
Lateral movement Escalating privileges and reaching more systems.
Exfiltration Stealing data out of a target environment.

Match It Up

Tap a term, then tap its definition. Correct pairs lock in green.
Term
Definition
All matched. Nice work.

Common Mistakes

!

Assuming every attack uses all six phases

The framework notes phases may not all be used in every attack.

!

Confusing persistence with initial access

Initial access is getting in; persistence is staying in without re-entering.

!

Mixing up lateral movement and taking action

Lateral movement spreads access; taking action is acting on the objective.

!

Forgetting evading detection

Many attackers erase logs at the end; missing logs can itself be a signal.

Check for Understanding

Predict your answer before you tap. Click a choice to check it and read why.
Question 1
An attacker gathers freely available information about a target before attacking. This phase is:
B. Gathering information, often via OSINT, is the reconnaissance phase.
Question 2 Predict first
Establishing ongoing access so the attacker does not have to break in again is:
B. Maintaining access without re-entering is persistence, often via command-and-control or malware.
Question 3
Which activities belong to the taking-action phase? I. Exfiltrating data. II. Destroying data. III. Scanning public profiles.
A. Exfiltration and destruction are taking action. Scanning public profiles is reconnaissance, so III does not belong.
Question 4
An attacker erases log files at the end of an intrusion. This is:
C. Removing or editing logs to avoid being caught is evading detection.
Question 5 Predict first
Moving from a low-privilege foothold to an admin account is part of which phase?
A. Escalating privileges and reaching more-privileged accounts is lateral movement.
Question 6
Why is the phase model useful to defenders?
D. Mapping an incident to phases reveals attacker progress and where detection and controls should sit.

Frequently Asked Questions

Reconnaissance, initial access, persistence, lateral movement, taking action, and evading detection. Not every attack uses all six.
The first phase, where adversaries gather information about a target, often using open-source intelligence (OSINT), which is freely available data.
Lateral movement is when an attacker escalates privileges and reaches additional accounts and systems with greater access after gaining an initial foothold.

Get in Touch

Whether you're a student, parent, or teacher — I'd love to hear from you.

Just want free AP CS resources?

Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.

Typically responds within 24 hours

Message Sent!

Thanks for reaching out. I'll get back to you within 24 hours.

🏫 Welcome, fellow educator!

I offer curriculum resources, practice materials, and study guides designed for AP CS teachers. Let me know what you're looking for — whether it's classroom materials, a guest speaker, or Teachers Pay Teachers resources.

Email

[email protected]

📚

Courses

AP CSA, CSP, & Cybersecurity

Response Time

Within 24 hours

Prefer email? Reach me directly at [email protected]