Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Event 4625 failure codes: what Status and Sub Status mean

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Event 4625 in the Security log of a Windows computer reads "An account failed to log on." It is written for every failed sign-in, whether the person mistyped a password, a service is using an old one, or someone is guessing. The reason is in two fields, Status and Sub Status, as hexadecimal codes beginning 0xC000. Without a table those codes are opaque, and different codes call for very different responses. What follows is that table, taken from Microsoft's page for the event and its protocol specification of NTSTATUS values, plus how to read the Logon Type that goes with them.

Nothing here changes anything. Each value is described by what Microsoft says it means and what it points to.

What the error means

Microsoft's event page, titled "4625(F): An account failed to log on.", says: "This event is logged for any logon failure. It generates on the computer where logon attempt was made, for example, if logon attempt was made on user's workstation, then event will be logged on this workstation." It adds that the event generates on domain controllers, member servers and workstations. Its subcategories are Audit Account Lockout and Audit Logon, and the minimum operating system is Windows Server 2008 or Windows Vista.

So a failed sign-in at a desk is logged on that desk's computer, and a failed sign-in to a file server is logged on that server. A domain controller records only the attempts made against it.

The fields that matter, as the page defines them:

  • Status: "the reason why logon failed". For this event the page says "it typically has" the value 0xC0000234, and its Failure Reason field is the "textual explanation of Status field value".
  • Sub Status: "additional information about logon failure." The page refers readers to the NTSTATUS Values page for the meaning of "various Status or Sub Status codes".
  • Logon Type: the kind of sign-in, from the table below.
  • Account For Which Logon Failed: the account named in the attempt.
  • Workstation Name and Source Network Address: where the attempt came from; the page says 127.0.0.1 or ::1 means localhost.
  • Logon Process and Authentication Package: which part of Windows handled it and with which protocol (NTLM, Kerberos or Negotiate).

The page does not say which of the two fields, Status or Sub Status, carries which kind of code. Its monitoring table lists every code under the combined heading "Failure Information\Status or Failure Information\Sub Status", so read both fields on each event.

The page's own example is a failure logged on the computer DC01.contoso.local for the account Auditor, with Status 0xc0000234, Failure Reason %%2307, Sub Status 0x0 and Logon Type 2. In its field description the page gives the Failure Reason value as "Account locked out".

Likely causes

Each code below pairs the wording Microsoft's event page gives with the name from the protocol specification page, which is the vendor's list of NTSTATUS values. The first column is as the event page prints the code.

Code NTSTATUS name Event page wording Specification wording
0xC0000064 STATUS_NO_SUCH_USER "User logon with misspelled or bad user account" The specified account does not exist.
0xC000006A STATUS_WRONG_PASSWORD "User logon with misspelled or bad password" When trying to update a password, this return status indicates that the value provided as the current password is not correct.
0XC000006D STATUS_LOGON_FAILURE "This is either due to a bad username or authentication information" The attempted logon is invalid. This is either due to a bad username or authentication information.
0xC000006F STATUS_INVALID_LOGON_HOURS "User logon outside authorized hours" The user account has time restrictions and cannot be logged onto at this time.
0xC0000070 STATUS_INVALID_WORKSTATION "User logon from unauthorized workstation" The user account is restricted so that it cannot be used to log on from the source workstation.
0xC0000072 STATUS_ACCOUNT_DISABLED "User logon to account disabled by administrator" The referenced account is currently disabled and cannot be logged on to.
0xC0000193 STATUS_ACCOUNT_EXPIRED "User logon with expired account" The user account has expired.
0XC000015B STATUS_LOGON_TYPE_NOT_GRANTED "The user has not been granted the requested logon type (aka logon right) at this machine" A user has requested a type of logon (for example, interactive or network) that has not been granted.
0xC0000234 STATUS_ACCOUNT_LOCKED_OUT the page's example, Failure Reason "Account locked out" The user account has been automatically locked because too many invalid logon attempts or password change attempts have been requested.
0XC000005E STATUS_NO_LOGON_SERVERS "There are currently no logon servers available to service the logon request." No logon servers are currently available to service the logon request.
0XC0000192 STATUS_NETLOGON_NOT_STARTED "An attempt was made to logon, but the Netlogon service was not started" An attempt was made to logon, but the NetLogon service was not started.
0xC0000413 STATUS_AUTHENTICATION_FIREWALL_FAILED "Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine" Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine.

Two notes on the table. The event page prints the hexadecimal digits with differing capital letters (0xC000006A, 0XC000006D), and the table keeps its spelling. And the wording for 0xC000006A on the specification page speaks of updating a password; the event page reads it as a misspelled or bad password. Treat the event page's reading as the one for a sign-in.

Microsoft's guidance attaches a priority to some of these. It says 0xC0000064 is "Especially if you get several of these events in a row, it can be a sign of a user enumeration attack". It says for 0xC000006A and 0xC000006D, for critical accounts or service accounts, "Especially watch for a number of such events in a row." And for 0XC000005E and 0XC0000192 it says "This issue is typically not a security issue", going on to say it can be an infrastructure or availability issue.

The specification page also lists 0xC0000071 STATUS_PASSWORD_EXPIRED ("The user account password has expired.") and 0xC0000224 STATUS_PASSWORD_MUST_CHANGE ("The user password must be changed before logging on the first time."). The event page's monitoring table does not list them, so no claim is made here about when they appear in event 4625.

Logon Type

The Logon Type field uses the event page's table:

Logon Type Title Meaning on the page
2 Interactive A user logged on to this computer.
3 Network A user or computer logged on to this computer from the network.
4 Batch Used by batch servers, where processes may be executing on behalf of a user without their direct intervention.
5 Service A service was started by the Service Control Manager.
7 Unlock This workstation was unlocked.
8 NetworkCleartext A user logged on from the network, and the password was passed to the authentication package in its unhashed form.
9 NewCredentials A caller cloned its current token and specified new credentials for outbound connections.
10 RemoteInteractive A user logged on remotely using Terminal Services or Remote Desktop.
11 CachedInteractive A user logged on with network credentials that were stored locally on the computer.

Prove the cause before changing anything

All of this only reads. Microsoft's page gives no command, so the steps are in Event Viewer terms.

  1. Open Event Viewer on the computer where the person tried to sign in, go to Windows Logs > Security and find the event with ID 4625. This is general practice, not on the page, but the page's own description says the event is logged on that computer.
  2. Read Logon Type first. A failed type 3 from a server name or an unknown address is a different story from a failed type 2 at someone's own desk. Type 10 is Remote Desktop.
  3. Read Status and Sub Status and look both up in the table. Record both values.
  4. Read Account For Which Logon Failed, Workstation Name and Source Network Address. For an account that should only be used from a known list of addresses, the page suggests comparing the network address with that list.
  5. Read Authentication Package. The page says NTLM, Kerberos or Negotiate, and that for NTLM the Package Name field says which version: "NTLM V1", "NTLM V2" or "LM". Microsoft's example monitoring idea: if your organisation always uses NTLM V2, look for events where the package name is not.
  6. Count the pattern. Several failures of 0xC0000064 against different names point one way; many 0xC000006A against one name point another. The page recommends monitoring "all 4625 events for local accounts" and "all 4625 events for service accounts".

Example (illustrative, not a recorded case): a bookkeeper phones to say her laptop will not let her in at 8:30. The laptop's Security log has event 4625 with Logon Type 2, an account name she recognises, and the code 0xC000006A. That is the wrong-password code for an interactive sign-in at her own desk, so the table points to a mistyped or recently changed password. If instead the code were 0xC0000234, the table would point to a locked account, and Account Keeps Locking Out: Find the Source From Event 4740 to the Process is the next place to read.

Fix

No change to an account, a policy or a service is instructed here, because the page gives none, and the right change depends on which account and which machine. What each code points to, as general advice, not statements on Microsoft's pages:

  • 0xC0000064 or 0XC000006D: check the name used is the name that exists, and whether the same name appears from several addresses.
  • 0xC000006A: the password given was wrong; ask whether it changed recently or a saved password is stale on a device or service.
  • 0xC0000234: the account is locked; find which machine keeps submitting the old password; Account Keeps Locking Out: Find the Source From Event 4740 to the Process covers that search.
  • 0xC0000072, 0xC0000193, 0xC000006F, 0xC0000070: the account is disabled or expired, or the attempt falls outside its hours or allowed workstations; whether that restriction is correct is a decision for whoever owns the account.
  • 0XC000015B: the account was not granted that logon type on that machine; for Remote Desktop, 'To sign in remotely, you need the right to sign in through Remote Desktop Services': fix the user right, group and GPO covers the user right.
  • 0XC000005E or 0XC0000192: look at the infrastructure, because the page says "This issue is typically not a security issue".
  • 0xC0000413: look at the authentication firewall between the account's domain and the target machine.

If a change to an account or a policy follows from this, handle it as its own change with its own record of the current state and a way back.

Confirm the fix

  • A new sign-in succeeds. Microsoft's page cross-references event 4624, "An account was successfully logged on", which uses the same Logon ID idea; the page says the Logon ID can help correlate events.
  • Repeat failures stop. If the same Status and Sub Status values keep arriving from the same source address, the cause has not been removed.
  • A lockout that followed 0xC000006A attempts does not return after the account is unlocked and the stale password source is gone.

What to watch afterwards

  • Mismatches between Logon Type and account. The page says to monitor Logon Type 4 (Batch) or 5 (Service) used by a member of a domain administrative group.
  • Source addresses outside your own list, for accounts that should only be used from known addresses.
  • A Key Length not equal to 128 for NTLM events. The page says all Windows operating systems since Windows 2000 support 128-bit key length.
  • A process name not in a standard folder, as the page suggests, if you know which process should be reporting the logon.

Risks and limits

These steps have not been run or lab-tested. The event page sits in Microsoft's previous-versions area, shows an example event timestamped 2015 and states a minimum of Windows Server 2008 and Windows Vista, so check how your own version labels the fields. The page does not say which field carries which code and gives no command; both limits are stated above. The Fix section is general advice, and every statement about what a code "points to" beyond the vendor's wording is general advice, not Microsoft's words. A single event is not proof of an attack.

Sources