The macOS system must configure login window to prompt for username and password.

STIG ID: APPL-14-005052  |  SRG: SRG-OS-000104-GPOS-00051 |  Severity: medium |  CCI: CCI-000764 |  Vulnerability Id: V-259563 | 

Vulnerability Discussion

The login window must be configured to prompt all users for both a username and a password.

By default, the system displays a list of known users on the login window, which can make it easier for a malicious user to gain access to someone else's account. Requiring users to type in both their username and password mitigates the risk of unauthorized users gaining access to the information system.

Check

Verify the macOS system is configured to prompt for username and password at the login window with the following command:

/usr/bin/osascript -l JavaScript << EOS
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.loginwindow')\
.objectForKey('SHOWFULLNAME').js
EOS

If the result is not "true", this is a finding.

Fix

Configure the macOS system to prompt for username and password at the logon window by installing the "com.apple.loginwindow" configuration profile.