SV-100117r1_rule
V-89467
SRG-OS-000004-GPOS-00004
VRAU-SL-000015
CAT II
10
Configure execute auditing of the useradd and groupadd executables. Run the dodscript with the following command as root:
# /etc/dodscript.sh
OR
Configure execute auditing of the useradd and groupadd executables.
Add the following to /etc/audit/audit.rules:
-w /usr/sbin/useradd -p x -k useradd
-w /usr/sbin/groupadd -p x -k groupadd
Restart the auditd service:
# service auditd restart
Determine if execution of the useradd and groupadd executable are audited.
# auditctl -l | egrep '(useradd|groupadd)'
If either useradd or groupadd are not listed with a permissions filter of at least "x", this is a finding.
Expected result:
LIST_RULES: exit,always watch=/usr/sbin/useradd perm=x key=useradd
LIST_RULES: exit,always watch=/usr/sbin/groupadd perm=x key=groupadd
V-89467
False
VRAU-SL-000015
Determine if execution of the useradd and groupadd executable are audited.
# auditctl -l | egrep '(useradd|groupadd)'
If either useradd or groupadd are not listed with a permissions filter of at least "x", this is a finding.
Expected result:
LIST_RULES: exit,always watch=/usr/sbin/useradd perm=x key=useradd
LIST_RULES: exit,always watch=/usr/sbin/groupadd perm=x key=groupadd
M
3459