{"description": "The pam_cracklib module's <tt>ocredit=</tt> parameter controls requirements\nfor usage of special (or ``other'') characters in a password. When set to a\nnegative number, any password will be required to contain that many special\ncharacters. When set to a positive number, pam_cracklib will grant +1\nadditional length credit for each special character.\nMake sure the <tt>ocredit</tt> parameter for the pam_cracklib module is\nset to less than or equal to <tt><sub idref=\"var_password_pam_ocredit\" /></tt>. For example, <tt>ocredit=<sub idref=\"var_password_pam_ocredit\" /></tt>.", "rationale": "Requiring a minimum number of special characters makes password guessing\nattacks more difficult by ensuring a larger search space.", "severity": "medium", "references": {"nist": ["IA-5(a)", "IA-5(v)"], "pcidss": ["Req-8.2.3"], "srg": ["SRG-OS-000266-GPOS-00101"], "anssi": ["R31"]}, "control_references": {"anssi": ["R31"]}, "components": [], "identifiers": {}, "ocil_clause": "ocredit is not found or not set to the required value", "ocil": "To check how many special characters are required in a password, run the\nfollowing command:\n<pre># grep pam_cracklib.so /etc/pam.d/common-password\npassword requisite pam_cracklib.so ocredit=<sub idref=\"var_password_pam_ocredit\" /></pre>\nThe <tt>ocredit</tt> parameter (as a negative number) will indicate how\nmany special characters are required.\nThe profile requires at least <sub idref=\"var_password_pam_ocredit\" /> special character in a password.\nThis would appear as <tt>ocredit=-<sub idref=\"var_password_pam_ocredit\" /></tt>.", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Set Password Strength Minimum Special Characters", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-pam/password_quality/password_quality_pamcracklib/cracklib_accounts_password_pam_ocredit/rule.yml", "template": {"name": "pam_options", "vars": {"path": "/etc/pam.d/common-password", "type": "password", "control_flag": "requisite", "module": "pam_cracklib.so", "arguments": [{"variable": "ocredit", "operation": "less than or equal"}]}, "backends": {}}}