SV-275734r1148252_rule
V-275734
SRG-OS-000392-GPOS-00172
RIIM-OS-654235
CAT II
10
Configure Ubuntu OS to audit activities performed during nonlocal maintenance and diagnostic sessions.
Add or modify the following line 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
Note: The "-k <keyname>" at the end of the line gives the rule a unique meaning to help during an audit investigation. The <keyname> does not need to match the example above.
Verify Ubuntu OS audits activities performed during nonlocal maintenance and diagnostic sessions by using 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" value is arbitrary and can be different from the example output above.
V-275734
False
RIIM-OS-654235
Verify Ubuntu OS audits activities performed during nonlocal maintenance and diagnostic sessions by using 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" value is arbitrary and can be different from the example output above.
M
5706