{"description": "This rule configures the system to lock out the <tt>root</tt> account after a number of\nincorrect login attempts using <tt>pam_tally2.so</tt>.", "rationale": "By limiting the number of failed logon attempts, the risk of unauthorized system access via\nuser password guessing, also known as brute-forcing, is reduced. Limits are imposed by locking\nthe account.", "severity": "medium", "references": {"cis-csc": ["1", "12", "15", "16"], "cobit5": ["DSS05.04", "DSS05.10", "DSS06.10"], "isa-62443-2009": ["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"], "isa-62443-2013": ["SR 1.1", "SR 1.10", "SR 1.2", "SR 1.5", "SR 1.7", "SR 1.8", "SR 1.9"], "iso27001-2013": ["A.18.1.4", "A.9.2.1", "A.9.2.4", "A.9.3.1", "A.9.4.2", "A.9.4.3"], "nist": ["CM-6(a)", "AC-7(b)", "IA-5(c)"], "nist-csf": ["PR.AC-7"], "srg": ["SRG-OS-000329-GPOS-00128", "SRG-OS-000021-GPOS-00005"], "anssi": ["R31"], "ism": ["0421", "0422", "0974", "1173", "1401", "1504", "1505", "1546", "1557", "1558", "1559", "1560", "1561"]}, "control_references": {"anssi": ["R31"], "ism": ["0421", "0422", "0974", "1173", "1401", "1504", "1505", "1546", "1557", "1558", "1559", "1560", "1561"]}, "components": [], "identifiers": {}, "ocil_clause": "limiting the number of failed logon attempts for the root user is not configured", "ocil": "To ensure that even the <tt>root</tt> account is locked after a defined number of failed password\nattempts, run the following command:\n<pre>$ grep even_deny_root /etc/pam.d/login</pre>\nThe output should show <tt>even_deny_root</tt>.", "oval_external_content": null, "fixtext": "To configure the system to lock out the <tt>root</tt> account after a number of incorrect login\nattempts using <tt>pam_tally2.so</tt>, modify the content of both <tt>/etc/pam.d/login</tt> and\n<tt>/etc/pam.d/common-account</tt> as follows:\n<br /><br />\n<ul>\n<li> add or modify the <tt>pam_tally2.so</tt> module line in\n<tt>/etc/pam.d/login</tt> to ensure  <tt>even_deny_root</tt> is present. For example:\n<pre>auth     required       pam_tally2.so deny=4 even_deny_root unlock_time=1200</pre>\n<li> add or modify the following line in <tt>/etc/pam.d/common-account</tt>:\n<pre>account required pam_tally2.so</pre></li>\n</ul>", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 must automatically lock the root account until the root account is released by an administrator when three unsuccessful logon attempts occur during a 15-minute time period.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": "package[pam]", "platforms": ["package[pam]"], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": ["package_pam"], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Configure the root Account lock for Failed Password Attempts via pam_tally2", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_passwords_pam_tally2_deny_root/rule.yml", "template": null}