SV-252972r958368_rule
V-252972
SRG-OS-000004-GPOS-00004
TOSS-04-030000
CAT II
10
Configure TOSS to generate audit records for all account creations, modifications, disabling, and termination events that affect "/etc/shadow."
Add or update the following file system rule to "/etc/audit/rules.d/audit.rules":
-w /etc/shadow -p wa -k identity
The audit daemon must be restarted for the changes to take effect.
Note: The "-k" allows for specifying an arbitrary identifier. The string following "-k" does not need to match the example output above.
Verify TOSS generates audit records for all account creations, modifications, disabling, and termination events that affect "/etc/shadow."
Check the auditing rules in "/etc/audit/audit.rules" with the following command:
$ sudo grep /etc/shadow /etc/audit/audit.rules
-w /etc/shadow -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. The string following "-k" does not need to match the example output above.
V-252972
False
TOSS-04-030000
Verify TOSS generates audit records for all account creations, modifications, disabling, and termination events that affect "/etc/shadow."
Check the auditing rules in "/etc/audit/audit.rules" with the following command:
$ sudo grep /etc/shadow /etc/audit/audit.rules
-w /etc/shadow -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. The string following "-k" does not need to match the example output above.
M
5469