SV-209623r610285_rule
V-209623
SRG-OS-000105-GPOS-00052
AOSX-14-003020
CAT II
10
For non directory bound systems, this setting is enforced using the "Smart Card Policy" configuration profile.
Note: Before applying the "Smart Card Policy", the supplemental guidance provided with the STIG should be consulted to ensure continued access to the operating system.
The following commands must be run to disable passcode based authentication for SSHD:
/usr/bin/sudo /usr/bin/sed -i.bak 's/^[\#]*ChallengeResponseAuthentication.*/ChallengeResponseAuthentication no/' /etc/ssh/sshd_config
/usr/bin/sudo /usr/bin/sed -i.bak 's/^[\#]*PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
If the system is connected to a directory server, this is Not Applicable.
To verify that the system is configured to enforce multi-factor authentication, run the following commands:
/usr/sbin/system_profiler SPConfigurationProfileDataType | /usr/bin/grep enforceSmartCard
If the results do not show the following, this is a finding.
"enforceSmartCard=1.
Run the following command to disable password based authentication in SSHD.
/usr/bin/grep -e ^[\#]*PasswordAuthentication.* -e ^[\#]*ChallengeResponseAuthentication.* /etc/ssh/sshd_config
If this command returns null, or anything other than exactly this text, with no leading hash(#), this is a finding:
"PasswordAuthentication no
ChallengeResponseAuthentication no"
V-209623
False
AOSX-14-003020
If the system is connected to a directory server, this is Not Applicable.
To verify that the system is configured to enforce multi-factor authentication, run the following commands:
/usr/sbin/system_profiler SPConfigurationProfileDataType | /usr/bin/grep enforceSmartCard
If the results do not show the following, this is a finding.
"enforceSmartCard=1.
Run the following command to disable password based authentication in SSHD.
/usr/bin/grep -e ^[\#]*PasswordAuthentication.* -e ^[\#]*ChallengeResponseAuthentication.* /etc/ssh/sshd_config
If this command returns null, or anything other than exactly this text, with no leading hash(#), this is a finding:
"PasswordAuthentication no
ChallengeResponseAuthentication no"
M
2930