Lion Cipher Lab

Reconstruct Remote Desktop (RDP) sessions from Windows event logs

Why it matters

Remote Desktop is how administrators run Windows servers, and it is also one of the most common ways intruders move once they hold a password: MITRE ATT&CK tracks it as T1021.001, Remote Services: Remote Desktop Protocol, and ransomware incident reports routinely include a line like 'the actor connected over RDP from host X at 02:14'. Somebody had to rebuild that line from logs, and the first thing a responder is asked is 'who was on this server, from where, and for how long?' The trap is that no single Windows log answers it. The Security log records logons but treats a reconnect like a new…

What you'll learn

Steps in this lab

  1. What an RDP session is, and the three logs that each see part of it
  2. How this lab differs from its neighbours
  3. Create the evidence: one server's day as JSON lines
  4. Write the reconstructor (and the naive shortcut, for comparison)
  5. Measure the BEFORE: count 4624 type 10
  6. Measure the AFTER: correlate all three channels
  7. The honest negatives: what correlation still cannot tell you
  8. Optional: look at the real LocalSessionManager channel on your own PC
  9. When to use this, and how a pro does it better

Open the full interactive lab →