{"description": "This rule configures the system to lock out root during a specified time period after a\nnumber of incorrect login attempts using <tt>pam_faillock.so</tt>.\n\nEnsure that the file <tt>/etc/security/faillock.conf</tt> contains the following entry:\n<tt>root_unlock_time=&lt;interval-in-seconds&gt;</tt> where\n<tt>interval-in-seconds</tt> is <tt><sub idref=\"var_accounts_passwords_pam_faillock_root_unlock_time\" /></tt> or greater.\n\nIf <tt>root_unlock_time</tt> is set to <tt>0</tt>, it may enable attacker to\napply denial of service to legitimate users.", "rationale": "By limiting the number of failed logon attempts the risk of unauthorized root\naccess via password guessing, otherwise known as brute-forcing, is reduced.\nLimits are imposed by locking the account.", "severity": "medium", "references": {"cis": ["5.3.3.1.3"]}, "control_references": {"cis": ["5.3.3.1.3"]}, "components": [], "identifiers": {}, "ocil_clause": null, "ocil": null, "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "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": "Set Root Lockout Time for Failed Password Attempts", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_passwords_pam_faillock_root_unlock_time/rule.yml", "template": {"name": "pam_account_password_faillock", "vars": {"prm_name": "root_unlock_time", "prm_regex_conf": "^[\\s]*root_unlock_time[\\s]*=[\\s]*([0-9]+)", "prm_regex_pamd": "^[\\s]*auth[\\s]+.+[\\s]+pam_faillock.so[\\s]+[^\\n]*root_unlock_time=([0-9]+)", "ext_variable": "var_accounts_passwords_pam_faillock_root_unlock_time", "description": "The unlock time after number of failed logins should be set correctly.", "variable_lower_bound": "use_ext_variable"}, "backends": {}}}