Lion Cipher Lab

Ship privileged-session recordings off the box so root can't erase the evidence — sudo_logsrvd (a Part 2)

Why it matters

Part 1 ended on an uncomfortable admission: a session recording that lives on the same machine as the person it is recording is only as trustworthy as that person's restraint, because anyone who reaches real root can delete it. That is the exact gap a real auditor will poke at first. This lab closes it with sudo's own answer — sudo_logsrvd — so the recording is written to a machine the administrator being recorded does not control. That single architectural change is the difference between 'we recorded it' and 'we still have it', and it is what lets you honestly call sudo a Privileged Access…

What you'll learn

Steps in this lab

  1. Where Part 1 left you, and the one wall it hit
  2. Build two throwaway machines and a private wire between them
  3. Stand up the collector: run sudo_logsrvd
  4. Point the client at the collector
  5. Prove it: run a command on the client, find the recording on the collector
  6. The whole point: destroy the evidence on the client, watch it survive on the collector
  7. Do it better: wrap the wire in TLS
  8. Tear it down, and take the instinct with you

Open the full interactive lab →