Event ID 4625: An account failed to log on

Written when a logon attempt fails: wrong password, unknown user, locked or disabled account, or a policy restriction.

Log
Security
Category
Logon

Why it matters

  • Many failures for one account from one source is password guessing; a few failures each for many accounts from one source is password spraying.
  • The Status and Sub Status codes say why it failed: 0xC000006A is a wrong password for a real account, 0xC0000064 is a user that does not exist.
  • A run of failures followed by a 4624 success for the same account is the pattern to escalate.

What to check

Group by Source Network Address and Target Account Name over time. Check Logon Type, Status, Sub Status, Workstation Name and Process Name. Look for a later 4624 from the same source.

How to turn it on

Advanced Audit Policy: Logon/Logoff > Audit Logon (Failure).

Logon types

TypeNameMeaning
2InteractiveAt the keyboard or console.
3NetworkOver the network: file shares, many admin tools, PsExec, WMI.
4BatchScheduled tasks.
5ServiceA service started by the Service Control Manager.
7UnlockUnlocking the workstation.
8NetworkCleartextNetwork logon with the password sent in cleartext, such as IIS basic authentication.
9NewCredentialsrunas /netonly: local identity unchanged, other credentials used for network access.
10RemoteInteractiveRemote Desktop.
11CachedInteractiveLogon with cached domain credentials, without contacting a domain controller.
12CachedRemoteInteractiveRemote Desktop using cached credentials.
13CachedUnlockUnlock using cached credentials.

Failure status codes

Status / Sub StatusMeaning
0xC0000064The user name does not exist.
0xC000006AThe user name is correct but the password is wrong.
0xC000006DBad user name or password (general). Check Sub Status for the specific reason.
0xC000006EAccount restriction, such as a blank password not being allowed.
0xC000006FLogon outside the account's allowed hours.
0xC0000070Logon from a workstation the account is not allowed to use.
0xC0000071The password has expired.
0xC0000072The account is disabled.
0xC0000133Clocks on the client and domain controller are too far apart.
0xC000015BThe user has not been granted this logon type on this machine.
0xC0000193The account has expired.
0xC0000224The user must change their password at next logon.
0xC0000234The account is locked out.

MITRE ATT&CK

  • T1110 Brute Force
  • T1110.003 Password Spraying