skip to content

Event 4625 bursts hit an internet-facing RDP host: what does an account lockout threshold stop, what does it cost, and what does it leave open?

level: seniorimportance: should knowfreq 30%

answer

  1. Failure count locks the account
  2. Locks staff out too
  3. Zero means never locked
  4. Online only, not offline
  5. A compensating control

basics

~20 s

A lockout threshold locks an account after a set number of failed sign-ins, which limits online guessing. It costs real users and lets outsiders lock accounts on purpose, and it does not counter offline attacks or remove the exposure.

solid answer

~40 s

The Account lockout threshold takes a value from 1 through 999 failed sign-ins, and 0 means accounts are never locked, which is also the default. A locked account stays unusable until it is reset or the lockout duration expires, so guessing against a reachable RDP host is capped. The cost is the page's own warning: someone who can reach the listener can deliberately exceed the threshold and lock accounts, with no privileges. Windows security baselines suggest 10 as an acceptable starting point; it does not prevent that denial of service. The built-in Administrator account is excluded, and offline password attacks are not countered. Treat the threshold as a compensating control: remove the exposure, keep an unlock process and alert on bursts.

go deeper

for a junior

Know that a lockout threshold locks an account after a set number of failed sign-ins, and that 0 means never lock.

for a middle

Explain what it stops, online guessing at the logon, and what it does not, a flaw reached before logon or an offline attack.

for a senior

Weigh the trade on an exposed host: baseline 10, the denial-of-service risk, the unlock process, the Administrator exclusion and alerting on 0xC0000234 bursts.

for a principal

Choose where lockout sits in the layers and who owns the unlock process, treating it as a compensating control that leaves when the exposure does.

## What the setting does **Account lockout threshold** (Computer Configuration, Windows Settings, Security Settings, Account Policies, Account Lockout Policy) sets the number of failed sign-in attempts that locks a user account. A locked account cannot be used until you reset it or until the **Account lockout duration** expires. The value runs from 1 through 999, and 0 means the account is never locked. When the threshold is above zero, the duration must be greater than or equal to **Reset account lockout counter after**. The Learn page lists 0 invalid sign-in attempts as the effective default, and the change takes effect without a restart. ## What it stops A reachable RDP listener accepts logon attempts from any source. Without a threshold the number of tries against an account is bounded only by the network. With one, automated online guessing against a single account stops at the threshold; Microsoft's page says limiting failed sign-ins "nearly eliminates the effectiveness" of such attacks. The threshold acts at the logon: it does nothing against a pre-authentication flaw, which is reached before any logon. ## What it costs - **Real users are locked out.** A mistyped password, a saved credential that went stale, or an application that keeps retrying counts toward the threshold. The page says that when a connection drops repeatedly while an app is running, all later failed attempts count. - **It can be turned against you.** The page states that someone could attempt a series of password failures against every user and, if the number exceeds the threshold, lock every account, with no special privileges and without being authenticated in the network. With RDP exposed to the internet this is not hypothetical: the listener is the place where those attempts can arrive. - **It needs an unlock process.** The page says the policy must be accompanied by a process to unlock locked accounts, including for mass lockouts. ## What it leaves open - **Offline password attacks are not countered.** The page says so explicitly; a threshold only counts online attempts. - **The built-in Administrator account is excluded** from lockout so that an administrator can always sign in to remediate an issue; the page points to a strong password and other measures for it. - **The exposure itself.** A lockout does not remove the listener, patch a flaw, or add a second factor. ## The two countermeasures the page defines 1. **Threshold 0 (never lock).** Prevents the denial of service and cuts help-desk calls, but does not prevent guessing. The page says to choose it only if both conditions hold: the password policy requires complex passwords of eight or more characters, and a robust audit mechanism alerts administrators to a series of failed sign-ins. 2. **A sufficiently high threshold.** Lets users mistype several times but still locks under guessing. Windows security baselines recommend 10; the page also calls this "more of a guideline than a rule", since there is no one size fits all. It prevents accidental lockouts but not a deliberate denial of service. ## How to decide on an exposed host | Situation | Reasonable position | |---|---| | The listener is reachable from the internet | Remove the exposure first; until then a threshold (10 as a start) with alerts on 0xC0000234 bursts | | The listener is behind a gateway or VPN with multifactor authentication | A moderate threshold; guessing is limited to those already past the front door | | Service or local accounts that must never stop working | Do not rely on lockout; restrict where they may log on and alert on every failure | ## Evidence and monitoring The evidence an auditor can ask for is the effective value on each server class, the unlock procedure and who runs it, and the alert on lockout bursts with a record of the last time it fired. Event 4625 with status 0xC0000234 shows accounts being locked. Count them per hour; a sudden rise across many accounts is the denial-of-service pattern, and the same rise for one account may be a stale credential. The page also notes that Kerberos can retry sign-ins during encryption-type negotiation, and these retries count toward the threshold in mixed-version estates, so unexplained lockouts after a mixed rollout deserve that check.

  • Why can setting the threshold to 0 be defended for an RDP host, and when?
    A threshold of 0 never locks accounts, so outsiders cannot lock staff out and the help desk gets fewer calls. The page allows it only when the password policy requires complex passwords of eight or more characters and a robust audit mechanism alerts administrators to series of failed sign-ins. Without both, it leaves guessing unchecked on a reachable listener.
  • Why does an exposed listener make the lockout trade worse than an internal one?
    The same property that lets anyone guess also lets anyone lock accounts, since attempts need no privilege and no network authentication. On an internal listener only people already inside the network can do that. Removing the exposure changes who can trigger lockouts, so it improves both the guessing risk and the denial-of-service risk.
  • Why is the built-in Administrator account excluded from lockout?
    The page says it has a different risk profile and is excluded so that there is never a case where an administrator cannot sign in to remediate. That makes its protection depend on other measures such as a strong password, restricting where it may log on and alerting on its failures.

  • Lockout protects against offline password attacks
  • A threshold of 0 is the safest setting
  • Lockout stops pre-authentication flaws like BlueKeep
  • Only the user who mistyped can cause a lockout
  • The built-in Administrator account locks like any other
  • A lockout threshold replaces removing the exposure