Authentication rate limiting: slow online guessing safely
Design account-aware throttling, progressive delays, extra checks, and recovery to slow online guessing without creating avoidable lockouts or service load.
Authentication rate limiting: slow online guessing safely
Rate limiting (throttling) controls how often or how quickly a verifier accepts authentication requests after failures. It slows online password guessing while allowing a service to choose graduated delays or checks instead of immediately hard-locking an account. NIST SP 800-63B-4 requires effective limits when the authenticator type calls for them.
Online and offline guessing differ
The verifier can count online requests. If an attacker steals the password database, offline guesses run on the attacker's own equipment and bypass login throttles; salted, costly password hashing is a separate defense. An IP-only rule can be evaded by changing or distributing addresses, while strict IP limits may affect many legitimate users behind a shared network. Consider account, network, device, and service-wide signals together.
A staged control flow
Track failures by account and authenticator with protected, reliable state.
Increase retry delay as failures accumulate; do not invent one universal threshold for every service.
Add bot challenges or stronger checks when risk signals justify them.
At the applicable ceiling, disable the authenticator and provide secure recovery. Under NIST, unless authenticator-specific rules say otherwise, 100 consecutive failures for a specific authenticator on one account is an upper bound, not a target; lower limits are allowed. A disabled authenticator must be rebound before reuse.
On successful authentication, NIST says prior failures for the authenticators used SHOULD be disregarded. Keep that recommendation distinct from SHALL requirements.
Also cap service-wide requests and expensive work such as password hashing or challenges to limit resource-exhaustion risk. Monitor low-and-slow patterns across accounts, user agents, addresses, and time; Microsoft's incident guidance notes that such attacks can stay below individual lockout thresholds. Avoid revealing whether a username exists in responses. Rate limiting slows online guessing, but does not stop phishing, stolen credentials, or session theft; combine it with other controls and a usable recovery path.
Sources
[NIST SP 800-63B-4: Authenticator and Verifier Requirements](https://pages.nist.gov/800-63-4/sp800-63b/authenticators/)
[NIST SP 800-63B-4: Strength of Passwords](https://pages.nist.gov/800-63-4/sp800-63b/passwords/)
[Microsoft Learn: Password spray investigation](https://learn.microsoft.com/en-us/security/zero-trust/security-operations-playbook-password-spray)