AIX7-00-002129 - If Bourne / ksh shell is used, AIX must display logout messages.

Information

If a user cannot explicitly end an operating system session, the session may remain open and be exploited by an attacker; this is referred to as a zombie session. Users need to be aware of whether or not the session has been terminated.

Information resources to which users gain access via authentication include, for example, local workstations and remote services. Logoff messages can be displayed after authenticated sessions have been terminated. However, for some types of interactive sessions, including, for example, remote login, information systems typically send logoff messages as final messages prior to terminating sessions.

Solution

Create the '.logout' file if it does not exist.

Add the following two lines to '.logout' to display a logout message and sleep for '5' seconds:
echo 'You are being disconnected.'
sleep 5

Create, or modify, '.profile' to include the following line:
trap '$HOME/.logout' EXIT

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-12(1), CAT|III, CCI|CCI-002364, Rule-ID|SV-215310r958640_rule, STIG-ID|AIX7-00-002129, STIG-Legacy|SV-101595, STIG-Legacy|V-91497, Vuln-ID|V-215310

Plugin: Unix

Control ID: bd05355f5fbdd1a4dab3803d03d095a26227e571794ffc1b55c8aa6cf79325af