BaselineWatch
Desk

system_settings_guest_account_disable Disable the Guest Account

NIST macOS Security Compliance Project Tahoe Guidance, Revision 3.0 (cf656e8)
All changes in this version
first version loaded System Settings

Title

Disable the Guest Account

Control

/usr/bin/osascript -l JavaScript << EOS
function run() {
let pref1 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.MCX')\
.objectForKey('DisableGuestAccount'))
let pref2 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.MCX')\
.objectForKey('EnableGuestAccount'))
if ( pref1 == true && pref2 == false ) {
return("true")
} else {
return("false")
}
}
EOS

Discussion

Guest access _MUST_ be disabled.

Turning off guest access prevents anonymous users from accessing files.

Related controls

ac-2, ac-2.9

Fix

This is implemented by a Configuration Profile.