Pcornel
Security · Logging & Monitoring

Linux Audit Logs

Cheat sheet · https://pcornel.dk/topic.php?topic=4857

Back to the Topic

Answer

Linux audit logs, written by auditd to /var/log/audit/audit.log, record security-relevant system calls, logins, privilege use and file access according to audit rules. Use ausearch and aureport to query them during investigations.

Remember

  • One Linux audit record ≠ one complete user action; a single event may span multiple related records.
  • Process or syscall audit ≠ user intent or authorization context by itself.
  • Source configured ≠ required event generated, transported, retained and queryable.
  • Telemetry observation ≠ root cause, intent or complete security state without independent context.

First checks

  • ausearch -m USER_LOGIN,EXECVE -ts today | head — audit events
  • aureport --summary — audit summary
  • auditctl -s — lost events

Verify in this order

syscall → audit rule → audit.log → SIEM

Where it usually breaks

First mismatch in event source → collection → parsing/normalization → enrichment/correlation → detection/alert → analyst/automation response → outcome; preserve identity/policy/pre-state before mutation.

Logging & Monitoring → Linux Audit Logs proof map

BoundaryEstablishDoes not establish
SourceRequired asset/service, audit policy, provider/channel and event classSource inventory alone does not prove event generation
DeliveryLocal queue, transport, collector receipt and timestampsConfigured destination does not prove lossless delivery
PreservationRetention, access, raw record, integrity and provenanceStored record does not prove source truth or complete coverage
InterpretationProvider fields, identity, policy/result and adjacent evidenceEvent presence does not prove intent, causation or root cause
MonitoringQuery/detection plus source and pipeline healthNo alert does not prove no activity or compromise

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4857

Confirmation

Confirm action

Continue?