mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
os_sshd_key_exchange_algorithm_configure detection issue #211
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 @K1jaff on GitHub.
Originally assigned to: @brodjieski on GitHub.
Summary
os_sshd_key_exchange_algorithm_configure detection is looking for the value "diffie-hellman-group-exchange-sha256" on the line starting with kexalgorithms, the current detection command fails to find the value even if present.
result_value=$(/usr/sbin/sshd -T | /usr/bin/grep -ci "^kexalgorithms diffie-hellman-group-exchange-sha256")expected result {'integer': 1}
result_value {'integer': 0}
Steps to reproduce
Run
/usr/sbin/sshd -Tvisually confirm diffie-hellman-group-exchange-sha256 is present on line starting with kexalgorithmsRun
/usr/sbin/sshd -T | /usr/bin/grep -ci "^kexalgorithms diffie-hellman-group-exchange-sha256"See command returns 0
Operating System version
Operating System Version:
13.0.1
Operating System Build:
22A400
Intel or Apple Silicon
Apple Silicon Mac
What is the current bug behavior?
Lookup for "diffie-hellman-group-exchange-sha256" returns 0 even if present
What is the expected correct behavior?
Lookup for "diffie-hellman-group-exchange-sha256" returns 1 if present
Relevant logs and/or screenshots
Possible fixes
)
@brodjieski commented on GitHub:
This check is for the STIG only, and the STIG specifically calls for the configuration of the diffie-hellman-group-exchange-sha256 key exchange algorithm. If any other algorithm is found, it would be a finding.
In testing, the check, as it stands, works as expected. The issue could not be reproduced.