All articlesBlog / account lockout

Account Lockout Policy: How to Set Thresholds Safely

Learn how an account lockout policy balances guessing defenses, denial-of-service risk and recovery, with published reference values and a safe rollout plan.

MANDATEaccount lockoutlogin throttlingcredential stuffingbrute force protectionaccount lockout policy
Varied candidate shapes approach a single authentication aperture along a repeated-attempt path.

Locking an account after three or five wrong passwords is the most repeated piece of authentication advice on the internet, and it's also one of the fastest ways to hand an attacker a denial-of-service switch. A strict threshold slows down clumsy password guessing, sure, yet it gives anyone who knows a customer's email address a cheap way to knock that person out of sign-in, recovery, or checkout.

There isn't a single universal number that makes an account lockout policy safe. Every threshold trades off password-guessing resistance against legitimate-user availability. The practical way to ship lockout rules without hurting real customers is to start from a published baseline matched to each route's risk, validate those settings in observation mode before blocking a single request, and pair lockout with rate limits, replay checks, and safe recovery paths.

What an Account Lockout Policy Actually Sets

An account lockout policy is a server-side rule that counts failed authentication attempts and decides what happens once those failures pass a defined limit. Engineering teams often debate lockout as if it were a single integer in a config file, when it's really four interacting settings plus a counting scope.

Picture a subway turnstile at a busy station. Every time someone swipes an invalid card, the turnstile clicks once. If it clicks too many times within a short stretch, a metal gate slides shut for a set period before reopening and resetting the click counter to zero.

A production lockout rule works the exact same way across four independent levers:

  • Failed-attempt threshold: The number of bad attempts allowed before enforcement kicks in.
  • Detection window: The time span over which failures accumulate, whether tracked as a sliding interval or a fixed period.
  • Enforcement duration: How long the block lasts once triggered, and whether access returns automatically on a timer or requires manual intervention from support.
  • Counter reset: The quiet period after the last failed try before the counter drops back to zero.

Those four settings pull against each other. A short detection window paired with a long lock punishes someone who mistypes a new password quickly, then traps them out of their account for hours. A long detection window paired with a short lock catches slow guessing over time while letting an honest user back in after a brief pause.

How Counting Scope Changes What Gets Blocked

Before choosing numbers, teams have to decide what the counter tracks. Counting per user account protects one identity, while counting per password authenticator disables password login without cutting off passkeys or hardware keys. Counting per source network catches scripts cycling across many usernames from one address, and counting per browser session isolates automated retries inside a single flow.

Teams mapping out how authentication rules connect to authorization boundaries can review Rite NRG identity and access insights when defining where identity controls end and application permissions begin. Start by writing down all four settings and the exact counting scope for every protected route, including sign-in, account recovery, and checkout, before writing a single threshold into code.

Reference Values From Published Guidance

Published security standards don't agree on one lockout number because each specification was written for a different threat model and user base. The table below compares reference values directly from current government and enterprise identity guidance, marking any parameter not stated in the published text rather than guessing.

Source Failed-attempt limit Counting window Lockout duration
NIST SP 800-63B (upper bound) 100 consecutive failures per authenticator Not specified in standard Not specified (lower limits allowed)
Microsoft Windows security baseline 10 invalid sign-ins 15-minute counter reset 15 minutes
CISA example for alerting 5 consecutive failures 2 minutes Not specified (temporary block where supported)
CISA citing Windows 11 10 incorrect logins 10 minutes 10 minutes
Microsoft Entra smart lockout, public tenants 10 failed attempts Not specified in published defaults 1 minute initially, lengthens after further failures
Microsoft Entra smart lockout, US Government tenants 3 failed attempts Not specified in published defaults 1 minute initially, lengthens after further failures

Why Published Baselines Disagree

Each row reflects a deliberate tradeoff between brute-force resistance and operational disruption. The NIST SP 800-63B digital identity guidelines set 100 consecutive failed attempts for a specific authenticator as a ceiling, not a recommended target, and explicitly allow organizations to impose lower limits or disable only the affected authenticator while informing users how long they must wait before trying again.

Enterprise operating systems take a tighter starting posture. The Microsoft Windows security baseline for account lockout uses a coordinated 10/15/15 configuration: 10 invalid sign-in attempts, a 15-minute lockout duration, and a 15-minute counter reset. Microsoft explicitly cautions in that documentation that a threshold of 10 doesn't prevent denial-of-service attacks, which is why the duration stays short instead of locking accounts permanently.

Cloud identity and federal alerting guidance split the numbers further based on environment sensitivity. The CISA March 2023 Cross-Sector Cybersecurity Performance Goals report uses an operational detection example of alerting after 5 consecutive unsuccessful attempts within 2 minutes, logging the event, and applying a temporary block where supported, while also citing Windows 11's default behavior of locking an account for 10 minutes after 10 incorrect logins within a 10-minute period. Meanwhile, Microsoft Entra smart lockout documentation defaults to 10 failed attempts for public tenants and 3 failed attempts for US Government tenants, opening with a 1-minute lockout that lengthens after subsequent failures.

Baseline rule: Copy the structure and threat-model reasoning behind a published row, never a bare number pulled out of context.

Start from the row closest to a route's actual risk profile, record the source and date beside the configuration in version control, and plan to tune every value after watching real traffic.

Why Lockout Can Lock Out Your Own Users

A hard account lockout turns repeated bad credentials into an unavailable account, which means an attacker can disrupt a customer without ever learning their password. Consider a synthetic example of a live-event ticketing website that locks any account for 15 minutes after five wrong passwords within one minute. Right before a high-demand concert drop, a script submits five bad passwords against a fan's email address every minute from rotating residential networks. The fan's password was never guessed, yet they can't log in to buy seats for the entire sale.

This pattern is documented, not hypothetical. The 2019 research paper Account Lockouts: Characterizing and Preventing Account Denial-of-Service Attacks documented how attackers can intentionally trigger lockouts against known usernames across distributed sources, turning an anti-brute-force control into an account denial-of-service primitive. The same work shows attackers need relatively few resources to lock out targeted accounts, and the damage multiplies in environments backed by single sign-on, where blocking one login cuts off every downstream app that depends on it.

That last point deserves emphasis. A lockout policy written for a standalone app behaves very differently once the identity provider in front of it serves your whole product suite. One small script can take a customer out of sign-in, recovery, and checkout in a single pass.

Lockout as an Availability Decision

Treating lockout purely as a guessing defense misses half the equation. On high-value flows such as account recovery, reservations, promotion redemptions, or time-sensitive checkouts, disruption itself can be the attacker's goal, whether to shut out competing buyers or flood support queues with access restoration requests. Every threshold you tighten is also a knob an attacker can turn against your users, so the honest question is never "how strict can we be" but "how much availability are we willing to trade for how much guessing resistance."

Because no single threshold answers that question, validate the policy before anyone gets blocked. Run new settings in observation first: log the attempts your counters would have locked, group them by account and source, and check whether the flagged traffic is hostile or just a customer mistyping a password on a new device. Only enforce once the observed behavior matches what you intended.

A workable policy measures failure signals across multiple dimensions instead of trusting every failed attempt equally. Evaluate abuse by account, source network, browser context, and action sensitivity. Pair lockout with progressive delays, source-level limits, and safe recovery paths so an attacker can't weaponize the defense against paying customers.

Which Controls Stop Which Abuse

Account lockout slows repeated guessing aimed at one account, yet most automated web abuse doesn't follow that pattern. Before tightening a lockout threshold to solve a bot problem, match the attack pattern to the control built to stop it.

Abuse type What it looks like Does lockout help? Complementary control
Password guessing Many attempts against one account Yes, partly Progressive throttling and source limits
Credential stuffing Breached pairs tried across many accounts Limited Source-level rate limits and breached-password screening
Automated signup abuse Many new accounts created No, counters are per account Signup rate limits and verification on account creation
Replay of captured browser proof A valid request reused by another caller No Server-side check that the credential is current and unconsumed
Checkout or scalper automation Repeated purchase attempts on limited stock No Rate limits on the action and idempotent operations
Session theft or account takeover A stolen valid session used after login No Session management, step-up checks and account risk monitoring
Trial eligibility abuse Deliberate repeat signups to claim a benefit No Eligibility checks on the server and signup verification

Why Separate Abuse Types Need Separate Controls

Grouping distinct threats under one label leads teams to deploy the wrong defense. The OWASP Authentication Cheat Sheet defines login throttling as a control against interactive password guessing while treating credential stuffing (testing previously breached username-and-password pairs across many accounts) as a separate problem requiring breached-password screening and broader rate limits.

Similarly, CISA's credential stuffing guidance under ATT&CK T1110.004 classifies credential stuffing as brute-force activity and warns that it can generate heavy authentication failures and account lockouts depending on the site's login-failure policy. Because each account may only see one or two tries per campaign, tightening per-account lockout misses the spread while raising the risk of locking out real users.

Other abuse types bypass account counters entirely. Automated signup abuse creates fresh accounts on every request, so per-account counters never climb. Trial eligibility abuse (deliberately creating repeat accounts to claim promotional credits or free trials, which is distinct from misleading billing or cancellation practices) requires server-side eligibility enforcement alongside signup verification. Checkout and scalper scripts hit inventory and payment routes after login, where action-level rate limits, idempotency, and dedicated fraud controls matter; teams operating in high-risk payment verticals often pair those controls with specialized practices like how to manage iGaming payment risk.

Finally, session theft and account takeover occur when an attacker uses a stolen valid session or already-compromised credentials, so login-failure counters never fire. And when teams add browser verification to close replay gaps, the boundary stays strict: browser proof doesn't grant an account or permission, and browser verification doesn't establish human identity or guarantee that every automated request is detected. Account lockout stays one layer in a stack, never a replacement for the rest of it.

Browser Verification and CAPTCHA Alternatives for High-Value Actions

A CAPTCHA interrupts a visitor with a puzzle, checkbox, or visual challenge before letting a form submit. Invisible browser verification takes a different approach: a script gathers browser proof in the background and sends an opaque credential to the server, giving the application a server-checked signal for one high-value route such as sign-in, account recovery, or checkout without showing a challenge to the user.

Understanding the boundaries of that signal keeps teams from misusing it. Browser verification gives the server evidence that a request traveled through an expected browser flow, not proof of who the person is, and it never replaces password checks, authorization, lockout, rate limits, web application firewalls, DDoS mitigation, or payment-fraud scoring. MANDATE provides this style of invisible browser verification for high-value actions such as sign-in, account creation, recovery, and checkout without CAPTCHAs, using hosted server-side verification as the standard integration path (with local cryptographic verification reserved for an offline emergency tier and legacy compatibility). Teams evaluating any browser-verification tool should confirm current public availability and any preview limitations before placing it on a critical route.

Server-Side Requirements for Replay Resistance

A client-side signal is only trustworthy if the server validates how and when it's used. Any browser-originated verification credential should meet four strict rules before the application accepts a protected action:

  • Short-lived expiration: Credentials expire quickly so captured tokens lose value within seconds or minutes.
  • Action and context binding: A credential issued for sign-in can't be replayed against account recovery or checkout.
  • Current server-state check: The server verifies the credential against live state rather than trusting static client headers.
  • Single-use consumption: Once verified, the credential is marked consumed so a second caller can't replay the same request.

Visible CAPTCHA puzzles often add friction to every login or checkout attempt, hurting conversion and accessibility while still needing rate limits underneath. Server-verified browser checks can sit selectively on high-value routes, which is worth examining when comparing CAPTCHA alternatives for high-value web actions.

To test whether browser verification helps without breaking real flows, run a three-step pilot:

  1. Pick one high-value route, such as account recovery or sign-in, instead of instrumenting every endpoint at once.
  2. Deploy verification in observation mode so every request logs a decision without rejecting legitimate visitors.
  3. Compare legitimate-user friction against caught automation before turning on blocking rules, keeping lockout and rate limits active underneath.

Throttling Design That Protects Honest Users

Hard locks on the first handful of mistakes punish normal human behavior. A progressive throttling ladder slows automated guessing down early while keeping honest users moving.

Attempt 1-3   -> Log failure only (no delay, no user penalty)
Attempt 4-6   -> Apply short progressive delay (e.g., 1s, 3s, 8s)
Attempt 7-10  -> Enforce temporary lock (e.g., 15 minutes) + alert telemetry
Lock active   -> Allow recovery only after timer expires or strong verification passes

Design Rules for Safe Escalation

To keep that escalation ladder from turning into a self-inflicted outage, enforce five architectural rules on the server:

  • Keep counters server-side and scoped tightly: Per the NIST SP 800-63B authentication rate-limiting guidance, tie failure counters to the account and specific authenticator on the server, never to cookies, local storage, or client-supplied identifiers an attacker can wipe. Pair per-account counters with source-network limits, and treat browser or device context as supporting evidence rather than proof of identity.
  • Return uniform error messages: Never tell the caller whether an email address exists, whether the password was wrong, or whether an account is locked in a way that leaks user enrollment. Account enumeration hands attackers a clean list of targets for lockout campaigns.
  • Test against honest failure clusters: Legitimate mistakes spike right after forced password resets, on shared corporate or campus networks behind one exit IP, and when browser password managers auto-fill stale credentials. Validate delays and source thresholds against those scenarios before shipping, and review options for layering a rate limiter alongside account controls.
  • Handle verification failures explicitly: Behavior when a browser-verification service or risk check is unavailable depends on the integration and route policy, and teams must design and test that path upfront. An error must never be treated as a verified result, and automated retries need strict bounds so outages don't trigger retry storms.
  • Prefer temporary locks over permanent lockouts: Long lock windows multiply the damage of targeted denial-of-service campaigns, while immediate permanent lockouts overwhelm help desks. Temporary progressive locks paired with a tested recovery route keep both attackers and support queues in check.

Every lockout event should emit structured telemetry, yet raw passwords and verification credentials must stay completely out of application logs.

Log six fields on every throttling or lockout event: account identifier (or hashed lookup key), authenticator type, source network, browser or device context, target route, and enforcement outcome. That gives incident responders enough context to separate a corporate office mistyping a rotated password from a distributed stuffing run.

A Worked Example for Sign-In, Recovery and Checkout

To make these tradeoffs concrete, consider a synthetic example of a fictional ticketing platform protecting three browser-originated routes: sign-in, account recovery, and checkout. All settings below are starting design choices built to test in staging and observation mode, not measured production results.

Each route faces a different abuse model, so each gets its own failure limit, counting window, enforcement behavior, and scope:

Route Failure limit Counting window Enforcement Counted by
Sign-in 10 failed attempts 15-minute counter reset (Microsoft baseline) 15-minute temporary lock Per account and per source
Account recovery 3 failed attempts (synthetic choice) 1 hour (synthetic choice) Temporary block, then strong verification route Per account and per source
Checkout Rate limit on the purchase action Set during observation Temporary throttle with idempotency key Per session and per source

Notice how checkout doesn't use an account lockout counter at all. Locking a buyer's account because a payment card declined or a browser retried a flaky connection hurts revenue. Instead, the purchase endpoint pairs an action-level rate limit with a server-enforced idempotency key so repeated clicks or scripted retries never generate duplicate charges, avoiding downstream headaches like reconciling refunds across multiple gateways.

Walking Through a Ten-Minute Attack Timeline

Assume an attacker targets two high-profile buyer accounts ten minutes before tickets go on sale, sending 40 wrong passwords from three networks across that ten-minute window.

  • Minutes 1 to 3 (Sign-in pressure): The first ten bad passwords hit Account A from Network 1. Progressive delays slow attempts four through nine, and the tenth failure triggers a 15-minute temporary lock on Account A's password authenticator while Network 1 hits its per-source rate limit and gets rejected at the edge.
  • Minutes 4 to 6 (Network rotation): The attacker shifts to Networks 2 and 3 to hammer Account B and probe the account recovery form. Account B reaches its 10-failure sign-in lock, while the recovery route stops after three failed attempts in one hour and requires a strong verification route without confirming whether the email exists.
  • Minutes 7 to 10 (Checkout attempts): Another script tries rapid purchase requests on a logged-in bot account. Checkout's per-session and per-source rate limit throttles the burst, and the idempotency key rejects duplicate submissions cleanly.

Browser verification can be added to these sign-in and recovery flows without introducing a CAPTCHA into the application, giving the server extra evidence about scripted requests before a lockout counter even increments. Still, MANDATE doesn't replace authentication: the application must continue to authenticate the account, verify permissions and tenant membership, and enforce business rules.

This synthetic walkthrough illustrates how layers divide the work, yet it proves nothing about false-positive rates on real traffic. Only live observation on an organization's own routes can confirm whether 10 sign-in attempts or 3 recovery attempts fit actual customer behavior.

Confirm Your Lockout Settings Before You Enforce Them

Shipping new lockout thresholds straight into blocking mode is how teams accidentally lock out an entire office behind a corporate proxy on Monday morning. Validate every rule in observation mode first, and flip to enforcement only after the numbers hold up against real traffic.

The Seven-Step Rollout Sequence

  1. Inventory every failure-counting route. List sign-in, account recovery, account creation, checkout, promo redemption, and any secondary step-up flow. Teams often harden /login while leaving /password-reset wide open to enumeration and abuse.
  2. Assign a baseline row and document all five parameters. Pick the closest starting reference for each route, then record its threshold, detection window, lock duration, counter reset, and counting scope in version control so future engineers know why those values exist.
  3. Run in observation mode before blocking anyone. Log failed attempts alongside the decision the policy would have made. Most engineering teams implement dry-run counters directly in application logs first. When adding browser verification, the workflow is to collect browser proof, verify it on the server, and review decisions in Observe mode before enabling enforcement; activating an Observe release records decisions with their evidence and blocks nothing. Teams should confirm any vendor observation capabilities against current documentation, and walk through the Observe-mode rollout guide for verifying browser proof and server state before wiring live routes.
  4. Group telemetry by account, source, and action. Raw failure totals hide what happened. Slice the observation logs to spot legitimate clusters, especially shared corporate or university networks, outdated password manager entries, and users retrying right after a password reset.
  5. Measure false-positive impact and recovery load. Count how many legitimate users would have hit a delay, how many would have been locked out, and how many support tickets or recovery flows that volume would create during peak hours.
  6. Document a rollback path with a named owner. Decide ahead of time who has authority to relax thresholds or bypass a failing check, and test the feature flag or config rollback in staging. Customers relying on a pilot for a critical route should also review suspension and ending terms ahead of time and keep that rollback path documented.
  7. Enforce on one route first and review business outcomes separately. Turn on blocking for a single route, such as account recovery or sign-in, while watching conversion rates, login success rates, and support volume separately from security block counts. Treat verification errors and retries explicitly during rollout so a transient integration fault doesn't masquerade as an attack wave.

When to Flip From Observe to Enforce

Enforce a new lockout policy only when observed false positives sit within an acceptable support threshold and the end-to-end recovery path has been tested by a real user on a locked account.

If observation shows legitimate customers regularly hitting five failures on mobile keyboards or shared networks, widen the threshold or soften early penalties with progressive delays before blocking anyone. Security controls only protect a product when real users can still get through the front door.


MANDATE protects high-value browser actions such as sign-in, account creation, account recovery, and checkout from replay, token theft, and scripted browser abuse without adding CAPTCHAs to your flows. Teams can verify browser proof on the server, review grouped decisions in Observe mode before enforcing, and pair those signals with well-tuned lockout and rate-limit policies. Explore how invisible browser verification fits into your authentication and checkout stack at MANDATE.