Cyberlium

Ethical › Module 1 › Lesson 2

BeginnerModule 1Lesson 2/5

Five Phases as a Defender Map

Recon, scan, gain access, maintain, cover tracks — as a map defenders and authorized testers share.

15 min+40 XP4 quiz
Module progress2 of 5

Visual · illustration

Five named stages are a shared map: recon, scan, gain access, maintain, cover tracks. Defenders use it to place controls. Authorized testers use it to stay inside a story they were hired to tell — not to attack strangers.

Opening

Same five names, two jobs — a defender map, not a burglary checklist you run on the internet.

Last lesson you wrote permission plus intent into ceh-ethics-notes.txt. Without a map, “authorized testing” is still a blur: people either freeze (afraid of every command) or spray tools because a blog numbered them. This lesson gives five stage names that security teams have used for years in after-action reviews and in scoped assessments: reconnaissance, scanning, gaining access, maintaining access, and covering tracks. You will treat them as a map both defenders and authorized testers share. You will not treat them as a weekend plan for a company that did not hire you. This remains original Cyberlium teaching mapped to the same introduction domain as CEH v13 Module 01. It is NOT official EC-Council training, NOT a CEH exam dump, and completing it does NOT grant CEH. We are not copying a vendor’s phase diagram, lab book, or exam wording. We are naming stages so you can ask, at each one: what would a SOC see, what would an authorized tester be allowed to do, and what does this course forbid? Covering tracks is the stage learners most often misunderstand. In crime it means hide evidence. In this course it means: know what logs and artifacts a stage leaves so you can detect it, and in a real engagement document what you did so the owner is not surprised. We will not teach you how to wipe someone else’s SIEM. Next lesson is law, contracts, and rules of engagement — the writing that cuts this map to size.

1. Why a shared map exists: detection, scoping, and stopping when the paper stops

Attackers do not owe you a Gantt chart, but their work still tends to move from learning, to probing, to getting in, to staying in, to reducing how obvious they were. Defenders place controls on that path: shrink what the internet already says (later footprinting hygiene), notice scans, make access expensive (auth, patching, least privilege from Topic 1), notice persistence, and keep logs that are hard to silently erase. If you only memorize tool names, you miss the placement problem. If you only memorize stage names as a criminal recipe, you picked the wrong course.

Authorized testers use the same map as a story they are allowed to tell inside a contract: “we will attempt to learn, probe, and (if in scope) demonstrate access on these hosts, then we will write it down.” The contract may stop the story early — recon-only, scan-only, no persistence, no touching backups. That is not a failed test. That is a scoped test. Cyberlium’s default scope for you is even tighter: until later modules say otherwise, you describe the map in notes and you practice only on assets named in your ethics file. You do not “complete” a phase by aiming it at a stranger.

Other public models exist (kill chains, campaign loops, “assume breach”). They rhyme; they are not homework to reproduce from a copyrighted poster. Five names are enough for Module 1: they give you vocabulary to talk to a SOC lead and to read a rules-of-engagement paragraph that says “no persistence.” If a hiring manager uses different labels, you can still map their words onto learn / probe / enter / stay / hide-or-document. The skill is translation, not reciting a vendor order as if it were a statute.

Command guide

Five-phase map — WHAT/WHY (detection, not a strike plan)

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install nmap

macOS:

Command — copy this

brew install nmap

Windows:

Command — copy this

choco install nmap  # or download https://nmap.org/download.html

═══ COMMANDS ═══

Command — copy this

cat >> "$NOTES" << 'EOF'
map: recon -> scan -> gain_access -> maintain -> cover (DEFENDER names)
use: detection opportunities + where MY RoE stops
not_use: a strike plan against strangers
stop_when: the written paper stops — curiosity is not the sixth phase
EOF

Command — copy this

printf "%s
" "1 recon (learn, mostly published)" "2 scan (probe allowed hosts/ports)" "3 gain access (impact you DESCRIBE)" "4 maintain (persistence you DETECT)" "5 covering tracks (why logs must leave the box)"

2. Recon and scan: learn, then probe — still only where you are allowed

Reconnaissance is learning without (or before) poking the target as a live system: what the organization publishes, what DNS and certificate transparency already show, what job ads reveal about the stack. Topic 4 taught you that footprints exist whether you are the subject or the observer. Module 2 in this topic will treat passive recon as reading public data on domains you own or on example.com-style public records — not as stalking a neighbor. Recon is where many students accidentally go criminal: scraping personal inboxes, buying dumps, phishing a real company “for OSINT.” Those are not recon labs here.

Scanning is active probing: asking a host which ports answer, which services speak, sometimes which software versions banner. Packets make it more obvious than quiet reading. Defenders care because scanners are noisy if you are looking, and because a well-placed probe can still crash a fragile service. Authorized testers care because scanning the wrong CIDR is how you become an incident on someone else’s ticket. In this introduction you will not run a network scanner at all. You will write what scanning would mean on YOUR VM later, and you will write that scanning a campus or a cloud range you do not lease is out. Topic 3 already taught ports as facts; this lesson adds the permission wrapper around those facts.

A defender reading the map at these two stages asks: what have we published that we did not mean to, and what would a probe of our listening services look like in logs? An authorized tester asks: what public facts are in scope to collect, and which probes are allowed against which IPs on which dates? You, today, ask: can I explain both questions without sending a packet? If yes, the notes file is enough. If you feel incomplete without nmap output, that feeling is a risk signal — sit with it until Lesson 4’s personal RoE names exactly which loopback or VM is allowed, and until a later module actually assigns a scan of that VM.

Command guide

Recon vs scan — WHAT/WHY on YOUR paper

═══ INSTALL ═══

Linux (Debian/Ubuntu):

Command — copy this

sudo apt install whois

macOS:

Command — copy this

brew install whois

Windows: Use https://lookup.icann.org or install via WSL

═══ COMMANDS ═══

Command — copy this

cat >> "$NOTES" << 'EOF'
recon: published pages/DNS/WHOIS on example.com or a name I own
scan: I sent a packet asking is this port open — ONLY 127.0.0.1 or MY VM
log_can_name_me: yes, once I probe
EOF

3. Gain access and maintain: impact stages you describe, not a crime you commit

Gaining access means crossing from “I can see a service” to “I can act as the system or a user in a way the owner did not intend.” That might be a guessed password on a lab VM you own, a vulnerability in a deliberately vulnerable app you cloned locally, or — in a real paid test — a finding the contract asked you to attempt. This course will not hand you exploit proof-of-concepts against the public internet. When later modules discuss access, they will stay inside YOUR lab or clearly marked local targets. Demonstrating access on a stranger’s box is a crime even if you immediately log out and write a friendly email.

Maintaining access is persistence: a way back after reboot, a second account, a scheduled task, a token that still works. Defenders hunt persistence because one phish should not become a year of presence. Authorized testers sometimes install a temporary foothold if and only if the rules say they may, and they remove it or hand it to the owner at the end. In Cyberlium you will not plant persistence on anything you do not own. You will write why persistence matters: backups, privileged accounts, and “we rotated one password” are incomplete if a second door remains. Topic 1’s least privilege and Topic 8’s key hygiene are already controls on this stage.

These two stages are where CIA fails in the loud way. Confidentiality fails if you can read data you should not. Integrity fails if you can change it. Availability fails if you can smash the service — which is why many rules of engagement forbid denial-of-service even when access tests are allowed. Your ethics notes should already say you do not steal data. This lesson adds: you do not need to perform access or persistence to understand them as map locations. Description is in scope. Demonstration waits for a lab that names YOUR process, YOUR file, YOUR VM.

Command guide

Impact stages as description — WHAT/WHY (not a crime you commit)

═══ COMMANDS ═══

Command — copy this

cat >> "$NOTES" << 'EOF'
gain_access_means: a control failed — I describe it, I do not pop a stranger
maintain_means: a foothold that survives reboot — I look for it in MY logs
cover_tracks_means: why off-box logs matter — I do not wipe anyone
EOF

4. Covering tracks: a defender visibility problem — not a tutorial in evidence destruction

Criminal covering tracks means deleting logs, tampering timestamps, or hiding files so investigators struggle. We will not teach you how to do that to someone else’s systems. We will teach you why the stage exists on the map: if logs are only on the same box that was compromised, a competent intruder may alter them; if logs are copied off-box, time-synced, and access-controlled, covering tracks gets harder. That is a defensive design sentence. Topic 2’s log habits and Topic 7’s parsers sit here. Your job as a learner is to expect artifacts, not to practice wiping a school firewall.

In an authorized engagement, “covering tracks” often flips into professional hygiene: do not leave your test accounts, do not leave a webshell, tell the owner what you changed, and put it in the report. Hiding your work from the client is the opposite of the job. Students mix this up because crime dramas treat stealth as skill. In a paid test, stealth might be in scope as “can we detect you,” or it might be forbidden because the client wants every action in the SIEM on purpose. The rules of engagement decide. Without rules, stealth is just unauthorized concealment.

Write the five names in order as a defender would brief them: (1) what did we leak before anyone knocked, (2) what would a knock look like, (3) what does a successful knock become, (4) what would keep the knocker inside, (5) what evidence should still exist anyway. Then write the Cyberlium cut: I describe all five; I perform none of them against assets I do not own; I will not use this list as a burglary order. That paragraph is the whole lesson in portable form. Law and RoE next will attach signatures and stop-conditions to it.

5. Wrong vs right: burglary checklist vs a shared map you refuse to run on strangers

Worked failure — same five names, opposite job. Right never treats covering tracks as a how-to for wiping other people’s logs.

  • Wrong

    Run recon, scan, exploit, persistence, and log wiping against a company, campus, or neighbor to “finish the phases.” Copy a vendor’s copyrighted phase poster as if it were this lesson. Call the map complete only if you gained access somewhere you do not own. Skip notes. Treat stealth as the grade. Claim this is official CEH lab work or an exam dump of phase definitions.

  • Right

    Name recon, scan, gain access, maintain, and cover tracks as a map defenders and authorized testers share. Describe detection opportunities. Perform nothing against unauthorized hosts. Write ceh-five-phases-notes.txt in $HOME/cyberlium-lab and chmod 600. Next: Law, Contracts, and Rules of Engagement — the writing that clips the map. Still original Cyberlium, still not a credential.

6. Hands-on: write the five-phase map in YOUR lab notes, then lock them

Create or update files only under $HOME/cyberlium-lab. The block writes ceh-five-phases-notes.txt with the five names, a defender question per stage, and an ethics cut. Fill every parenthetical in your own words. Do not attach nmap output from a third party. Do not paste copyrighted vendor outlines. chmod 600. If you cannot explain covering tracks without describing a wipe command aimed at someone else, rewrite that line until it is about logs you would want to keep.

Command guide

ceh_five_phases_notes.sh — map on paper, not packets at strangers

═══ COMMANDS ═══

Command — copy this

cd "$HOME/cyberlium-lab"

Command — copy this

cat > "$NOTES" << 'EOF'
=== CYBERLIUM FIVE PHASES — DEFENDER MAP (MODULE 1 LESSON 2) ===
disclaimer: Original Cyberlium curriculum mapped to the CEH v13 introduction
domain. NOT official EC-Council training. NOT a CEH exam dump. Completing
this does NOT grant CEH.

1_recon: learn from what is already public / owner-approved
defender_question: (what have we published that we did not mean to?)
tester_cut: only data I am allowed to read; no stalking, no dumps
2_scan: probe services that are in written scope
defender_question: (what would a probe of our listeners look like in logs?)
tester_cut: no campus/cafe/neighbor/random CIDR; later labs = MY VM/localhost
3_gain_access: act as system/user in an unintended way
defender_question: (which control should have made this expensive?)
tester_cut: describe now; demonstrate only on assets I own when a lab says so
4_maintain: persistence after reboot or password change
defender_question: (what second door would we miss if we only rotated one secret?)
tester_cut: I will not plant footholds on systems I do not own
5_cover_tracks: artifacts and log design — NOT a wipe tutorial
defender_question: (are logs off-box, time-synced, hard to silently alter?)
tester_cut: in an engagement I document and clean up MY changes; I do not hide from the owner

shared_map: defenders place controls; authorized testers stay inside the paper
cyberlium_cut: I describe all five; I do not run them on strangers
ethics: authorized lab only; $HOME/cyberlium-lab; chmod 600; no attacking others
EOF

Command — copy this

ls -l "$NOTES"

Mission: ceh-five-phases-notes.txt — five names, defender questions, chmod 600

1) In your own words, define recon, scan, gain access, maintain, and cover tracks as a shared map — covering tracks as visibility/log design and professional cleanup, not a crime how-to. 2) Write $HOME/cyberlium-lab/ceh-five-phases-notes.txt with a defender question per stage and a tester cut that forbids unauthorized hosts; chmod 600. 3) Do not scan, exploit, persist on, or wipe anyone else’s systems. This is not official EC-Council training and does not grant CEH.

Stuck? Ask Cyberlium AI Mentor

If “I have not learned the phases until I pop a shell on the internet” still feels true, ask for a hint — not an exploit. Try: "Hint only: why recon/scan/gain/maintain/cover-tracks is a map defenders and authorized testers share, why covering tracks here means logs and honest cleanup, and why I must not scan or wipe systems I do not own?" You still fill the notes in $HOME/cyberlium-lab. chmod 600. No third-party targets.

You can now brief five stages without pretending they are a burglary app: recon and scan are how learning becomes a knock; access and maintain are how a knock becomes impact; covering tracks is why logs must outlive the box. You refused to run that story on anyone who did not authorize it. Next — Law, Contracts, and Rules of Engagement — you will see why “I was practicing” is not a defense, and what written RoE actually contains, still inside original Cyberlium teaching, still not a CEH voucher, still chmod 600 on every file that names your lab.

Knowledge Check

1

APPLY: A teammate lists recon, scan, gain access, maintain, cover tracks and starts mass-scanning a cloud provider “to finish scanning,” then asks how to clear the provider’s logs. What is the map, and what do you do?

Multiple choice

Knowledge Check

2

APPLY: True or False: Covering tracks in this lesson means you must practice deleting another organization’s logs, because otherwise you have not completed the fifth phase.

True or False

Knowledge Check

3

APPLY: You are filling ceh-five-phases-notes.txt. Which pairing is in scope today?

Multiple choice

Knowledge Check

4

APPLY: curl of http://192.168.0.1/ shows a home router login (TP-Link / Netgear / Huawei / "Router Admin"). Is that DEMO in scope as a hacking target?

Multiple choice

← Previous

Answer all 4 knowledge checks to continue. (0/4 answered)