Lion Cipher Lab

Build a daily auditd report with aureport and a Python summary

Why it matters

The Linux audit daemon (auditd) is the kernel-level record of who did what on a system — every login, every privileged command, every touch of a file you chose to watch. It is one of the most trusted sources of truth in an incident, which is exactly why so many teams turn it on, generate gigabytes of it, and then never look at it: raw auditd output is a firehose of multi-line records that is unreadable by eye, so it silently becomes write-only. A log nobody reads catches nothing. The skill that makes auditd actually defend a system is the boring, high-value one this lab teaches: turning a day…

What you'll learn

Steps in this lab

  1. Make sure auditd is running and watching something
  2. Read the native summary with aureport
  3. Pull a day of records with ausearch
  4. Write the Python summarizer
  5. Run it and read the report
  6. Schedule it, and alert only on the signal

Open the full interactive lab →