1. Home
  2. Security Hardening
  3. DISA STIG Apple MacOS 11 V1R5
  4. APPL-11-000056 – The macOS system must implement an approved Key Exchange Algorithm.

APPL-11-000056 – The macOS system must implement an approved Key Exchange Algorithm.

Details

Unapproved mechanisms for authentication to the cryptographic module are not verified, and therefore cannot be relied upon to provide confidentiality or integrity, resulting in the compromise of DoD data.

Operating systems using encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.

The implementation of OpenSSH that is included with macOS does not utilize a FIPS 140-2 validated cryptographic module. While the listed Key Exchange Algorithms are FIPS 140-2 approved, the module implementing them has not been validated.

By specifying a Key Exchange Algorithm list with the order of hashes being in a ‘strongest to weakest’ orientation, the system will automatically attempt to use the strongest Key Exchange Algorithm for securing SSH connections.

Satisfies: SRG-OS-000033-GPOS-00014, SRG-OS-000120-GPOS-00061, SRG-OS-000125-GPOS-00065, SRG-OS-000250-GPOS-00093, SRG-OS-000393-GPOS-00173, SRG-OS-000394-GPOS-00174

Solution

Configure SSH to use a secure Key Exchange Algorithm.

To ensure that ‘KexAlgorithms’ set correctly, run the following command:

/usr/bin/sudo /usr/bin/grep -q ‘^KexAlgorithms’ /etc/ssh/sshd_config && /usr/bin/sudo /usr/bin/sed -i.bak ‘s/^KexAlgorithms.*/KexAlgorithms diffie-hellman-group-exchange-sha256/’ /etc/ssh/sshd_config || /usr/bin/sudo /usr/bin/sed -i.bak ‘/.*Ciphers and keying.*/a’$’
”KexAlgorithms diffie-hellman-group-exchange-sha256’$’
‘ /etc/ssh/sshd_config

The SSH service must be restarted for changes to take effect.

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control, Identification and Authentication, Maintenance.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles