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.
In more detail
A -a always,exit rule with -S execve records every program run; a -w rule watches a file for writes (-p wa). -k adds a key, such as identity or priv, to search by. -e 2 locks the rules until reboot so an intruder cannot quietly remove them.
Related terms
- auditd — The Linux audit daemon, which records kernel events such as system calls and file changes according to audit rules.
- augenrules — The command that merges the audit rule files in /etc/audit/rules.d into one file and loads them into the kernel.
- /etc/shadow — The root-only file that stores each local account's password hash and password aging rules, kept apart from the world-readable /etc/passwd.
- sudoers file — The configuration file, /etc/sudoers plus files in /etc/sudoers.d, that says who may run which commands as which user through sudo.
Taught in
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)