AOSX-15-000053 - The macOS system must be configured with the SSH daemon LoginGraceTime set to 30 or less.

Information

SSH should be configured to log users out after a 15-minute interval of inactivity and to wait only 30 seconds before timing out logon attempts. 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 'LoginGraceTime' is configured correctly, run the following command:

/usr/bin/sudo /usr/bin/sed -i.bak 's/.*LoginGraceTime.*/LoginGraceTime 30/' /etc/ssh/sshd_config

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_OS_X_10-15_V1R8_STIG.zip

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-10, CAT|II, CCI|CCI-001133, Rule-ID|SV-225141r610901_rule, STIG-ID|AOSX-15-000053, STIG-Legacy|SV-111661, STIG-Legacy|V-102699, Vuln-ID|V-225141

Plugin: Unix

Control ID: 653ab0b49e5c8dc8e15cf8aebdd0377d522ec35931286a1f90fb0db38c449bdd