SLES-12-010331 - The SUSE operating system must automatically expire temporary accounts within 72 hours.

Information

Temporary accounts are privileged or nonprivileged accounts that are established during pressing circumstances, such as new software or hardware configuration or an incident response, where the need for prompt account activation requires bypassing normal account authorization procedures. If any inactive temporary accounts are left enabled on the system and are not either manually removed or automatically expired within 72 hours, the security posture of the system will be degraded and exposed to exploitation by unauthorized users or insider threat actors.

Temporary accounts are different from emergency accounts. Emergency accounts, also known as 'last resort' or 'break glass' accounts, are local logon accounts enabled on the system for emergency use by authorized system administrators to manage a system when standard logon methods are failing or not available. Emergency accounts are not subject to manual removal or scheduled expiration requirements.

The automatic expiration of temporary accounts may be extended as needed by the circumstances but it must not be extended indefinitely. A documented permanent account should be established for privileged users who need long-term maintenance accounts.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Configure the operating system to expire temporary accounts after 72 hours with the following command:

> sudo chage -E $(date -d +3days +%Y-%m-%d) <temporary_account_name>

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-2(2), CAT|II, CCI|CCI-001682, Rule-ID|SV-256980r958508_rule, STIG-ID|SLES-12-010331, Vuln-ID|V-256980

Plugin: Unix

Control ID: 084537fda8fe12a3276c3af234fd40892414529e014c4424a03755c2b1f623a4