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.