id: pwpolicy_minimum_length_enforce title: Require a Minimum Password Length of $ODV Characters discussion: | The operating system _MUST_ be configured to require a minimum of $ODV characters be used when a password is created. This rule enforces password complexity by requiring users to set passwords that are less vulnerable to malicious users. NOTE: To comply with Executive Order 14028, "Improving the Nation's Cybersecurity", OMB M-22-09, "Moving the U.S. Government Toward Zero Trust Cybersecurity Principles", and NIST SP-800-63b, "Digital Identity Guidelines: Authentication and Lifecycle Management" federal, military, and intelligence communities must adopt the following configuration settings. Password policies must not require the use of complexity policies such as upper characters, lower characters, or special characters. Password policies must also not require the use of regular rotation. Password policies should define a minimum length. Multifactor authentication should be used where ever possible. references: nist: cce: macos_27: - CCE-97120-0 macos_26: - CCE-95346-3 macos_15: - CCE-94340-7 macos_14: - CCE-92936-4 ios_27: - CCE-97408-9 ios_26: - CCE-96722-4 ios_18: - CCE-94477-7 ios_17: - CCE-93460-4 visionos_27: - CCE-97475-8 visionos_26: - CCE-96719-0 800-53r5: - IA-5(1) 800-171r3: - 03.05.07 disa: cci: - CCI-000205 - CCI-004066 srg: - SRG-OS-000078-GPOS-00046 disa_stig: macos_27: - APPL-27-003010 macos_26: - APPL-26-003010 macos_15: - APPL-15-003010 macos_14: - APPL-14-003010 ios_27: - AIOS-27-006000 ios_26: - AIOS-26-006500 ios_18: - AIOS-18-006500 ios_17: - AIOS-17-006500 - AIOS-17-706500 visionos_26: - AVOS-26-006500 cmmc: - IA.L2-3.5.7 - IA.L2-3.5.8 - IA.L2-3.5.9 bzk: bio: - 5.17.03 - 5.17 hhs: hicp: - 2.L.A - 3.L.C cis: benchmark: macos_26: - 5.2.2 (level 1) macos_15: - 5.2.2 (level 1) macos_14: - 5.2.2 (level 1) ios_27: - 2.4.3 (level 1 - End-User Owned Devices) - 3.4.3 (level 1 - Institutionally-Owned Devices) ios_26: - 2.4.3 (level 1 - End-User Owned Devices) - 3.4.3 (level 1 - Institutionally-Owned Devices) ios_18: - 2.4.3 (level 1 - End-User Owned Devices) - 3.4.3 (level 1 - Institutionally-Owned Devices) ios_17: - 2.4.3 (level 1 - End-User Owned Devices) - 3.4.3 (level 1 - Institutionally-Owned Devices) macos_27: - 5.2.2 (level 1) controls_v8: - 5.2 bsi: indigo: ios_26: - ANNEX D (Section 5.9 - Device authentication) - ANNEX K ios_18: - ANNEX D (Section 5.9 - Device authentication) - ANNEX K ios_17: - ANNEX D (Section 5.9 - Device authentication) - ANNEX K platforms: macOS: '27.0': benchmarks: - name: cis_lvl1 - name: cis_lvl2 - name: disa_stig severity: medium - name: nlmapgov_plus - name: nlmapgov_base '26.0': benchmarks: - name: cis_lvl1 - name: cis_lvl2 - name: disa_stig severity: medium - name: nlmapgov_plus - name: nlmapgov_base '15.0': benchmarks: - name: cis_lvl1 - name: cis_lvl2 - name: disa_stig severity: medium - name: nlmapgov_plus - name: nlmapgov_base enforcement_info: check: shell: '/usr/bin/pwpolicy -getaccountpolicies 2>/dev/null | tail +2 | grep -oE "policyAttributePassword matches ''.\{[0-9]+," | awk -F''[{,]'' -v ODV=$ODV ''{if ($2 > max) max=$2} END {print (max >= ODV) ? "pass" : "fail"}''' result: string: pass introduced: '10.7' iOS: '27.0': supervised: false benchmarks: - name: cis_lvl1_byod - name: cis_lvl2_byod - name: cis_lvl1_enterprise - name: cis_lvl2_enterprise - name: ios_stig severity: medium '26.0': supervised: false benchmarks: - name: cis_lvl1_byod - name: cis_lvl2_byod - name: cis_lvl1_enterprise - name: cis_lvl2_enterprise - name: ios_stig severity: medium - name: indigo_base severity: medium - name: indigo_high severity: medium - name: nlmapgov_plus '18.0': supervised: false benchmarks: - name: cis_lvl1_byod - name: cis_lvl2_byod - name: cis_lvl1_enterprise - name: cis_lvl2_enterprise - name: ios_stig severity: medium - name: indigo_base severity: medium - name: indigo_high severity: medium '17.0': supervised: false benchmarks: - name: cis_lvl1_byod - name: cis_lvl2_byod - name: cis_lvl1_enterprise - name: cis_lvl2_enterprise - name: ios_stig severity: medium - name: ios_stig_byoad severity: medium - name: indigo_base severity: medium - name: indigo_high severity: medium introduced: '4.0' visionOS: '27.0': supervised: false '26.0': supervised: false benchmarks: - name: visionos_stig severity: medium introduced: '2.0' odv: hint: datatype: number description: Minimum password length. e.g. 15 validation: min: 1 recommended: 6 cis_lvl1: 15 cis_lvl2: 15 nlmapgov_base: 15 nlmapgov_plus: 15 cis_lvl1_byod: 6 cis_lvl2_byod: 6 cis_lvl1_enterprise: 6 cis_lvl2_enterprise: 6 ios_stig: 6 ios_stig_byoad: 6 indigo_base: 8 indigo_high: 8 visionos_stig: 6 disa_stig: 14 tags: - 800-171 - 800-53r5_low - 800-53r5_moderate - 800-53r5_high - cisv8 - cnssi-1253_low - cnssi-1253_high - cmmc_lvl2 - cnssi-1253_moderate - hicp_lp - cmmc_lvl3 mobileconfig_info: - PayloadType: com.apple.mobiledevice.passwordpolicy PayloadContent: - minLength: $ODV ddm_info: declarationtype: com.apple.configuration.passcode.settings ddm_key: MinimumLength ddm_value: $ODV