{"description": "If any password hashes are stored in <tt>/etc/passwd</tt> (in the second field,\ninstead of an <tt>x</tt> or <tt>*</tt>), the cause of this misconfiguration should be\ninvestigated. The account should have its password reset and the hash should be\nproperly stored, or the account should be deleted entirely.", "rationale": "The hashes for all user account passwords should be stored in\nthe file <tt>/etc/shadow</tt> and never in <tt>/etc/passwd</tt>,\nwhich is readable by all users.", "severity": "medium", "references": {"cis-csc": ["1", "12", "15", "16", "5"], "cjis": ["5.5.2"], "cobit5": ["DSS05.04", "DSS05.05", "DSS05.07", "DSS05.10", "DSS06.03", "DSS06.10"], "cui": ["3.5.10"], "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(h)", "CM-6(a)"], "nist-csf": ["PR.AC-1", "PR.AC-6", "PR.AC-7"], "pcidss": ["Req-8.2.1"], "cis": ["7.2.1"], "ism": ["1402"], "pcidss4": ["8.3.2", "8.3"]}, "control_references": {"cis": ["7.2.1"], "ism": ["1402"], "pcidss4": ["8.3.2", "8.3"]}, "components": [], "identifiers": {}, "ocil_clause": "any stored hashes are found in /etc/passwd", "ocil": "To check that no password hashes are stored in\n<tt>/etc/passwd</tt>, run the following command:\n<pre>awk '!/\\S:x|\\*/ {print}' /etc/passwd</pre>\nIf it produces any output, then a password hash is\nstored in <tt>/etc/passwd</tt>.", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "system_with_kernel", "platforms": ["system_with_kernel"], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": ["system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify All Account Password Hashes are Shadowed", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-restrictions/password_storage/accounts_password_all_shadowed/rule.yml", "template": null}