id: os_external_storage_access_defined
title: Access to External Storage Must Be Defined
discussion: |-
  Access to external storage _MUST_ be managed. 
  
  NOTE: Apple's built in method using declative device management method only allows you to set external storage manament to Allowed, ReadOnly, and Disallowed.
check: |
  /usr/bin/plutil -convert json /var/db/ManagedConfigurationFiles/DiskManagement/DiskManagement_Settings.plist -o - | /usr/bin/jq --raw-output '.Restrictions.ExternalStorage'
result:
  string: $ODV
fix: |
  This is implemented by Declarative Device Management (DDM).
references:
  cce:
    - CCE-94188-0
  cci:
    - N/A
  800-53r5:
    - MP-7
  srg:
    - N/A
  disa_stig:
    - N/A
  800-171r3:
    - 03.08.07
  cmmc:
    - MP.L2-3.8.7
    - MP.L2-3.8.8
  bio:
    - 8.12   
odv:
  hint: Allowed, ReadOnly, or Disallowed
  recommended: Allowed     
  nlmapgov_plus: ReadOnly
macOS:
  - '15.0'
tags:
  - cmmc_lvl2
  - 800-53r5_low
  - 800-53r5_moderate
  - 800-53r5_high  
  - cnssi-1253_moderate
  - cnssi-1253_low
  - cnssi-1253_high
  - nlmapgov_plus
mobileconfig: false
mobileconfig_info:
ddm_info:
  declarationtype: com.apple.configuration.diskmanagement.settings
  ddm_key: ExternalStorage
  ddm_value: $ODV