NIST SP 800-53 Rev. 5 · AC-7

Unsuccessful Logon Attempts

US National Institute of Standards and Technology (NIST) · cited in 66 of our lessons

Explanation

What it asks for. Systems must limit the number of consecutive failed logon attempts within a defined period and, when the limit is exceeded, take a defined action such as locking the account, delaying the next attempt or notifying an administrator.

In practice. This means lockout or throttling settings in the identity provider and applications, combined with detection of password spraying across many accounts. Modern identity platforms offer smart lockout that slows attackers without locking out legitimate users. Auditors look for configured thresholds, evidence they apply to all login interfaces and alerting on unusual failure patterns.

Common gaps. Lockout settings often apply to the main directory but not to APIs, legacy protocols or custom applications. Password spraying, which stays below per-account thresholds, frequently goes undetected.

The official text
a. Enforce a limit of [Assignment: organization-defined number] consecutive invalid logon attempts by a user during a [Assignment: organization-defined time period] ; and b. Automatically [Selection: lock the account or node for {{ insert: param, ac-07_odp.04 }} ; lock the account or node until released by an administrator; delay next logon prompt per {{ insert: param, ac-07_odp.05 }} ; notify system administrator; take other {{ insert: param, ac-07_odp.06 }} ] when the maximum number of unsuccessful attempts is exceeded. Discussion: The need to limit unsuccessful logon attempts and take subsequent action when the maximum number of attempts is exceeded applies regardless of whether the logon occurs via a local or network connection. Due to the potential for denial of service, automatic lockouts initiated by systems are usually temporary and automatically release after a predetermined, organization-defined time period. If a delay algorithm is selected, organizations may employ different algorithms for different components of the system based on the capabilities of those components. Responses to unsuccessful logon attempts may be implemented at the operating system and the application levels. Organization-defined actions that may be taken when the number of allowed consecutive invalid logon attempts is exceeded include prompting the user to answer a secret question in addition to the username and password, invoking a lockdown mode with limited user capabilities (instead of full lockout), allowing users to only logon from specified Internet Protocol (IP) addresses, requiring a CAPTCHA to prevent automated attacks, or applying user profiles such as location, time of day, IP address, device, or Media Access Control (MAC) address. If automatic system lockout or execution of a delay algorithm is not implemented in support of the availability objective, organizations consider a combination of other actions to help prevent brute force attacks. In addition to the above, organizations can prompt users to respond to a secret question before the number of allowed unsuccessful logon attempts is exceeded. Automatically unlocking an account after a specified period of time is generally not permitted. However, exceptions may be required based on operational mission or need.

From NIST SP 800-53 Rev. 5, a work of the US government in the public domain.

Lessons that cite it

Real incidents where this item mattered: the latest 12 of 66.