system_settings_usb_restricted_mode USB Devices Must be Authorized Before Allowing
NIST macOS Security Compliance Project Sequoia Guidance, Revision 4.0 (be5491f)
All changes in this version
All changes in this version
Title
USB Devices Must be Authorized Before Allowing
Control
/usr/bin/osascript -l JavaScript << EOS
function run() {
let pref1 = ObjC.unwrap($.NSUserDefaults.alloc.initWithSuiteName('com.apple.applicationaccess')\
.objectForKey('allowUSBRestrictedMode'))
if ( pref1 == false ) {
return("false")
} else {
return("true")
}
}
EOS
Discussion
USB devices connected to a Mac _MUST_ be authorized.
[IMPORTANT]
====
This feature is removed if a smartcard is paired or smartcard attribute mapping is configured.
====
Related controls
mp-7, sc-41
Fix
This is implemented by a Configuration Profile.