AOSX-10-000722 - The SSH daemon LoginGraceTime must be set correctly.

Information

SSH should be configured to log users out after a 15 minute interval of inactivity and to only wait 30 seconds before timing out login 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 login attempt will also free up resources committed by the managed network element.

Solution

In order to make sure that LoginGraceTime is configured correctly, run the following command:

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

See Also

http://iasecontent.disa.mil/stigs/zip/U_Apple_OS_X_10-10_Workstation_V1R5_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-12, CAT|II, CCI|CCI-001133, CSCv6|16.4, Rule-ID|SV-74117r1_rule, STIG-ID|AOSX-10-000722, Vuln-ID|V-59687

Plugin: Unix

Control ID: dff071893f0e7a4e235208ea090ee33b88171e3286f0e6ca152af07b7e3b4f68