Lion Cipher Lab

Configure Linux auditing with auditd

Why it matters

When something goes wrong on a Linux host, the first question is always the same: what actually happened? auditd is the answer most incident responders reach for, because it records the events a normal system log never captures — which process called which syscall, who touched a sensitive file, what got executed and by whom. Without it, a machine forgets; with it, you can reconstruct the story. The skill that transfers everywhere is not the syntax but the loop: decide what matters, tell the kernel to record exactly that, prove it fires, and read it back. And the reality underneath it is just…

What you'll learn

Steps in this lab

  1. What auditd records, and why IR leans on it
  2. Install and enable auditd
  3. Watch a sensitive file with -w, and key it
  4. Log a syscall with -a, and key it
  5. Trigger the events, then read them with ausearch
  6. See the shape of it with aureport
  7. Adopt a baseline ruleset, make it persist, and tune the noise
  8. What you built, and the habit underneath it

Open the full interactive lab →