SV-261471r996820_rule
V-261471
SRG-OS-000472-GPOS-00217
SLEM-05-654240
CAT II
10
Configure SLEM 5 to generate an audit record for the "/var/log/wtmp" file.
Add or modify the following lines in the "/etc/audit/rules.d/audit.rules" file:
-w /var/log/wtmp -p wa -k login_mod
To reload the rules file, restart the audit daemon:
> sudo systemctl restart auditd.service
or issue the following command:
> sudo augenrules --load
Verify SLEM 5 generates an audit record for the "/var/log/wtmp" file with the following command:
> sudo auditctl -l | grep -w '/var/log/wtmp'
-w /var/log/wtmp -p wa -k login_mod
If the command does not return a line that matches the example, this is a finding.
Note: The "key=" value is arbitrary and can be different from the example output above.
V-261471
False
SLEM-05-654240
Verify SLEM 5 generates an audit record for the "/var/log/wtmp" file with the following command:
> sudo auditctl -l | grep -w '/var/log/wtmp'
-w /var/log/wtmp -p wa -k login_mod
If the command does not return a line that matches the example, this is a finding.
Note: The "key=" value is arbitrary and can be different from the example output above.
M
5596