SV-217247r603262_rule
V-217247
SRG-OS-000037-GPOS-00015
SLES-12-020660
CAT II
10
Configure the SUSE operating system to generate an audit record for any all modifications to the "lastlog" file occur.
Add or update the following rule to "/etc/audit/rules.d/audit.rules":
-w /var/log/lastlog -p wa -k logins
The audit daemon must be restarted for the changes to take effect.
# sudo systemctl restart auditd.service
Verify the SUSE operating system generates an audit record when all modifications to the "lastlog" file occur.
Check that the following is being audited by performing the following command to check the file system rules in "/etc/audit/audit.rules":
# sudo grep -i 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-217247
False
SLES-12-020660
Verify the SUSE operating system generates an audit record when all modifications to the "lastlog" file occur.
Check that the following is being audited by performing the following command to check the file system rules in "/etc/audit/audit.rules":
# sudo grep -i 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
4033