Skip to main contentSkip to main content
Room Banner
Back to all walkthroughs
Room Icon

Detecting AD Lateral Movement

Premium room

Learn to detect SMB, PsExec, and RDP lateral movement through Windows Event Logs and Splunk.

medium

60 min

1,327

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

In an environment, attackers who compromise a single account rarely stop there. They use built-in protocols like and to move from the initial foothold to servers that hold what they actually want, like domain controllers, file servers, and databases. The tricky part for defenders is that these are the same protocols administrators use every day.

This room covers three lateral movement techniques and the log artifacts they produce. We'll start by looking at normal traffic for each protocol, then investigate a simulated attack that uses , PsExec, and to move from a compromised workstation to the Domain Controller.

Lateral movement overview diagram showing the attacker's path from a compromised workstation through SMB, PsExec, and RDP to reach the Domain Controller

Learning Objectives

  • Detect discovery commands through process creation and Script Block logs
  • Identify -based lateral movement through admin share access patterns
  • Identify PsExec usage through service installation artifacts, named pipe creation, and correlate source and destination events
  • Detect -based lateral movement using Logon Type 10 and trace multi-hop chains through Logon ID correlation and process artifacts
  • Correlate artifacts across source and destination systems to trace an attacker's path

Prerequisites

Start the machine by clicking the Start Machine button below. Give the instance about 4-5 minutes to launch, then access it using the link below. Feel free to continue reading the next tasks while it boots:

Info: This instance is used throughout the entire room. The walkthrough tasks (2-6) use index=win. The investigation challenge (Task 7) uses index=challenge, which contains a separate dataset on the same machine. Make sure to set the time range to All Time in before running your queries.

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting the Target Machine, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Lab machine
Status:Off
Answer the questions below

I have successfully started my Splunk instance.