OL07-00-040340 - The Oracle Linux operating system must be configured so that all network connections associated with SSH traffic terminate after becoming unresponsive.

Information

Terminating an unresponsive SSH 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 SSH session will also free up resources committed by the managed network element.

Terminating network connections associated with communications sessions includes, for example, deallocating associated TCP/IP address/port pairs at the operating system level and deallocating networking assignments at the application level if multiple application sessions are using a single operating system-level network connection. This does not mean the operating system terminates all sessions or network access; it only ends the unresponsive session and releases the resources associated with that session.

Satisfies: SRG-OS-000163-GPOS-00072, SRG-OS-000279-GPOS-00109

Solution

Note: This setting must be applied in conjunction with OL07-00-040320 to function correctly.

Configure the SSH server to terminate a user session automatically after the SSH client has become unresponsive.

Add the following line (or modify the line to have the required value) to the '/etc/ssh/sshd_config' file (this file may be named differently or be in a different location if using a version of SSH that is provided by a third-party vendor):

ClientAliveCountMax 0

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

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-10, CAT|II, CCI|CCI-001133, Rule-ID|SV-221851r917860_rule, STIG-ID|OL07-00-040340, STIG-Legacy|SV-108545, STIG-Legacy|V-99441, Vuln-ID|V-221851

Plugin: Unix

Control ID: d746aa011e2da8a2a6c2146e978da25e5c49dc1011f194eab981473e5cee880c