Pcornel
Security · Linux Security

auditd

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

Back to the Topic

Answer

auditd receives Linux Audit subsystem records generated from kernel audit rules and security events, groups multi-record events by serial/time and persists or forwards them under configured queue, disk and failure policies.

Remember

  • auditd running ≠ required kernel audit rules loaded or records retained.
  • One audit record ≠ complete event; related records share an event identifier.
  • Configuration file present ≠ parsed, loaded and effective runtime state.
  • One allow/deny result ≠ complete DAC, privilege, LSM, firewall and application outcome.

First checks

  • auditctl -l — loaded rules
  • auditctl -s — status (enabled, lost)
  • ausearch -k <key> -ts today — events by key

Verify in this order

syscall/event → audit rule → audit.log → SIEM

Where it usually breaks

First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.

Linux Security → auditd proof map

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure

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

Confirmation

Confirm action

Continue?