APPL-12-000052 - The macOS system must be configured with the SSH daemon ClientAliveCountMax option set to 0.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

SSH should be configured with an Active Client Alive Maximum Count of 0. Terminating an idle session within a short time period reduces the window of opportunity for unauthorized personnel to take control of a management session enabled on the console or console port that has been left unattended. In addition, quickly terminating an idle session or an incomplete logon attempt will also free up resources committed by the managed network element.

Solution

To ensure that the SSH idle timeout occurs precisely when the 'ClientAliveCountMax' is set, run the following command:

/usr/bin/sudo /usr/bin/sed -i.bak 's/.*ClientAliveCountMax.*/ClientAliveCountMax 0/' /etc/ssh/sshd_config

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_12_V1R3_STIG.zip

Item Details

References: CAT|II, CCI|CCI-001133, Rule-ID|SV-252457r816185_rule, STIG-ID|APPL-12-000052, Vuln-ID|V-252457

Plugin: Unix

Control ID: 3c02e7a11d88020d5e9c87da37a737d8cf08ecf280624e7344acf27f737769ab