{"description": "The <tt>MaxAuthTries</tt> parameter specifies the maximum number of authentication attempts\npermitted per connection. Once the number of failures reaches half this value, additional failures are logged.\nto set MaxAUthTries edit <tt>/etc/ssh/sshd_config</tt> as follows:\n<pre>MaxAuthTries <sub idref=\"sshd_max_auth_tries_value\" /></pre>", "rationale": "Setting the MaxAuthTries parameter to a low number will minimize the risk of successful\nbrute force attacks to the SSH server.", "severity": "medium", "references": {"cis": ["5.1.16"], "ism": ["0421", "0422", "0974", "1173", "1401", "1504", "1505", "1546", "1557", "1558", "1559", "1560", "1561"], "pcidss4": ["2.2.6", "2.2"]}, "control_references": {"cis": ["5.1.16"], "ism": ["0421", "0422", "0974", "1173", "1401", "1504", "1505", "1546", "1557", "1558", "1559", "1560", "1561"], "pcidss4": ["2.2.6", "2.2"]}, "components": [], "identifiers": {}, "ocil_clause": "it is commented out or not configured properly", "ocil": "To ensure the <tt>MaxAuthTries</tt> parameter is set, run the following command:\n<pre>$ sudo grep MaxAuthTries /etc/ssh/sshd_config</pre>\nIf properly configured, output should be:\n<pre>MaxAuthTries <sub idref=\"sshd_max_auth_tries_value\" /></pre>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Set SSH authentication attempt limit", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/ssh/ssh_server/sshd_set_max_auth_tries/rule.yml", "template": {"name": "sshd_lineinfile", "vars": {"parameter": "MaxAuthTries", "xccdf_variable": "sshd_max_auth_tries_value", "datatype": "int", "backends": {"oval": "off"}}, "backends": {}}}