Agent Foskett Academy • SOC Analyst Academy • Module 10 • Lesson 94 • Complete SOC Investigation Scenarios

Lesson 94 — The Endpoint Incident Became Lateral Movement

WS-214 was compromised.

Then the same account appeared on another device.

Then another.

The attacker was moving.

One compromised endpoint is a finding. Movement to other systems changes the incident.
Agent Foskett investigating lateral movement between compromised endpoints
Do not investigate the second device in isolation.

Reconstruct how access moved from the known compromised endpoint into the wider environment.

✓ Source
✓ Destination
✓ Identity
✓ Technique

Case briefing

09:01 Malicious execution WS-214 09:08 Remote authentication SRV-FILE-02 09:11 Process activity SRV-FILE-02 09:16 Authentication WS-331 09:19 Same account new process activity ONE DEVICE BECAME THREE.

Investigation objective

Determine whether activity on additional devices represents lateral movement, identify the source and destination systems, and establish how far the incident has spread.

Investigator's rule

When a compromised identity appears on a new device, ask how it got there.

Stage 1 — define the known source

Known evidenceWhy it matters
WS-214 compromisedPotential source of movement
Compromised user identityCredential or session may enable access
Suspicious PowerShellKnown execution activity
Outbound connectionsPossible pivot toward other systems

Start from what is confirmed

WS-214 is already part of the incident. Use it as the source pivot rather than beginning a disconnected investigation on every new device.

Movement needs a relationship

The same account appearing elsewhere is suspicious, but lateral movement requires evidence connecting source, destination, authentication or execution.

Stage 2 — find the identity across devices

01-scope-account-across-devices.kql
123456789101112
let User = "alex@contoso.com";
DeviceLogonEvents
| where Timestamp > ago(4h)
| where AccountUpn =~ User
| project Timestamp,
          DeviceName,
          AccountUpn,
          LogonType,
          RemoteDeviceName,
          RemoteIP,
          ActionType
| order by Timestamp asc

Build the movement map

List each device, timestamp, logon type and remote source. The sequence can reveal whether activity radiated from the known compromised endpoint.

Logon type gives context

Interactive, network and remote logons represent different access patterns. Interpret them alongside the user's normal behaviour and device role.

Stage 3 — the first destination

WS-214 KNOWN COMPROMISED │ │ remote activity ▼ SRV-FILE-02 09:08 authentication 09:11 process execution │ │ later activity ▼ WS-331 09:16 authentication 09:19 process execution POSSIBLE LATERAL MOVEMENT CHAIN

Authentication plus execution is stronger

A logon event shows access. A related process appearing shortly afterwards can show that the access was actually used.

Device role changes impact

Movement from a workstation to a file server may expose shared data, additional credentials or paths to more systems.

Stage 4 — inspect destination execution

02-review-destination-processes.kql
123456789101112
let Device = "SRV-FILE-02";
DeviceProcessEvents
| where Timestamp > ago(4h)
| where DeviceName =~ Device
| project Timestamp,
          DeviceName,
          AccountName,
          InitiatingProcessFileName,
          FileName,
          ProcessCommandLine,
          SHA1
| order by Timestamp asc

Look for repeated technique

If the same command, script, tool or process relationship appears on multiple devices, that behavioural repetition can connect the activity.

But expect variation

An attacker may change commands or tools between systems. Search for the underlying behaviour as well as exact indicators.

Stage 5 — correlate source and destination

EvidenceSupports movement?
Known compromised sourceYes — establishes origin context
Remote authentication to destinationYes — establishes access path
Same compromised identityYes — connects account context
Execution immediately after logonYes — shows destination activity
Similar technique on another deviceYes — expands likely scope

Correlation is cumulative

No single event has to tell the entire story. Multiple independent observations can combine into a defensible lateral-movement finding.

Keep alternatives alive

Administrative tools and legitimate remote access can produce similar telemetry. Validate whether the activity matches expected operations.

Stage 6 — scope by technique

03-find-related-execution.kql
12345678910
DeviceProcessEvents
| where Timestamp > ago(4h)
| where ProcessCommandLine has_any
    ("powershell", "wmic", "psexec")
| summarize
    FirstSeen=min(Timestamp),
    LastSeen=max(Timestamp),
    Events=count()
    by DeviceName, AccountName, FileName
| order by FirstSeen asc

Broad hunts need validation

Common administrative tools generate legitimate activity. Use the results to identify candidates, then correlate them with the incident timeline.

Do not turn tool names into verdicts

PowerShell, WMI and remote administration can all be legitimate. Behaviour, context and sequence determine meaning.

Stage 7 — map confirmed and suspected scope

CONFIRMED WS-214 Compromised endpoint ↓ SRV-FILE-02 Remote authentication + Suspicious execution SUSPECTED ↓ WS-331 Related authentication + Process activity UNKNOWN Other devices? SCOPE IS STILL EXPANDING.

Separate confirmed from suspected

Your scope map should distinguish systems with strong evidence from systems that merely require further investigation.

Unknown is a valid status

Do not force a clean or compromised verdict before the evidence supports one. Track unresolved devices explicitly.

Stage 8 — containment becomes coordinated

IF YOU ISOLATE ONLY WS-214... BUT SRV-FILE-02 IS ALREADY COMPROMISED... THE ATTACK MAY CONTINUE. CONTAINMENT PLAN: Identity + Source endpoint + Confirmed destinations + Credential exposure + Active sessions

Contain the current attack state

Response should account for every confirmed foothold, not merely the first system discovered.

Consider credential exposure

Movement through additional systems may expose further accounts or privileges, requiring the identity scope to expand again.

Stage 9 — incident finding

FINDING Activity progressed from compromised endpoint WS-214 to SRV-FILE-02. The compromised identity authenticated remotely to SRV-FILE-02 and suspicious execution followed. Related authentication and process activity was also identified on WS-331. ASSESSMENT: Lateral movement confirmed to SRV-FILE-02. WS-331 remains under active investigation. NEXT: Contain confirmed systems. Scope the technique. Review credential exposure. Continue searching for additional destinations.

Write movement as a chain

Document source, destination, identity, time and supporting execution evidence so another analyst can reconstruct why lateral movement was concluded.

Do not overstate the edge of scope

Clearly distinguish where movement is confirmed from where it is only suspected.

Decision point

A Isolate WS-214 only B Close the identity incident C Contain confirmed systems and continue scoping additional destinations D Wait until every device has generated an alert BEST DECISION: C THE INCIDENT IS NOW MULTI-DEVICE.

Movement changes severity

A single compromised workstation and a multi-device intrusion have different operational impact, containment requirements and escalation needs.

The next question is data

Once the attacker has moved through the environment, determine what resources were accessed and whether sensitive information began leaving.

Lesson 94 key takeaways

  • Use the known compromised endpoint as the starting source for lateral-movement analysis.
  • Search the compromised identity across device logon telemetry.
  • Map source, destination, time, logon type and execution.
  • Authentication followed by suspicious execution strengthens the movement hypothesis.
  • Device role changes the potential impact of movement.
  • Search for repeated behaviours as well as exact indicators.
  • Legitimate administrative tools require contextual validation.
  • Separate confirmed, suspected and unknown scope.
  • Contain every confirmed foothold, not only the first device discovered.
  • Reassess credential exposure as movement expands.
  • Document lateral movement as a defensible source-to-destination chain.
  • Continue scoping until the evidence supports a stable boundary.

Module 10 — Complete SOC Investigation Scenarios

Lesson 94 expanded the endpoint incident into a multi-device lateral-movement investigation. Lesson 95 follows the attacker into cloud services when sensitive data begins leaving the environment.

Next: Lesson 95 — The Cloud Data Started Leaving

Continue your SOC Analyst training

Module 9 focuses on turning validated investigation findings into transparent, tested and operationally useful detections.

How do SOC analysts investigate lateral movement?

Lesson 94 of the Agent Foskett SOC Analyst Academy follows a compromised endpoint into additional devices and correlates remote authentication, identity activity, process execution and network evidence.

Scoping lateral movement across endpoints

Learn how to map source and destination devices, validate remote access, search repeated techniques, separate confirmed from suspected scope and coordinate containment across a multi-device incident.