SV-270740r1066709_rule
V-270740
SRG-OS-000392-GPOS-00172
UBTU-24-500010
CAT II
10
Configure Ubuntu 24.04 LTS 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 Ubuntu 24.04 LTS audits activities performed during nonlocal maintenance and diagnostic sessions 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-270740
False
UBTU-24-500010
Verify Ubuntu 24.04 LTS audits activities performed during nonlocal maintenance and diagnostic sessions 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
5673