A source-cited reference library 399 modules · 19 subdomains · 5 domains
Research Library
Post-Exploitation and Lateral Movement

Cybersecurity / Red Team

Post-Exploitation and Lateral Movement

What happens after the first machine falls — privilege, credential access, and movement between systems — and the report that turns it into evidence the defense can act on.

Executive brief

Post-exploitation is the phase in which an operator extends control from one compromised host to the reach the engagement's objective requires: privilege escalation, credential access, and lateral movement across the estate. In an authorized simulation its final product is a report; in a real intrusion the same movements are what incident response must unravel.

Overview and context

One machine is rarely the objective. The first foothold lands with the privileges of whoever or whatever was deceived — a workstation user, a service account — and almost nothing of value sits at that ceiling. The post-exploitation phase is the operation's climb from one low-privileged process to whatever the engagement's scope defines as the objective: a domain controller's read access, a database, a file share, a crown-jewel system. The keys and locks on the right are the honest emblem of the phase: its currency is credentials, and its method is moving from one set of them to a better one until the objective is reached or the clock (or the blue team) stops the climb.

The climb has two repeating halves. Privilege escalation on the current host: a misconfigured service writable by the user, an unpatched kernel flaw, a scheduled task running as SYSTEM whose binary the user can replace — the classic catalog, and the one whose defenders' side (least privilege, baseline enumeration) the malware shelf's RAT document describes in its workflow. Credential access: extracting authentication material the host already holds in memory after users sign in — passwords to be reused elsewhere — so the next machine is opened not by an exploit but by a key the first machine was holding. That is the phase's signature economy: every machine that accepts a reused credential is another machine the adversary inherits without a new exploit.

A collection of assorted keys and old locks
The phase's currency — credentials are the keys the estate already holds; the climb trades them upward. Photograph via Wikimedia Commons.

Lateral movement

Movement is performed through the estate's own administrative machinery, which is why it is so legible after the fact: remote execution services — SMB remote procedure calls, Windows Management Instrumentation, remote desktop, PowerShell remoting — each accept commands under credentials each has, each leaves its own distinct log artifact, and each requires the adversary to show up as somebody. The movement table on the right summarizes the working set with requirements and artifacts. Two properties of that table deserve emphasis. First, everything in it is legitimate software doing intended administration — detection cannot block it by default the way a signature blocks malware, only by context: who is allowed, from where, to which machines, at what hours. Second, every row emits Windows security-event telemetry by design, which is why the second example block on the right is the defender's query of exactly that telemetry.

The tooling lineage of the phase is old and open enough to chart, which the right-hand chart does: PsExec (2006) made remote execution by service creation an everyday administrative technique — and, as a consequence, an evergreen adversary one; Mimikatz (2007) disclosed in one blow how casually Windows processes hold credentials in memory and became the reference implementation every framework since has wrapped; Kerberoasting (2014) showed the directory itself yielding crackable secrets; and BloodHound (2016) turned the whole question — who is one path away from Domain Admin? — from folklore into graph mathematics the defender can also run. The chart's reading: the phase's techniques have been public, documented, and reproducible for a decade and a half, which is why mature defenses treat them as inventory to be monitored, not surprises.

The table is the movement table the prose promises: each mechanism with the credential it needs and the log artifact it leaves.

MechanismCredential requiredArtifact left
SMB remote execution / service creationLocal admin on the targetLogon 4624 type 3, service event 7045
Windows Management InstrumentationAdmin or delegated rightsLogon 4624 type 3, WMI activity
PowerShell remotingRemote-management membershipLogon 4624 type 3, remoting logs
Remote desktopInteractive logon rightsLogon 4624 type 10, session records

Four mechanisms — every one requires the adversary to show up as somebody.

First public release year of the phase's reference tooling. PsExec 2006, Mimikatz 2007, Kerberoasting 2014, BloodHound 2016. Bars scaled to the 2006-2016 range.

PsExec2006
Mimikatz2007
Kerberoast2014
BloodHound2016

Why every row is a logon — the section's point, restated as the defender's single master check.

# One query covers the table
read successful logons (4624) and privileged logons (4672)
group by account and origin computer
find accounts authenticating to many hosts
# The phase's master check: who woke up where, and why.

The examples

The two blocks on the right pair the phase with its telemetry. The first is the operator-side texture shown abstractly: an illustrative privilege- and logon-session audit — the questions whose answers decide where the climb goes next, each answerable in a real shell in seconds. It is presented as documentation of what the phase asks, not as attack tooling. The second is the defender's query of Windows security event logs for the movement table's signatures: interactive and network logons (4624, 4672 — privileged logons), remote service creation (7045), PowerShell remoting, and the account-origin graph that reveals one account waking up on many machines — the classic lateral-movement signature and the single most useful query a defender can schedule.

Comparative data and specs

The table on the right is this document's data spine: the working movement techniques, one row each — the mechanism, the credential it requires, and the event artifacts it leaves.

Interpreted: every mechanism's artifact is a logon of some kind, which is why the defender's query of logon events is the phase's master check; and every mechanism requires the adversary to already hold usable credentials, which is why the phase's strongest structural countermeasure is credential hygiene — tiering administration (no admin account reused between workstation and server tiers), local-admin password separation (per-machine unique passwords), and phishing-resistant primary authentication where available. The climb exists because credentials are interchangeable; the defense exists to make them less so.

Movement mechanismCredential requiredArtifacts left
SMB remote execution / service creation (PsExec-class)Local admin on targetLogon 4624 (type 3), service event 7045, new service keys
WMIAdmin or delegated rightsLogon 4624 (type 3), WMI-activity logs, wmiprvse starts
PowerShell remoting (WinRM)Remote-management membershipLogon 4624 (type 3), PowerShell operational logs, 5985/5986 flows
Remote desktop (RDP)Interactive logon rightsLogon 4624 (type 10), user-session records

The working movement mechanisms.

First public release year of the phase's reference tooling — its techniques have been public and reproducible for well over a decade.

PsExec2006
Mimikatz2007
Kerberoast2014
BloodHound2016

Reading — bars scaled against the 2003–2016 range; compiled from each tool's documented first release.

Actionable steps for analysts

  1. Query the logon graph

    Schedule the event-log query on the right across the estate and read the results as a graph: which account authenticated to many machines it has no reason to touch. This single report surfaces most documented lateral movement with no exploit knowledge at all, and its false positives — legitimate administrators, patch agents — convert into the baseline list that makes real findings louder.

  2. Tier administration

    Separate administrative credentials into layers that never mix: no workstation-tier account holds rights on server tiers, no server-tier account signs in to workstations, and local administrator passwords are unique per machine. Every tier boundary the phase's climb must cross turns one document's credential access into two operations, each one a fresh detection surface for the telemetry of step one.

  3. Enumerate misconfiguration as a routine

    The privilege- and service-audit questions of the first example are run on a schedule against the organization's own estate: services whose binaries sit in user-writable paths, tasks running as SYSTEM from writable locations, accounts with unnecessary groups. The phase's escalation half is a configuration-discipline problem; the enumeration is the same check the adversary runs, on a clock, by the owner.

  4. Write the findings down as paths

    For a red-team engagement, report findings the way the defense can act on them: the specific credential, the specific movement path, the specific log it should have tripped, and the control that would have stopped the climb. The engagement's value is measured in the defense's subsequent ability to detect a replay — an outcome the report must therefore make testable, with the telemetry names and queries attached.

The table pairs the section's four steps with the defense each one builds, so the workflow reads as a defensive program rather than a list of tasks.

StepDefense it builds
Query the logon graphA baseline of which accounts touch which hosts
Tier administrationBoundaries the climb must cross, each a new detection point
Enumerate misconfigurationThe adversary's own escalation checklist, run by the owner
Write findings as pathsA report the defense can replay and test

Four steps — each turns the phase's technique into a measurable control.

What the report must contain — the section's rule that an engagement is judged by replayability.

# Report elements per the section
1. the specific credential used
2. the specific movement path
3. the specific log that should have fired
4. the control that would have stopped the climb
5. the query the defender can schedule
# If the defense cannot replay it, the finding is unfinished.

What to retain from each step — the section's workflow as an evidence trail.

# Records per step
graph: account, origin host, destination host, count
tiering: which accounts cross which boundary
enumeration: writable paths, tasks, and groups found
report: path, log, control, and query for each finding
# The trail lets the defense replay the exercise.

The objective ladder

It is worth being explicit about what the climb is climbing toward, because post-exploitation has a shape: engagements define objectives on a ladder, and the ladder's rungs are reached by credentials, not exploits. At the bottom sits the deceived workstation — a session that can read what the user can read. One rung up is identity expansion: the same user's material found in mail rules, tokens, or saved credentials, turning one sign-in into several identities. Next is host escalation: SYSTEM privileges on the current machine, which convert the workstation from a session into an infrastructure point. Then segment crossing: from workstation tiers toward server tiers — the tier boundary of the administration-tiering defense — performed with the estate's own administrative tooling.

At the top of most enterprise ladders sits directory authority: the directory itself (which user is administrator where, and who is one path from domain administration), which is why the graph-mathematics tooling of the chart matters — it prices the paths the same mathematics the defender can run. An honest red-team report maps its whole walk against that ladder and, rung by rung, names the log that should have fired — which is what distinguishes a rehearsal from a trespass and gives the defense something to implement the week after the report.

The objective ladder is set below as a table, with each rung paired with the credential that reaches it and the log that should fire.

RungCredential that reaches itLog that should fire
Deceived workstationA session that reads what the user readsThe initial sign-in record
Identity expansionMail rules, tokens, saved credentialsMailbox rule creation and token use
Host escalationA local privilege path to SYSTEMService creation and privilege grants
Segment crossingCredentials valid on a server tierType 3 and type 10 logons across the tier boundary
Directory authorityDirectory rights or a short graph pathPrivileged group and directory changes

Five rungs — the ladder's currency is credentials, not exploits.

The ladder as a report template — the section's rule that a red-team report maps its walk rung by rung.

# Report each rung
rung: deceived workstation -> identity expansion -> host escalation
      -> segment crossing -> directory authority
for each: credential used, path taken, log expected, control missed
# The report's value is what the defense can implement next week.

What indicates that a rung was crossed — the ladder restated as the observation that moves an investigation upward.

# Observation per rung
workstation: a session appears where the user was deceived
identity: a mail rule, token, or saved secret is reused
host: a service or task runs with higher privilege
segment: a logon crosses a tier boundary
directory: a privileged group or directory object changes
# Each observation is a rung, not an inference.

What credential shapes look like in practice

The phase's currency deserves precision, because "stolen credentials" compresses several different assets with different behaviors. Interactive passwords: the classic target — captured in memory while a user session is live, reusable wherever the same password was reused — and the reason password managers with unique per-site secrets are the single most effective breaker of the takeover chain. Delegated credentials: keys a service holds to act as its users; a compromise here inherits the service's every user at once, which is why tiering and segmentation matter most at exactly these positions.

Token material: modern federation mints bearer tokens whose theft is a login without a password; they expire, which makes them weaker prizes than passwords but far easier to spend silently in the minutes they have. Directory secrets: accounts whose requestable encryption material can be asked for and attacked offline — the Kerberoasting class of the chart — which is why service-account passwords deserve the same length and uniqueness discipline as administrator ones. The table's rows name what each mechanism consumes; the point of this list is that each class fails differently, and a defense plan that treats "credentials" as one undifferentiated prize will miss the seams where the chain actually breaks.

The table separates the four credential classes the section distinguishes, with how each one fails and what breaks the chain.

Credential classHow it failsWhat breaks the chain
Interactive passwordsReused wherever the same password appearsUnique per-site secrets in a password manager
Delegated credentialsA service compromise inherits every user at onceTiering and segmentation at service positions
Token materialExpires quickly but is spendable silentlyShort lifetimes and device binding
Directory secretsRequestable material attacked offlineLong, unique service-account passwords

Four classes — treating credentials as one undifferentiated prize misses every seam.

Reading the table against the movement mechanisms — the section's point that each mechanism consumes a named credential class.

# Match credential class to movement
interactive password -> remote desktop and interactive logons
delegated credential -> service-to-service actions
token material       -> federation and application access
directory secret     -> offline attack on requestable material
# Defenses are class-specific; so are detections.

Privilege Escalation

Privilege escalation exploits misconfigurations and vulnerabilities to gain higher-access accounts on a compromised host. Common vectors include unpatched services running as SYSTEM that allow binary replacement, insecurely configured scheduled tasks, and weakly protected service accounts with writable binaries (MITRE ATT&CK® Technique T1068). Kernel exploits remain rare in post-execution due to patch stability and detection focus, but credential theft via tools like Mimikatz often provides immediate administrator access by extracting hashes from LSASS memory. Enumeration is continuous: operators query for always-install-elevated properties, unattended service paths, and modifiable DLL hijack targets. Defenses rely on least privilege enforcement—ensuring services run with minimal required permissions—and stringent audit policies that detect anomalous access attempts. Since privilege escalation enables lateral movement by yielding credentials usable across the estate, monitoring for abnormal privilege grants remains a cornerstone of active defense.

Primary sources and media links

What the operator asks — an illustrative privilege-and-session audit; each line decides where the climb goes next.

# Illustrative questions (read-only audit)
$ whoami /all
#   groups + privileges: what can this session do?
$ query session
#   who else is on this machine?
$ net use
#   what shares does the session already hold?
(Answers decide the next move; the audit is the
same enumeration a defender runs on a clock.)

What the defender queries — the movement table's signatures, read from Windows auditing. Real commands.

# Example: lateral-movement telemetry (defensive)
Get-WinEvent -FilterHashtable @{
  LogName='Security'; Id=4624,4672,7045
  StartTime=(Get-Date).AddHours(-24)
} | Group-Object {
    $_.Properties[0].Value      # account name
  }, {
    $_.Properties[5].Value      # origin computer
  } | Sort-Object Count -Descending | Select -First 20
# Read for: one account authenticating to many hosts
# and event 7045 (remote service creation) outside
# the software-installation baseline.

Post-exploitation movement crosses internal boundaries that no perimeter device ever sees. The Ethernet cable is the whole phase in one image: lateral hops, pivots, and the quiet traversal from a foothold host toward the systems that actually hold value.

An Ethernet cable connected to a laptop port
Movement — the phase crosses internal boundaries no perimeter device ever sees. Photograph via Wikimedia Commons.

Quick reference — the rules at a glance

The page's rules follow from one idea: post-exploitation is a climb paid for in credentials, not exploits. Movement is performed through the estate's own administrative machinery, so every mechanism is legitimate software doing intended work and every one leaves a logon artifact. That is why the defender's master check is the logon graph: which account authenticated to which host, from where, and when. The climb's rungs run from a deceived workstation through identity expansion, host escalation, and segment crossing to directory authority, and an honest report maps the walk rung by rung and names the log that should have fired.

Four habits carry the defense. Query the logon graph on a schedule and treat its false positives as the baseline. Tier administration so no credential crosses a boundary freely. Enumerate misconfiguration on a clock, because that is the same checklist the adversary runs. Write findings as replayable paths with telemetry attached, since an engagement is judged by whether the defense can detect the replay. Credential classes matter individually: passwords, delegated credentials, tokens, and directory secrets fail in different ways, and a plan that treats them as one prize misses the seams.

The table gathers the page's rules, the documented basis for each, and the failure it prevents.

RuleBasis on this pageFailure it prevents
Query the logon graphEvery movement mechanism leaves a logon artifactMissing one account waking up on many hosts
Tier administrationThe climb crosses boundaries with credentialsOne stolen account reaching every tier
Enumerate misconfigurationThe escalation catalog the phase usesLeaving a writable service binary in place
Report replayable pathsThe section's testability ruleA finding the defense cannot act on
Treat credential classes separatelyFour classes with different failure modesA defense plan that misses the seams

Five rules, five documented bases — the page's defense in one view.

The rules as an order of work — the page's sequence from telemetry to report.

# Working order
1. schedule the logon-graph query across the estate
2. read it as a graph: accounts, origins, counts
3. convert false positives into the baseline list
4. tier administration and remove shared local-admin passwords
5. attach the query names to every finding reported
# Detection first; the report is the test of it.

A second view sets the page's rungs beside the primary signal, so the quick reference can be used as a review of one intrusion's reach.

RungPrimary signal
Deceived workstationInitial sign-in and execution
Identity expansionMail rules, token use, saved credentials
Host escalationService creation and privilege grants
Segment crossingLogons across the tier boundary
Directory authorityPrivileged group and directory changes

Reading — each rung has a signal, which is why the walk can be reported and tested.