{"description": "To specify password maximum age for new accounts,\nedit the file <tt>/etc/login.defs</tt>\nand add or correct the following line:\n<pre>PASS_MAX_DAYS <sub idref=\"var_accounts_maximum_age_login_defs\" /></pre>\nThe profile requirement is <tt><sub idref=\"var_accounts_maximum_age_login_defs\" /></tt>.", "rationale": "Any password, no matter how complex, can eventually be cracked. Therefore, passwords\nneed to be changed periodically. If the operating system does not limit the lifetime\nof passwords and force users to change their passwords, there is the risk that the\noperating system passwords could be compromised.\n<br /><br />\nSetting the password maximum age ensures users are required to\nperiodically change their passwords. Requiring shorter password lifetimes\nincreases the risk of users writing down the password in a convenient\nlocation subject to physical compromise.", "severity": "medium", "references": {"cis-csc": ["1", "12", "15", "16", "5"], "cjis": ["5.6.2.1"], "cobit5": ["DSS05.04", "DSS05.05", "DSS05.07", "DSS05.10", "DSS06.03", "DSS06.10"], "cui": ["3.5.6"], "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(f)", "IA-5(1)(d)", "CM-6(a)"], "nist-csf": ["PR.AC-1", "PR.AC-6", "PR.AC-7"], "pcidss": ["Req-8.2.4"], "srg": ["SRG-OS-000076-GPOS-00044"], "cis": ["5.4.1.1"], "ism": ["0418", "1055", "1402"], "pcidss4": ["8.3.9", "8.3"], "stigid": ["UBTU-22-411030"], "stigref": ["SV-260546r1038967_rule"]}, "control_references": {"cis": ["5.4.1.1"], "ism": ["0418", "1055", "1402"], "pcidss4": ["8.3.9", "8.3"], "stigid": ["UBTU-22-411030"]}, "components": [], "identifiers": {}, "ocil_clause": "the \"PASS_MAX_DAYS\" parameter value is greater than \"<sub idref=\"var_accounts_maximum_age_login_defs\" />\", or commented out", "ocil": "Verify that Ubuntu 22.04 enforces a <sub idref=\"var_accounts_maximum_age_login_defs\" />-day maximum password lifetime for new user accounts by running the following command:\n\n<pre>$ grep -i pass_max_days /etc/login.defs\n\nPASS_MAX_DAYS <sub idref=\"var_accounts_maximum_age_login_defs\" /></pre>", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to enforce a <sub idref=\"var_accounts_maximum_age_login_defs\" />-day maximum password lifetime.\n\nAdd, or modify the following line in the \"/etc/login.defs\" file:\n\nPASS_MAX_DAYS <sub idref=\"var_accounts_maximum_age_login_defs\" />", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 user account passwords for new users or password changes must have a 60 day maximum password lifetime restriction in /etc/login.defs.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 user account passwords for new users or password changes must have a 60-day maximum password lifetime restriction in /etc/login.defs.", "vuldiscussion": "Any password, no matter how complex, can eventually be cracked; therefore, passwords need to be changed periodically. If the operating system does not limit the lifetime of passwords and force users to change their passwords, there is the risk that the operating system passwords could be compromised.\n\nSetting the password maximum age ensures users are required to periodically change their passwords. Requiring shorter password lifetimes increases the risk of users writing down the password in a convenient location subject to physical compromise.", "checktext": "Verify that Ubuntu 22.04 enforces a 60-day maximum password lifetime for new user accounts by running the following command:\n\n$ grep -i pass_max_days /etc/login.defs\n\nPASS_MAX_DAYS 60\n\nIf the \"PASS_MAX_DAYS\" parameter value is greater than \"60\", or commented out, this is a finding.", "fixtext": "Configure Ubuntu 22.04 to enforce a 60-day maximum password lifetime.\n\nAdd or modify the following line in the \"/etc/login.defs\" file:\n\nPASS_MAX_DAYS 60"}}, "platform": "package[shadow-utils]", "platforms": ["package[shadow-utils]"], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_shadow-utils"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Set Password Maximum Age", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-restrictions/password_expiration/accounts_maximum_age_login_defs/rule.yml", "template": null}