RHEL-08-020070 - RHEL 8 must automatically lock command line user sessions after 15 minutes of inactivity.

Information

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

Terminating network connections associated with communications sessions includes, for example, de-allocating associated TCP/IP address/port pairs at the operating system level and de-allocating 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 inactive session and releases the resources associated with that session.

Satisfies: SRG-OS-000029-GPOS-00010, SRG-OS-000031-GPOS-00012

Solution

Configure the operating system to enforce session lock after a period of 15 minutes of inactivity by adding the following line to the '/etc/tmux.conf' global configuration file:

set -g lock-after-time 900

See Also

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

Item Details

References: CAT|II, CCI|CCI-000057, Rule-ID|SV-230353r599732_rule, STIG-ID|RHEL-08-020070, Vuln-ID|V-230353

Plugin: Unix

Control ID: ac8edb515194aebfc70586cb1ac91dfb87577fcb7d6aa414f102bf46868affae