AOSX-15-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_OS_X_10-15_V1R3_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-12, CAT|II, CCI|CCI-001133, CSCv6|16.4, Rule-ID|SV-225140r610901_rule, STIG-ID|AOSX-15-000052, STIG-Legacy|SV-111659, STIG-Legacy|V-102697, Vuln-ID|V-225140

Plugin: Unix

Control ID: e0c2b46d3d69ce7a183508e31e59206e99d41ec6343674e50ab6dd97fde712cc