SV-268546r1034578_rule
V-268546
SRG-OS-000105-GPOS-00052
APPL-15-003052
CAT II
10
Configure the macOS system to enforce multifactor authentication for privilege escalation through the sudo command with the following commands:
/bin/cat > /etc/pam.d/sudo << SUDO_END
# sudo: auth account password session
auth sufficient pam_smartcard.so
auth required pam_opendirectory.so
auth required pam_deny.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so
SUDO_END
/bin/chmod 444 /etc/pam.d/sudo
/usr/sbin/chown root:wheel /etc/pam.d/sudo
Verify the macOS system is configured to enforce multifactor authentication for privilege escalation through the sudo command with the following command:
/usr/bin/grep -Ec '^(auth\s+sufficient\s+pam_smartcard.so|auth\s+required\s+pam_deny.so)' /etc/pam.d/sudo
If the result is not "2", this is a finding.
V-268546
False
APPL-15-003052
Verify the macOS system is configured to enforce multifactor authentication for privilege escalation through the sudo command with the following command:
/usr/bin/grep -Ec '^(auth\s+sufficient\s+pam_smartcard.so|auth\s+required\s+pam_deny.so)' /etc/pam.d/sudo
If the result is not "2", this is a finding.
M
5661