Audit security-relevant activity on Linux

8 steps · about 2 h 46 min · Intermediate

  1. Understand what the audit daemon records (reference, Linux man-pages, 14 min)

    Start with the daemon, its event stream and its operational boundaries before writing rules.

  2. Set safe log and disk behaviour (reference, Linux man-pages, 18 min)

    Choose rotation and low-space actions so auditing fails visibly instead of silently filling the host.

  3. Inspect status and add a temporary rule (reference, Linux man-pages, 24 min)

    Use temporary rules first so a mistake can be tested and removed without making it persistent.

  4. Design focused syscall and file rules (reference, Linux man-pages, 28 min)

    Select narrow filters and meaningful keys that answer a security question without capturing everything.

  5. Make reviewed rules persistent (reference, Ubuntu Manpage Repository, 18 min)

    Translate the tested rules into the boot-time format and preserve their ordering deliberately.

  6. Search a multi-record audit event (reference, Linux man-pages, 24 min)

    Correlate records by event identifier, key, user and time rather than reading isolated lines.

  7. Summarise account and file activity (reference, Linux man-pages, 20 min)

    Turn raw events into useful summaries, then drill back into the evidence behind an anomaly.

  8. Load and verify a tuned ruleset (reference, Linux man-pages, 20 min)

    Finish by compiling persistent rules, checking load errors and removing rules whose noise exceeds their value.