Lion Cipher Lab

Audit who logged in and who used sudo

Why it matters

Two of the most common questions a defender answers are 'who is on this machine?' and 'who gained administrator rights, and when?'. Almost every intrusion eventually shows up as an account logging in at an odd time, an unfamiliar user appearing, or an unexpected use of sudo to run something as root. You cannot judge whether a login is suspicious in a vacuum — you judge it against what normal looks like on that specific box. This lab teaches you to read the login and privilege trail on your own machine and to build that baseline, so the day something abnormal happens, it stands out…

What you'll learn

Steps in this lab

  1. The idea: a baseline is your best detector
  2. Who is on the machine right now
  3. The login history: who has been on lately
  4. The last time each account signed in
  5. Who used sudo — the privilege trail
  6. Failed sudo, su attempts, and the journal
  7. Put it together: write down your normal
  8. Why knowing your own box is the whole game

Open the full interactive lab →