Information
The guest account allows users access to the system without having to create an account or password. Guest users are unable to make setting changes cannot remotely login to the system. All files, caches, and passwords created by the guest user are deleted upon logging out.
Rationale:
Disabling the guest account mitigates the risk of an untrusted user doing basic reconnaissance and possibly using privilege escalation attacks to take control of the system.
Impact:
A guest user can use that access to find out additional information about the system and might be able to use privilege escalation vulnerabilities to establish greater access.
Solution
Perform the following to disable guest account availability:
Graphical Method:
Open System Preferences
Select Users & Groups
Select Guest User
Uncheck Allow guests to log in to this computer
Terminal Method:
Run the following command to disable the guest account:
$ sudo /usr/bin/defaults write /Library/Preferences/com.apple.loginwindow GuestEnabled -bool false
Profile Method:
Create or edit a configuration profile with the PayLoadType of com.apple.loginwindow
Add the key DisableGuestAccount
Set the key to </true>
Add the key EnableGuestAccount
Set the key to </false>
Additional Information:
By default, the guest account is enabled for access to sharing services but is not allowed to log in to the computer.
The guest account does not need a password when it is enabled to log in to the computer.
Item Details
Category: ACCESS CONTROL, AUDIT AND ACCOUNTABILITY, IDENTIFICATION AND AUTHENTICATION
References: 800-53|AC-1, 800-53|AC-2, 800-53|AC-2(1), 800-53|AC-3, 800-53|AC-6, 800-53|AC-6(1), 800-53|AC-6(7), 800-53|AU-9(4), 800-53|IA-5(1), CSCv7|4.4
Control ID: 125f983f522509820b6e0d82c8e4ddb26f8b7afe5605edebbd35079071d597d8