BaselineWatch
Desk

APPL-15-002063 The macOS system must disable the guest account.

DISA STIG library V1R8
All changes in this version
first version loaded CAT II

Maps to CM-5(1) via CCI-001813

Title

The macOS system must disable the guest account.

Control

Verify the macOS system is configured to disable the guest account with the following command: /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 If the result is not "true", this is a finding.

Discussion

Guest access must be disabled. Turning off guest access prevents anonymous users from accessing files.

Related controls

CCI-001813

Fix

Configure the macOS system to disable the guest account by installing the "com.apple.MCX" configuration profile.