The Oracle Linux operating system must disable account identifiers (individuals, groups, roles, and devices) if the password expires.

STIG ID: OL07-00-010310  |  SRG: SRG-OS-000118-GPOS-00060 |  Severity: medium |  CCI: CCI-000795 |  Vulnerability Id: V-221689

Vulnerability Discussion

Inactive identifiers pose a risk to systems and applications because attackers may exploit an inactive identifier and potentially obtain undetected access to the system. Owners of inactive accounts will not notice if unauthorized access to their user account has been obtained.

Operating systems need to track periods of inactivity and disable application identifiers after 35 days of inactivity.

Check

If passwords are not being used for authentication, this is Not Applicable.

Verify the operating system disables account identifiers (individuals, groups, roles, and devices) after the password expires with the following command:

# grep -i inactive /etc/default/useradd
INACTIVE=35

If "INACTIVE" is set to "-1", a value greater than "35", is commented out, or is not defined, this is a finding.

Fix

Configure the operating system to disable account identifiers (individuals, groups, roles, and devices) 35 days after the password expires.

Add the following line to "/etc/default/useradd" (or modify the line to have the required value):

INACTIVE=35
DoD recommendation is 35 days, but a lower value is acceptable. The value "-1" will disable this feature, and "0" will disable the account immediately after the password expires.