SV-100393r1_rule
V-89743
SRG-OS-000239-GPOS-00089
VRAU-SL-000875
CAT II
10
Configure append auditing of the "passwd", "shadow", "group", and "gshadow" files run "dodscript" with the following command as "root":
# /etc/dodscript.sh
OR
Configure auditing of the "passwd", "shadow", "group", and "gshadow" files. Add the following to the audit.rules file:
-w /etc/passwd -p w -k passwd
-w /etc/shadow -p w -k shadow
-w /etc/group -p w -k group
-w /etc/gshadow -p w -k gshadow
Restart the auditd service:
# service auditd restart
Determine if /etc/passwd, /etc/shadow, /etc/group, and /etc/gshadow are audited for writing.
# auditctl -l | egrep '(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow)' | grep perm=w
If any of these are not listed with a permissions filter of at least "w", this is a finding.
V-89743
False
VRAU-SL-000875
Determine if /etc/passwd, /etc/shadow, /etc/group, and /etc/gshadow are audited for writing.
# auditctl -l | egrep '(/etc/passwd|/etc/shadow|/etc/group|/etc/gshadow)' | grep perm=w
If any of these are not listed with a permissions filter of at least "w", this is a finding.
M
3459