Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› What are the key account locking best practices?
Authentication, Authorisation & Trust

What are the key account locking best practices?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Authentication, Authorisation & Trust

Account locking should slow automated guessing without creating easy denial of service. Set thresholds that trigger temporary, not permanent, lockouts; make recovery require stronger proof than a simple password reset; monitor for distributed attempts across many accounts; and tune rules to distinguish normal user mistakes from password spraying and credential stuffing.

What account locking should achieve, and what it should not

Good account locking is a speed bump, not a trapdoor. It should reduce automated guessing and credential stuffing without turning routine mistakes into self-inflicted outages. The practical goal is to raise attacker cost while keeping legitimate recovery possible, predictable, and resistant to abuse.

That means lockout behavior should be proportional to the signal you are seeing. A few bad attempts on one account are different from low-and-slow attempts spread across many accounts, and the policy should reflect that difference. If the control is too aggressive, an attacker can weaponize it for denial of service.

For organisations using cloud workloads and service accounts, the same principle applies to machine-facing credentials: the account should be hard to brute-force, but the recovery path must not be easier than the authentication path itself. Cloud Workload Identity Guide is useful here because it shows why short-lived, less reusable credentials reduce the value of locking alone.

How to set thresholds and recovery rules that actually work

Best practice is to use temporary lockouts, progressive delays, or step-up challenge rather than permanent lockouts for ordinary users. Permanent disablement is usually reserved for confirmed compromise, policy violations, or repeated high-risk behavior. For everyone else, the control should slow abuse while leaving room for normal recovery.

Recovery should require stronger proof than the original credential. If a password reset is enough to undo every lockout, attackers can often convert a throttling control into a reset-abuse path. Stronger recovery typically means verified contact methods, trusted device checks, or an additional authentication step that is harder to automate than guessing the password.

Rules should also be aware of credential type. API keys, service tokens, and service accounts are often more dangerous when they are long-lived and reused. If you manage secrets in these paths, API Key Management Guide and Service Account Security Guide are the right references because they connect lifecycle controls with the real exposure created by reusable credentials.

Monitoring distributed attack patterns and tuning for real user behavior

Single-account lockouts do not catch all attacks. Password spraying and credential stuffing often spread across many accounts, so monitoring needs correlation across source, time window, and target population. The useful question is not only “how many failures hit one account,” but also “what pattern is emerging across the directory, tenant, or application?”

That tuning work is where many programs fail. If the threshold is too low, users get locked out after normal mistakes or password manager issues. If it is too high, attackers get a large number of guesses per account before the control engages. The best setting is the one that fits your user base, login volume, and real attack profile, then gets adjusted as those conditions change.

For teams that already treat authentication as a control surface, Google Cloud IAM and Service Accounts Guide is a useful companion because it reinforces the broader point that access control works best when lifecycle, privilege, and authentication are designed together rather than as separate fixes.

Risk and Threat Considerations

Overly strict locking can be turned into a denial-of-service mechanism, especially when an attacker can repeatedly trigger lockouts for high-value users. Overly loose locking, by contrast, leaves the account open to automation that eventually finds weak or reused credentials. The real risk is usually not the lockout itself, but the mismatch between the lockout rule and the attack pattern you actually face.

Failure mechanism: Attackers either distribute guesses to stay below the threshold or intentionally trigger lockouts to disrupt access. If recovery is weak, they can pivot from lockout to reset abuse and regain access through the easiest available path.

Impact: Organisations can see account takeover, widespread user friction, help desk overload, and avoidable lockouts of privileged or business-critical accounts. In the worst case, the control creates both weaker security and higher operational disruption.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementAccount locking and recovery depend on managing credential lifecycle and reset abuse.
AC-7 — Unsuccessful Logon AttemptsDirectly addresses thresholds, temporary lockouts, and handling repeated failed logons.
IA-2 — Identification and Authentication (Organizational Users)Login throttling, lockout, and recovery are part of user authentication control design.
Recommendation — Rotate, revoke, and recover authenticators with stronger proof than the locked credential. Set failed-logon thresholds and temporary lockout behavior that limits guessing without easy DoS. Apply authentication controls that distinguish normal error patterns from automated guessing.
CIS Controls v85 — Account ManagementBest practices here depend on managing account lifecycle, lockouts, and recovery paths.
Recommendation — Review account controls so lockout, recovery, and exception handling stay aligned.
OWASP ASVSV6 — AuthenticationAuthentication verification covers lockout thresholds, anti-automation, and recovery strength.
Recommendation — Verify that authentication limits guessing while keeping recovery resistant to abuse.

Practitioner Guidance

What to prioritise: Tune lockout behavior around attacker economics, not just user convenience. If your users are heavily exposed to spraying or stuffing, correlation and rate-based detection matter more than a simple per-account counter.

What to verify: Confirm that recovery after lockout is harder to automate than the original login attempt. If an attacker can unlock an account with a weaker process than the one that triggered the lock, the policy is functionally self-defeating.

Common mistake: Treating every failed-login burst the same. A genuine typo pattern, a shared-device issue, and a distributed attack require different responses, different alerting, and often different thresholds.

Practitioner takeaway: The best account locking policy is one that slows abuse without becoming an easy outage tool, and that only works when lockout, monitoring, and recovery are designed as one control system.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org