Use it when configuring, checking or troubleshooting auditd in Linux Security.
auditd
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.
syscall/event → audit rule → audit.log → SIEM
Context & applicabilityCommon mistakes · platform/version boundaries
An audit event shows the kernel/userspace audit pipeline recorded selected data, but it does not show complete coverage, malicious intent or causation alone.
Suspicious evidence: rules absent, watch path replaced, backlog loss, disk-full action weak, ausearch range/time wrong, event records split, immutable mode assumptions or forwarded data missing.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
security-relevant syscall/user/LSM action → kernel audit rule/event → netlink backlog → auditd processing → disk/forwarding/rotation → multi-record correlation → conclusion
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
auditctl -l— loaded rulesauditctl -s— status (enabled, lost)ausearch -k <key> -ts today— events by key
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
An audit event shows the kernel/userspace audit pipeline recorded selected data, but it does not show complete coverage, malicious intent or causation alone.
In depth
auditd is the Linux audit daemon that records kernel audit events according to rules: file access, system calls, command execution, authentication and configuration changes. It provides detailed, tamper-evident evidence for security monitoring and compliance.
# /etc/audit/rules.d/50-security.rules
-w /etc/passwd -p wa -k identity
-w /etc/shadow -p wa -k identity
-w /etc/sudoers -p wa -k privilege
-w /etc/ssh/sshd_config -p wa -k sshd
-a always,exit -F arch=b64 -S execve -F euid=0 -F auid>=1000 -F auid!=unset -k root_cmd
-e 2
augenrules --load
ausearch -k identity -i
aureport -x --summary
-e 2 makes the configuration immutable until reboot, so attackers cannot quietly disable auditing. Forward audit logs centrally (audisp plugins, Elastic Agent, Wazuh).
ReferenceConfiguration & state1 section · depth on demand
Example rules
-w /etc/passwd -p wa -k identity
-w /etc/sudoers -p wa -k privilege
-a always,exit -F arch=b64 -S execve -F euid=0 -k root-commands
-w /var/log/ -p wa -k logs
Documented example, not captured output. Put rules in /etc/audit/rules.d/, load with augenrules --load, search with ausearch -k identity and report with aureport. Forward to a SIEM; too many rules (all execve) create large volumes.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Security → auditd. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/security/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Linux Security → auditd proof map
Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → auditd.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope | Exact host, role, build/kernel, identity, workload and expected control | Does not prove policy receipt or effective runtime state |
| Effective state | Resultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controls | Configuration presence does not prove enforcement |
| Runtime evidence | Correlated events/audit, process/token/credential, packet/syscall and workload result | One event, clean status or allow/deny does not prove complete security |
| Closure | Original allowed/denied workload works, unsafe state is removed and recovery/regression pass | Commit, restart, block or compliance result alone is not closure |