{"description": "In <tt>/etc/libuser.conf</tt>, add or correct the following line in its <tt>[defaults]</tt>\nsection to ensure the system will use the <sub idref=\"var_password_hashing_algorithm_pam\" />\nalgorithm for password hashing:\n<pre>crypt_style = <sub idref=\"var_password_hashing_algorithm_pam\" /></pre>", "rationale": "Passwords need to be protected at all times, and encryption is the standard method for\nprotecting passwords. If passwords are not encrypted, they can be plainly read\n(i.e., clear text) and easily compromised. Passwords that are encrypted with a weak algorithm\nare no more protected than if they are kept in plain text.\n<br /><br />\nThis setting ensures user and group account administration utilities are configured to store\nonly encrypted representations of passwords. Additionally, the <tt>crypt_style</tt>\nconfiguration option in <tt>/etc/libuser.conf</tt> ensures the use of a strong hashing\nalgorithm that makes password cracking attacks more difficult.", "severity": "medium", "references": {"cis-csc": ["1", "12", "15", "16", "5"], "cjis": ["5.6.2.2"], "cobit5": ["DSS05.04", "DSS05.05", "DSS05.07", "DSS05.10", "DSS06.03", "DSS06.10"], "cui": ["3.13.11"], "isa-62443-2009": ["4.3.3.2.2", "4.3.3.5.1", "4.3.3.5.2", "4.3.3.6.1", "4.3.3.6.2", "4.3.3.6.3", "4.3.3.6.4", "4.3.3.6.5", "4.3.3.6.6", "4.3.3.6.7", "4.3.3.6.8", "4.3.3.6.9", "4.3.3.7.2", "4.3.3.7.4"], "isa-62443-2013": ["SR 1.1", "SR 1.10", "SR 1.2", "SR 1.3", "SR 1.4", "SR 1.5", "SR 1.7", "SR 1.8", "SR 1.9", "SR 2.1"], "iso27001-2013": ["A.18.1.4", "A.7.1.1", "A.9.2.1", "A.9.2.2", "A.9.2.3", "A.9.2.4", "A.9.2.6", "A.9.3.1", "A.9.4.2", "A.9.4.3"], "nist": ["IA-5(c)", "IA-5(1)(c)", "CM-6(a)"], "nist-csf": ["PR.AC-1", "PR.AC-6", "PR.AC-7"], "pcidss": ["Req-8.2.1"], "srg": ["SRG-OS-000073-GPOS-00041"], "ism": ["0418", "1055", "1402"], "pcidss4": ["8.3.2", "8.3"]}, "control_references": {"ism": ["0418", "1055", "1402"], "pcidss4": ["8.3.2", "8.3"]}, "components": [], "identifiers": {}, "ocil_clause": "crypt_style is not set to sha512", "ocil": "\nVerify that the libuser is set to encrypt password with a FIPS 140-2 approved cryptographic hashing algorithm.\n\nCheck the hashing algorithm that is being used to hash passwords with the following command:\n\n$ sudo grep -i crypt_style /etc/libuser.conf\n\ncrypt_style = <sub idref=\"var_password_hashing_algorithm_pam\" />", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to use the <sub idref=\"var_password_hashing_algorithm_pam\" /> algorithm for password hashing.\n\nAdd or change the following line in the \"[default]\" section of \"/etc/libuser.conf\" file:\n\ncrypt_style = <sub idref=\"var_password_hashing_algorithm_pam\" />", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must be configured so that user and group account administration utilities are configured to store only encrypted representations of passwords.", "vuldiscussion": "Passwords need to be protected at all times, and encryption is the standard method for protecting passwords. If passwords are not encrypted, they can be plainly read (i.e., clear text) and easily compromised. Passwords that are encrypted with a weak algorithm are no more protected than if they are kept in plain text.\n\nThis setting ensures user and group account administration utilities are configured to store only encrypted representations of passwords. Additionally, the \"crypt_style\" configuration option ensures the use of a strong hashing algorithm that makes password cracking attacks more difficult.", "checktext": "Verify the user and group account administration utilities are configured to store only encrypted representations of passwords with the following command:\n\n# grep crypt /etc/libuser.conf\n\ncrypt_style = sha512\n\nIf the \"crypt_style\" variable is not set to \"sha512\", is not in the defaults section, is commented out, or does not exist, this is a finding.", "fixtext": "Configure Ubuntu 22.04 to use the SHA-512 algorithm for password hashing.\n\nAdd or change the following line in the \"[default]\" section of \"/etc/libuser.conf\" file:\n\ncrypt_style = sha512"}}, "platform": "package[libuser]", "platforms": ["package[libuser]"], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_libuser"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Set Password Hashing Algorithm in /etc/libuser.conf", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-pam/set_password_hashing_algorithm/set_password_hashing_algorithm_libuserconf/rule.yml", "template": null}