mediumauditverified ✓✓rollback-safe
Audit access to /var/run/utmp (Ubuntu)
audit-watch-utmp · UBUNTU ≥ 22 · 1 impl
Description
Modifications to /var/run/utmp must generate an audit record so that current login sessions can be traced to an individual.
Rationale
Auditing this path supports detection of unauthorized changes and forensic reconstruction of events.
Check → Remediate
Checkaudit_rule_exists
- rule:
- -w /var/run/utmp -p wa -k logins
Remediateaudit_rule_set
- rule:
- -w /var/run/utmp -p wa -k logins
- persist_file:
- /etc/audit/rules.d/50-watch-utmp.rules
Framework references
STIG
V-270811 / UBTU-24-900600V-260643 / UBTU-22-654205
NIST 800-53
AU-2AU-12
Live verification
ubuntu22:checkubuntu24:checkubuntu24:remediate
#audit#auditd#watch