{"description": "Check the \"/etc/shadow\" file for blank passwords with the\nfollowing command:\n<pre>$ sudo awk -F: '!$2 {print $1}' /etc/shadow</pre>\nIf the command returns any results, this is a finding.\nConfigure all accounts on the system to have a password or lock\nthe account with the following commands:\nPerform a password reset:\n<pre>$ sudo passwd [username]</pre>\nLock an account:\n<pre>$ sudo passwd -l [username]</pre>", "rationale": "If an account has an empty password, anyone could log in and\nrun commands with the privileges of that account. Accounts with\nempty passwords should never be used in operational environments.", "severity": "high", "references": {"nist": ["CM-6(b)", "CM-6.1(iv)"], "srg": ["SRG-OS-000480-GPOS-00227"], "cis": ["7.2.2"], "pcidss4": ["2.2.2", "2.2"], "stigid": ["UBTU-22-611065"], "stigref": ["SV-260571r991589_rule"]}, "control_references": {"cis": ["7.2.2"], "pcidss4": ["2.2.2", "2.2"], "stigid": ["UBTU-22-611065"]}, "components": [], "identifiers": {}, "ocil_clause": "Blank or NULL passwords can be used", "ocil": "To verify that null passwords cannot be used, run the following command:\n<pre>$ sudo awk -F: '!$2 {print $1}' /etc/shadow</pre>\nIf this produces any output, it may be possible to log into accounts\nwith empty passwords.", "oval_external_content": null, "fixtext": "Configure all accounts on Ubuntu 22.04 to have a password or lock\nthe account with the following commands:\nPerform a password reset:\n<pre>$ sudo passwd [username]</pre>\nLock an account:\n<pre>$ sudo passwd -l [username]</pre>", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must have no accounts with blank or null passwords.", "warnings": [{"general": "Note that this rule is not applicable for systems running within a container. Having user with empty password within a container is not considered a risk, because it should not be possible to directly login into a container anyway."}], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must not have accounts configured with blank or null passwords.", "vuldiscussion": "If an account has an empty password, anyone could log in and run commands with the privileges of that account. Accounts with empty passwords should never be used in operational environments.", "checktext": "Verify that null or blank passwords cannot be used with the following command:\n\n$ sudo awk -F: '!$2 {print $1}' /etc/shadow\n\nIf the command returns any results, this is a finding.", "fixtext": "Configure all accounts on Ubuntu 22.04 to have a password or lock the account with the following commands:\n\nPerform a password reset:\n\n$ sudo passwd [username]\n\nTo lock an account:\n\n$ sudo passwd -l [username]"}}, "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": "Ensure There Are No Accounts With Blank or Null Passwords", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-restrictions/password_storage/no_empty_passwords_etc_shadow/rule.yml", "template": null}