Lion Cipher Lab

Hunt anomalous named pipes in Sysmon pipe events (Event ID 17/18)

Why it matters

A named pipe is a little mailbox two Windows processes use to talk, on one machine or across the network over SMB. Windows itself runs on them, which is exactly why attackers like them: remote service execution, many lateral-movement tools and a lot of command-and-control software pass their traffic through pipes, where it looks like the operating system talking to itself. Sysmon can log every pipe a process creates, but a real fleet creates thousands of pipe names a day, most with random numbers in them, so the obvious hunt (look for rare names) hands you thousands of rare names. This lab…

What you'll learn

Steps in this lab

  1. What a named pipe is, and why attackers route through them
  2. The telemetry: Sysmon Event ID 17 and 18, and the config you need first
  3. Optional: look at the live pipes on your own PC (read-only)
  4. Build the synthetic week of pipe events
  5. Why rare names drown you, and how templates fix it
  6. Stack four ways and score each one
  7. Rank the eight rows by who made the pipe
  8. What each finding would mean, in ATT&CK terms
  9. What a pipe hunt cannot see
  10. Where this goes next

Open the full interactive lab →