Security Fundamentals · Study Notes

Networks & Lateral Movement

ONE FOOTHOLD · MANY PATHS

A breach is rarely a single step. An attacker lands on one low-value machine and then moves sideways — host to host, credential to credential — until they reach what they actually came for: domain controllers, data, and admin accounts. This page maps that journey onto the MITRE ATT&CK framework: the real techniques, the tools that execute them, how each is detected, and the controls that break the chain.

01 The attack lifecycle

Lateral movement is one tactic in a longer chain

Frameworks exist so defenders and attackers describe the same thing the same way. The Cyber Kill Chain (Lockheed Martin) gives the high-level arc; MITRE ATT&CK breaks it into concrete, observed techniques, each with an ID like T1021. Lateral movement is tactic TA0008 — but it only matters because of what comes before and after it.

PhaseATT&CK tacticWhat happens
ReconTA0043 ReconnaissanceMap the target — domains, hosts, people, exposed services
Initial accessTA0001 Initial AccessGet the first foothold (phish, exploit, valid creds)
Execution & persistenceTA0002 / TA0003Run code; survive reboots and logouts
Credential accessTA0006 Credential AccessSteal hashes, tickets, tokens from the foothold
Lateral movementTA0008Use those credentials to reach the next host
Privilege escalationTA0004Climb from user → local admin → domain admin
Collection & exfiltrationTA0009 / TA0010Gather and remove the target data
The core idea

Lateral movement is credential reuse plus legitimate protocols. Attackers rarely drop new exploits to move internally — they log in. The traffic looks like normal admin activity, which is exactly why it's hard to spot and why segmentation and least privilege matter more than any single detection.

02 Network zones & why they exist

Segmentation is the single biggest limiter of blast radius

A flat network — where every host can talk to every other — means one foothold reaches everything. Zoning divides the network into trust tiers with controlled crossing points, so a compromise in one zone doesn't automatically become a compromise of all of them.

DMZ (Demilitarised Zone)

Internet-facing services (web, mail, VPN) live here, isolated from the internal network. If a public server is popped, the attacker is still boxed out of the core.

Internal / user network

Workstations and everyday systems. The most common landing zone for phishing, and the launch pad for moving deeper.

Server zone

Application, database and file servers. Should only accept the specific traffic it needs — not general access from every workstation.

High-value / tier-0

Domain controllers, credential stores, backups, admin infrastructure. Compromise here = game over. Treated as its own hard boundary.

Ports you'll see on the path

445 SMB3389 RDP5985/5986 WinRM135 RPC/DCOM88 Kerberos389/636 LDAP22 SSH5900 VNC

03 Getting the first foothold

TA0001 — how attackers get in before they can move

Lateral movement needs a starting point. The overwhelming majority of real intrusions begin with one of three things, none of which is a Hollywood "hack":

Why patching exposed services is non-negotiable

Several of the worst breaches in history started at step one here. EternalBlue (CVE-2017-0144, MS17-010) — an SMB flaw — gave WannaCry and NotPetya both their entry and their worm-like spread in 2017. A single unpatched edge service can be the whole story.

04 Lateral movement techniques

TA0008 — the real ATT&CK techniques, how they work, how they're caught

Once an attacker holds credentials from the foothold, these are the techniques they use to reach the next machine. Each row is a mapped ATT&CK technique — learn the mechanism, not just the name.

Credential-based movement

Technique / IDHow it worksToolsDetection signal
Pass-the-Hash
T1550.002
Authenticate with the NTLM hash directly — the plaintext password is never neededmimikatz, impacket, NetExecNTLM logons (Event 4624 type 3) from unusual source hosts
Pass-the-Ticket
T1550.003
Inject a stolen/forged Kerberos ticket into a session to impersonate a usermimikatz, RubeusTickets with anomalous lifetimes; TGT/TGS mismatches
Kerberoasting
T1558.003
Request service tickets (TGS) for SPN accounts, crack them offline for the service passwordRubeus, impacket-GetUserSPNs, hashcat -m 13100Bursts of TGS requests (Event 4769) with RC4 encryption
AS-REP Roasting
T1558.004
Target accounts with Kerberos pre-auth disabled; crack the returned AS-REP offlineRubeus, impacket-GetNPUsers, hashcat -m 18200AS-REQ for accounts that shouldn't be queried
Credential reuse
T1078
A shared local-admin password or reused user password opens the next box outrightNetExec, spray scriptsSame account authenticating across many hosts quickly

Remote-service movement (T1021)

These abuse legitimate remote-administration protocols — the same ones sysadmins use daily — which is what makes them blend in.

Sub-technique / IDProtocol / portTypical use
Remote Desktop Protocol — T1021.001RDP · 3389Interactive graphical session to another host
SMB / Windows Admin Shares — T1021.002SMB · 445PsExec-style remote execution via ADMIN$ / C$
Distributed COM — T1021.003DCOM · 135Execute via COM objects (e.g. MMC20)
SSH — T1021.004SSH · 22The Linux/Unix equivalent of RDP movement
Windows Remote Management — T1021.006WinRM · 5985/5986PowerShell Remoting; evil-winrm with creds/hash
impacket — remote execution with a captured hash
# pass-the-hash to a SYSTEM shell over SMB (T1021.002 + T1550.002) impacket-psexec -hashes :<NThash> DOMAIN/admin@10.0.0.25 # dump every secret from a domain controller (needs DA / DCSync rights) impacket-secretsdump DOMAIN/admin@dc01 -just-dc # spray one hash across a whole subnet to find where it is admin nxc smb 10.0.0.0/24 -u admin -H <NThash> --local-auth
Blue-team reframe

Every technique above produces a logon event. The detection isn't a magic signature — it's behavioural: a service account logging on interactively, one account touching 40 hosts in a minute, NTLM where Kerberos is expected, RC4 tickets in an AES environment. This is what "unusual east-west traffic" on a SIEM dashboard actually means.

06 Privilege escalation along the way

TA0004 — climbing from user to administrator

Movement and escalation interleave. Each new host may offer a local privilege-escalation route that yields fresh, higher-value credentials to move again:

Enumerate first

Tools like WinPEAS / LinPEAS automate the "what can I abuse here" check on a new host — the same checks a defender should run to find and close the gaps first.

07 Containment & defence

Break the path, limit the blast radius

You can't prevent every foothold — so the goal is to make sure one foothold stays one foothold. These controls directly map to the techniques above.

ControlWhat it stops
Network segmentation & VLANsRemoves the flat-network assumption; a DMZ foothold can't reach the server zone
Least privilege + LAPSUnique local-admin passwords per host kill credential-reuse spraying
Tiered administrationTier-0 (DC) admins never log on to workstations, so their creds never land where they can be stolen
MFA everywhereA stolen password alone no longer grants access — especially on VPN, RDP and privileged logins
Disable/limit NTLM; enforce Kerberos + AESRemoves pass-the-hash surface and RC4 roasting weakness
EDR + SIEM on east-west trafficDetects the behavioural anomalies these techniques generate
Patch exposed & internal servicesCloses the worm routes (EternalBlue, BlueKeep CVE-2019-0708, PrintNightmare, Zerologon CVE-2020-1472)
Credential Guard & LSASS protectionStops the memory-dump step that feeds everything downstream
The defender's mantra

SEGMENT · LEAST PRIVILEGE · MFA · DETECT · PATCH

08 References & further reading

Authoritative sources — go deeper here
  1. MITRE ATT&CK — Lateral Movement (TA0008) — attack.mitre.org
  2. T1021 Remote Services & T1558 Steal or Forge Kerberos Tickets — MITRE
  3. BloodHound documentation — AD attack-path analysis — SpecterOps
  4. HackTricks — Active Directory methodology — book.hacktricks.wiki
  5. Microsoft — Securing privileged access & the tiered model — learn.microsoft.com
  6. NCSC — Mitigating malware and ransomware attacks — ncsc.gov.uk
  7. CISA — detecting and evicting lateral movement — cisa.gov