SV-269470r1050353_rule
V-269470
SRG-OS-000037-GPOS-00015
ALMA-09-047540
CAT II
10
Configure AlmaLinux OS 9 to generate audit records for all account creations, modifications, disabling, and termination events that affect "/var/log/lastlog".
Add the following to the "/etc/audit/rules.d/audit.rules" file:
-w /var/log/lastlog -p wa -k logins
Merge the rules into /etc/audit/audit.rules:
$ augenrules --load
Reboot the server so the changes to take effect.
Verify AlmaLinux OS 9 generates audit records for all account creations, modifications, disabling, and termination events that affect "/var/log/lastlog" with the following command:
$ grep /var/log/lastlog /etc/audit/audit.rules
-w /var/log/lastlog -p wa -k logins
If the command does not return a line, or the line is commented out, this is a finding.
V-269470
False
ALMA-09-047540
Verify AlmaLinux OS 9 generates audit records for all account creations, modifications, disabling, and termination events that affect "/var/log/lastlog" with the following command:
$ grep /var/log/lastlog /etc/audit/audit.rules
-w /var/log/lastlog -p wa -k logins
If the command does not return a line, or the line is commented out, this is a finding.
M
5664