mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
ChallengeResponseAuthentication not present in macOS Monterey #260
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub.
Summary
ChallengeResponseAuthentication does not exit in /etc/ssh/ssh_config, the fix and check should verify for presence
Steps to reproduce
cat /etc/ssh/ssh_config
Operating System version
macOS Monterey
version 12.2 (21D49)
What is the current bug behavior?
The guidance generation adds the rule auth_ssh_password_authentication_disable even after manually changing PasswordAuthentication from yes to no. I believe it to be due to ChallengeResponseAuthentication not being in the file.
Extra information: ssh not currently running
What is the expected correct behavior?
The rule should not be added when generating guidance
Relevant logs and/or screenshots
Possible fixes
I think the problem is here
/usr/bin/grep -Ec '^(PasswordAuthentication\s+no|ChallengeResponseAuthentication\s+no)' /etc/ssh/sshd_config
@robertgendler commented on GitHub:
The rule works as expected as it only configures PasswordAuthentication and ChallengeResponseAuthentication in sshd_config and not in ssh_config.