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