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

NetLeverage
NetLeverage

Event 4776: NTLM credential validation error codes

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 4776 is the entry in the Security log that says a computer checked a user name and password using NTLM, the older Windows sign-in protocol, and whether the check passed. When it fails, the Error Code is the reason. What follows is a plain table of what its codes mean, taken from Microsoft's page for the event. It reads and explains; it does not change anything.

What the error means

Microsoft's page is titled "4776(S, F): The computer attempted to validate the credentials for an account." Its description reads: "This event generates every time that a credential validation occurs using NTLM authentication." It continues: "This event occurs only on the computer that is authoritative for the provided credentials. For domain accounts, the domain controller is authoritative. For local accounts, the local computer is authoritative."

That sentence decides where to look. A sign-in with a domain account leaves the event on a domain controller. A sign-in with a local account on a server leaves it on that server. The page says the event "shows successful and unsuccessful credential validation attempts" and that if a validation fails, "you'll see a Failure event with Error Code parameter value not equal to".

The page lists what the event does not do. It shows only the name of the computer the attempt came from, the Source Workstation, and says "Information about the destination computer (SERVER-1) isn't presented in this event." It also says "This event does not generate when a domain account logs on locally to a domain controller", and that the event "also generates when a workstation unlock event occurs".

The fields, as the page defines them:

  • Authentication Package: "It's always" MICROSOFT_AUTHENTICATION_PACKAGE_V1_0 for this event, so it does not help tell one failure from another.
  • Logon Account: the name of the account whose credentials were checked. The page says it can be a user name, a computer account name or a well-known security principal.
  • Source Workstation: "the name of the computer from which the logon attempt originated."
  • Error Code: the page says it "contains error code for Failure events. For Success events this parameter has" the value 0x0.

One oddity worth knowing: the page's field list calls the field Error Code, but in the event's XML example the same value sits under the name Status, with the value 0xc0000234 in lower case. The page's example event is a failure for the account dadmin from the workstation WIN81 on the domain controller DC01. As general advice, if you read the event's XML view in Event Viewer, look for Status rather than Error Code.

Likely causes

The page gives one table of "most common error codes" and names it "Table 1. Winlogon Error Codes." The descriptions are Microsoft's words.

Error Code Description on the page
0xC0000064 The username you typed does not exist. Bad username.
0xC000006A Account logon with misspelled or bad password.
0xC000006D Generic logon failure. Some of the potential causes for this: An invalid username and/or password was used LAN Manager Authentication Level mismatch between the source and target computers.
0xC000006F Account logon outside authorized hours.
0xC0000070 Account logon from unauthorized workstation.
0xC0000071 Account logon with expired password.
0xC0000072 Account logon to account disabled by administrator.
0xC0000193 Account logon with expired account.
0xC0000224 Account logon with "Change Password at Next Logon" flagged.
0xC0000234 Account logon with account locked.
0xC0000371 The local account store does not contain secret material for the specified account.
0x0 No errors.

The row for 0xC000006D lists two potential causes: an invalid user name or password, and a LAN Manager authentication level mismatch between the source and target computers.

What each one means to someone chasing a complaint:

  • 0xC0000064: the user name does not exist in the place that checked. For a domain account that is the domain; for a local account it is that computer.
  • 0xC000006A: the user name exists and the password was wrong. A stale saved password on a phone, a mapped drive or a scheduled task is one possible source, though that is general experience and not on the page.
  • 0xC0000234: the account is locked. The page's monitoring section says of a locked account: "Can indicate a brute-force password attack; especially relevant for highly critical accounts." Account Keeps Locking Out: Find the Source From Event 4740 to the Process uses 4776 to find the computer that keeps sending the old password.
  • 0xC0000072, 0xC0000193, 0xC0000071, 0xC0000224: the account is disabled, expired, its password has expired, or it has been flagged to change the password at the next sign-in.
  • 0xC000006F and 0xC0000070: the account has a time or computer restriction and the attempt breaks it.
  • 0xC000006D: the generic failure. Treat it as an invitation to look at the other event details, not as a reason in itself.
  • 0xC0000371: a local account on a computer where that account has no stored secret. The page gives no further explanation.

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, which is general practice and not a statement on the page.

  1. Decide which computer holds the account. For a domain account that is a domain controller; for a local account it is the computer the person was signing in to. Open Event Viewer there and go to Windows Logs > Security, then find event ID 4776 near the time of the complaint.
  2. Read the Error Code and look it up in the table above.
  3. Read Logon Account. Is it the name the person says they used? A name nobody recognises points to a different problem from a staff member's own name.
  4. Read Source Workstation. This is the one field that says where the attempt came from. The page's monitoring advice is to watch the Source Workstation for credential validation requests from an account you are concerned about, on computers where that person should not be signing in.
  5. Count. As general advice, one 0xC000006A on its own is consistent with a mistyped password. The page's monitoring table says N events in the last N minutes of bad user names "can be an indicator of an account enumeration attack", and the same for bad passwords as "a brute-force password attack", both "especially relevant for highly critical accounts".
  6. If the account is a local one, remember the page's note that "local logon will always use NTLM authentication if an account logs on to a device where its user account is stored", so, reading that note, a 4776 for a local account does not by itself show that someone is forcing NTLM.
  7. If the page's suggested comparison fits your case, look for events where Source Workstation and the Computer field on the event differ. The page recommends this for a local account that should be used only locally: "you need to monitor for all events where Source Workstation and Computer (where the event was generated and where the credentials are stored) have different values."

Example (illustrative, not a recorded case): an accounts clerk is locked out three times before 9:00 a.m. On the domain controller, 4776 events show Logon Account as her name and Error Code 0xC000006A, twice, then 0xC0000234. The Source Workstation on the first two is her own desk computer, and on some earlier events it is a computer name she does not recognise. The lockout code explains why she cannot sign in; the unfamiliar Source Workstation is the computer to find, because it is still sending an old password.

Fix

Nothing here tells you to change an account, a policy or a computer, because Microsoft's page does not, and the right change depends on the account and the machine. What each result points to, as general advice with the page's reading where it has one:

  • 0xC0000064: check the spelling of the user name used and whether the account was removed. If the name never existed anywhere, treat the source as unknown and look at the Source Workstation.
  • 0xC000006A: ask whether the password was changed recently and whether a saved copy of the old one lives on a device, a mapped drive or a service.
  • 0xC0000234: find the computer sending the old password, which is the work described in the lockout-source guide linked above, and decide separately whether the account should be unlocked.
  • 0xC0000072, 0xC0000193, 0xC0000071, 0xC0000224, 0xC000006F, 0xC0000070: each is a restriction on the account. Whether it is correct is for whoever owns the account to say.
  • 0xC000006D: the page names a mismatch in the LAN Manager authentication level between the two computers as one cause. Changing an authentication level is a security decision; do not do it from a single event.

If any of these leads to a change of an account or a security setting, treat it as its own change, with the current state written down first and a way back.

Confirm the fix

  • A new sign-in succeeds, and a 4776 event for the account now shows Error Code 0x0, which the page says is the value for success.
  • The same Error Code stops arriving from the same Source Workstation.
  • If the problem was a lockout, the account stays unlocked through the next working day without 0xC000006A events from the old source.

What to watch afterwards

The page's monitoring section lists these, and each is worth a standing look:

  • Logon Account values that match a high-value account such as a domain administrator, a service account or a domain controller account.
  • Logon Account values for accounts that should never be used, such as disabled or guest accounts.
  • Source Workstation values for computers that a given person should not be using.
  • Account names that do not follow your naming convention.
  • Error codes for bad user name, bad password, outside authorised hours, unauthorised workstation, disabled account, expired account and locked account. The page ties each of these to a pattern: for example, a bad user name to enumeration and a locked account to a brute-force attempt.

Because 4776 is written for every NTLM check on that computer, the page's remark that you can use it "to collect all NTLM authentication attempts in the domain, if needed" is also the starting point for the NTLM inventory described in our guide to checking NTLM use before restricting it.

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 names a minimum operating system of Windows Server 2008 and Windows Vista, so check how your own version labels the fields. The page lists only a selection of codes; a code not in its table is not explained here, and the table is described as Winlogon error codes although the event reports NTLM credential validation. The Fix section is general advice, and every statement about what a code points to beyond the vendor's wording is our reading. As general advice, one event on its own is not proof of an attack.

Sources