Audit security-relevant activity on Linux
8 steps · about 2 h 46 min · Intermediate
- 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.
- 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.
- 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.
- 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.
- Make reviewed rules persistent (reference, Ubuntu Manpage Repository, 18 min)
Translate the tested rules into the boot-time format and preserve their ordering deliberately.
- 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.
- 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.
- 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.