Lion Cipher Lab

Detect lateral tool transfer from Detailed File Share auditing (Event 5145)

Why it matters

When an intruder moves from one Windows machine to the next, they usually have to put a file on the new machine first: a tool, a script, a payload. The quickest way is to copy it over the network into one of the hidden administrative shares every Windows computer has -- ADMIN$ (the Windows folder) or C$ (the whole system drive) -- and then start it remotely as a service or through WMI. MITRE ATT&CK calls the copy Lateral Tool Transfer (T1570) and the share abuse SMB/Windows Admin Shares (T1021.002). The receiving machine can record that copy in its own Security log as Event 5145, with who did…

What you'll learn

Steps in this lab

  1. What lateral tool transfer looks like from the machine that receives it
  2. The event that carries the signal: 5145, and why it is not on by default in most places
  3. Decode the AccessMask -- the number that says 'this was a write'
  4. Generate a week of share activity with an intrusion in it
  5. Score five rules and read the numbers
  6. Read the alert list, not just the score
  7. Honest limits -- what 5145 cannot show you
  8. Optional: look at your own machine's share events (read-only)
  9. When to use this, and the better version

Open the full interactive lab →