auditd
The Linux audit daemon, which records kernel events such as system calls and file changes according to audit rules.
In more detail
One action produces several records that share an event serial, such as SYSCALL, EXECVE, CWD, PATH and PROCTITLE. Records carry auid, the login user behind the action, even after sudo. Rules are loaded with augenrules and searched with ausearch.
Related terms
- audit rule — A line that tells the Linux audit system what to record, such as every execve call by a logged-in user or every write to /etc/shadow.
- auid — The audit user ID: the ID of the person who originally logged in, which stays the same even after they switch user or use sudo.
- auditd record — One line of the Linux audit log; several records with the same serial number make up one event.
- ausearch — A command for searching the Linux audit log by key, user, time or event, and printing whole events rather than single records.
- augenrules — The command that merges the audit rule files in /etc/audit/rules.d into one file and loads them into the kernel.
Taught in
- SELinux Ports And Booleans: The Other Two Refusals — Red Hat Certified System Administrator (EX200) Exam Prep
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)