SV-268545r1034575_rule
V-268545
SRG-OS-000105-GPOS-00052
APPL-15-003051
CAT II
10
Configure the macOS system to enforce multifactor authentication for the su command with the following commands:
/bin/cat > /etc/pam.d/su << SU_END
# su: auth account password session
auth sufficient pam_smartcard.so
auth required pam_rootok.so
auth required pam_group.so no_warn group=admin,wheel ruser root_only fail_safe
account required pam_permit.so
account required pam_opendirectory.so no_check_shell
password required pam_opendirectory.so
session required pam_launchd.so
SU_END
# Fix new file ownership and permissions
/bin/chmod 644 /etc/pam.d/su
/usr/sbin/chown root:wheel /etc/pam.d/su
Verify the macOS system is configured to enforce multifactor authentication for the su command with the following command:
/usr/bin/grep -Ec '^(auth\s+sufficient\s+pam_smartcard.so|auth\s+required\s+pam_rootok.so)' /etc/pam.d/su
If the result is not "2", this is a finding.
V-268545
False
APPL-15-003051
Verify the macOS system is configured to enforce multifactor authentication for the su command with the following command:
/usr/bin/grep -Ec '^(auth\s+sufficient\s+pam_smartcard.so|auth\s+required\s+pam_rootok.so)' /etc/pam.d/su
If the result is not "2", this is a finding.
M
5661