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

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_V2R9_STIG.zip

Item Details

Category: ACCESS CONTROL

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

Plugin: Unix

Control ID: 8df40b43ead9a92033fed5807b0f8c9caec86af3e751f66dd2afe29d139eb7ba