SV-248746r1015070_rule
V-248746
SRG-OS-000004-GPOS-00004
OL08-00-030172
CAT II
10
Configure OL 8 to generate audit records for all account creations, modifications, disabling, and termination events that affect "/etc/sudoers.d/".
Add or update the following file system rule to "/etc/audit/rules.d/audit.rules":
-w /etc/sudoers.d/ -p wa -k identity
The audit daemon must be restarted for the changes to take effect.
$ sudo service auditd restart
Verify OL 8 generates audit records for all account creations, modifications, disabling, and termination events that affect "/etc/sudoers.d/".
Check the auditing rules in "/etc/audit/audit.rules" with the following command:
$ sudo grep /etc/sudoers.d/ /etc/audit/audit.rules
-w /etc/sudoers.d/ -p wa -k identity
If the command does not return a line, or the line is 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-248746
False
OL08-00-030172
Verify OL 8 generates audit records for all account creations, modifications, disabling, and termination events that affect "/etc/sudoers.d/".
Check the auditing rules in "/etc/audit/audit.rules" with the following command:
$ sudo grep /etc/sudoers.d/ /etc/audit/audit.rules
-w /etc/sudoers.d/ -p wa -k identity
If the command does not return a line, or the line is 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
5416