SV-99007r1_rule
V-88357
SRG-OS-000004-GPOS-00004
VROM-SL-000015
CAT II
10
Configure execute auditing of the "useradd" and "groupadd" executables run the DoD.script 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-88357
False
VROM-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
3461