SV-238309r654102_rule
V-238309
SRG-OS-000392-GPOS-00172
UBTU-20-010244
CAT II
10
Configure the Ubuntu operating system to audit activities performed during nonlocal maintenance and diagnostic sessions.
Add or update the following rules in the "/etc/audit/rules.d/stig.rules" file:
-w /var/log/sudo.log -p wa -k maintenance
To reload the rules file, issue the following command:
$ sudo augenrules --load
Verify the Ubuntu operating system audits activities performed during nonlocal maintenance and diagnostic sessions.
Check the currently configured audit rules with the following command:
$ sudo auditctl -l | grep sudo.log
-w /var/log/sudo.log -p wa -k maintenance
If the command does not return lines that match the example or the lines are commented out, this is a finding.
Note: The "-k" allows for specifying an arbitrary identifier, and the string after it does not need to match the example output above.
V-238309
False
UBTU-20-010244
Verify the Ubuntu operating system audits activities performed during nonlocal maintenance and diagnostic sessions.
Check the currently configured audit rules with the following command:
$ sudo auditctl -l | grep sudo.log
-w /var/log/sudo.log -p wa -k maintenance
If the command does not return lines that match the example or the lines are commented out, this is a finding.
Note: The "-k" allows for specifying an arbitrary identifier, and the string after it does not need to match the example output above.
M
5318