mediumauditverified ✓✓rollback-safe
Audit account modifications affecting /etc/shadow (Ubuntu)
audit-usergroup-shadow · UBUNTU ≥ 22 · 1 impl
Description
All account creation, modification, disabling, and termination events that affect /etc/shadow must generate an audit record.
Rationale
Auditing changes to /etc/shadow allows detection of unauthorized account or group changes, supporting forensic investigation.
Check → Remediate
Checkaudit_rule_exists
- rule:
- -w /etc/shadow -p wa -k usergroup_modification
Remediateaudit_rule_set
- rule:
- -w /etc/shadow -p wa -k usergroup_modification
- persist_file:
- /etc/audit/rules.d/50-usergroup-shadow.rules
Framework references
STIG
V-270686 / UBTU-24-200300V-260632 / UBTU-22-654150
NIST 800-53
AU-2AU-12
Live verification
ubuntu22:checkubuntu24:checkubuntu24:remediate
#audit#auditd#accounts#usergroup