0xC0000064 tells you that Windows was asked to authenticate an account name that does not exist in the account store it checked, so the failure happened before any password was tested. On a quiet day the code comes from a typo, a renamed account or a forgotten service still trying an old name. On a bad day it is the first visible trace of someone building a list of valid user names before password spraying. This reference explains what the code means, which events carry it and which do not, how to separate stale configuration from enumeration, and how to set thresholds and investigate. It is for SOC analysts triaging failed logon alerts and Active Directory administrators cleaning up noisy authentication logs.
Key takeaways
- The name is wrong, not the password. 0xC0000064 is STATUS_NO_SUCH_USER: the specified account does not exist in the authority that checked it, either the domain or the local Security Accounts Manager (SAM).
- Three events carry the signal, under two names. Event 4625 and Event 4776 record 0xC0000064 for NTLM and local logons; Kerberos reports the same situation as result code 0x6 (KDC_ERR_C_PRINCIPAL_UNKNOWN) in Event 4768, not in Event 4771.
- Stale configuration is repetitive, enumeration is diverse. One old name failing every few minutes from one host is a broken service; many different names from one source in a short window is reconnaissance.
- Thresholds come from your own baseline. Microsoft's guidance deliberately says "N events in N minutes": count distinct non-existent names per source per window, not raw failures.
- Fix the noise first. Clearing stale service, task and device configurations makes the remaining 0xC0000064 events rare enough that a burst stands out.
What 0xC0000064 means
Microsoft's NTSTATUS reference ([MS-ERREF]) defines 0xC0000064 as STATUS_NO_SUCH_USER, "The specified account does not exist." The Event 4776 documentation describes the same code as "The username you typed does not exist. Bad username." The Event 4625 documentation lists it as "User logon with misspelled or bad user account" and adds that several in a row can be a sign of a user enumeration attack.
The important detail is order of checks. The authenticating authority first looks up the account name. If the name is not found, it stops and returns 0xC0000064. No password comparison happens, so the event says nothing about whether the caller knew a password. It also means the attempt does not increment a bad password count on any real account, so account lockout never triggers on it. An attacker can try thousands of guessed names without locking anyone out, which is why this code needs its own detection rather than relying on lockout alerts.
| Code | Name | Meaning | Account exists? | Counts towards lockout? |
|---|---|---|---|---|
| 0xC0000064 | STATUS_NO_SUCH_USER | Account name not found | No | No (no account to count against) |
| 0xC000006A | STATUS_WRONG_PASSWORD | Name valid, password wrong | Yes | Yes |
| 0xC000006D | STATUS_LOGON_FAILURE | Generic failure: bad user name or authentication information; read Sub Status | Unknown from Status alone | Depends on Sub Status |
| 0xC0000072 | STATUS_ACCOUNT_DISABLED | Account exists but is disabled | Yes | No |
| 0xC0000234 | STATUS_ACCOUNT_LOCKED_OUT | Account locked after too many bad attempts | Yes | Already locked |
The contrast between 0xC0000064 and 0xC000006A is what makes enumeration possible: if a service returns a different response for "no such user" and "wrong password", an outsider can test names. The Account Enumeration Prevention Guide covers removing that difference from web and application login flows; this page deals with the Windows and Active Directory side.
Where it appears
Which event you see depends on the protocol and on which computer is authoritative for the account. Read the right event on the right machine, or you will miss half the picture.
| Event | Logged on | Protocol | How "no such user" appears | Key fields |
|---|---|---|---|---|
| 4625 An account failed to log on | The computer where the logon was attempted (DC, member server or workstation) | Any, including NTLM network logons and local logons | 0xC0000064 in Status or Sub Status (often Status 0xC000006D with Sub Status 0xC0000064) | Account Name, Logon Type, Workstation Name, Source Network Address, Logon Process, Authentication Package |
| 4776 The computer attempted to validate the credentials for an account | The authority for the account: domain controller for domain accounts, the local computer for local accounts | NTLM only | Error Code 0xC0000064 | Logon Account, Source Workstation (the destination is not recorded) |
| 4768 A Kerberos authentication ticket (TGT) was requested | Domain controllers only | Kerberos | Failure with Result Code 0x6 KDC_ERR_C_PRINCIPAL_UNKNOWN ("The username doesn't exist") | Account Name, Client Address, Client Port, Result Code; User ID is the NULL SID on failures |
| 4771 Kerberos pre-authentication failed | Domain controllers only | Kerberos | Does not carry 0xC0000064; it records failures such as 0x18 (bad password) for accounts that exist | Account Name, Client Address, Failure Code |
- Event 4625: Microsoft states it is generated on the computer where the logon attempt was made. A failed network logon to a file server is logged on the file server, not on the domain controller, so you need member server logs in the SIEM. Parse both Status and Sub Status, because collectors differ in which they keep.
- Event 4776: generated only on the computer authoritative for the credentials. For domain accounts that is the domain controller; for local accounts it is the computer holding the SAM. It is enabled by the Audit Credential Validation subcategory, which Microsoft recommends auditing for failure on domain controllers, member servers and workstations.
- Event 4768 with 0x6: this is the Kerberos form of the same finding. Microsoft's 4768 guidance says that 0x6 events, N in the last N minutes, can indicate an account enumeration attack, especially for highly critical accounts. It is logged under Audit Kerberos Authentication Service on domain controllers.
- Event 4771 is the wrong place to look: many detection rules pair 4625 with 4771, but 4771 records pre-authentication failures for accounts the KDC found. Use it for password guessing against real accounts (0x18) and pair it with 4768 0x6 for name guessing.
- Cloud sign-in: Microsoft Entra ID reports the equivalent as AADSTS50034 UserAccountNotFound, which Microsoft says can come from a mistyped user name or from a user who is not in the tenant. Treat it the same way in sign-in log detections; see the Entra ID Sign-In and Audit Log Detection Guide.
For logon types and the structure of the authentication events in general, see the Windows Logon Types and Authentication Events guide.
Stale configurations
In most estates the majority of 0xC0000064 events are self-inflicted. Something holds an account name that was renamed, deleted or never existed in that domain, and it keeps retrying. These events are harmless individually but they hide real attacks and they point at non-human identities with no owner.
| Source of stale name | Typical pattern | Where to look | Fix |
|---|---|---|---|
| Windows service or scheduled task running as a deleted or renamed account | Same name, same host, regular interval, Logon Type 4 or 5 locally or Logon Type 3 on the target | Services and Task Scheduler on the source host named in Workstation Name or Source Workstation | Re-point to a current account or a group managed service account, then retire the old reference |
| Application connection string or config file | Same name from an application server to a database or file server, often NTLM | Application configuration, IIS application pools, ODBC data sources | Update through change control; move the secret to a vault |
| Mapped drives, saved credentials, Credential Manager entries | User workstation retrying an old personal or admin name after a rename | The user's saved credentials and logon scripts | Remove saved entries, update logon scripts |
| Multifunction printers and scan-to-folder | Device IP as source, a generic account name, bursts when users scan | Device admin console | Reconfigure with a current, scoped account |
| Mobile and mail clients after a rename or UPN change | Old name retried from many devices or a mail front end | Device management and mail server logs | Communicate the change; reprovision profiles |
| Monitoring, backup and inventory tools | Tool server probing many hosts with one old name | Tool credential store | Update the credential in the tool |
| Domain or computer name mismatch | Local account name tried against the domain, or the wrong domain prefix | Domain field in the event | Correct the domain or use the right local or domain account |
A useful rule: if the same non-existent name fails from the same source many times a day, every day, it is almost certainly configuration. Each one is also an inventory finding. A service still using a deleted account name has no owner who noticed it break. Record it in the service account inventory and assign an owner; see the Orphaned and Dormant Accounts guide and the Service Account Security Guide.
Clean up in a fixed order: start with the top ten noisiest name and source pairs, which usually account for most of the volume, fix them through change control, and track the remaining weekly count. A short allow list of known stale pairs is acceptable only with an expiry date and an owner, never as a permanent suppression.
Enumeration and spraying signals
Account enumeration (ATT&CK T1087.002 Domain Account under Account Discovery) is often a preparation step for password spraying (T1110.003). An attacker who knows employee names (T1589.003 Employee Names) generates candidate user names in the organisation's format and tests which ones exist. Against Active Directory, Kerberos is attractive because a TGT request for a non-existent name returns a different error from one for a real name, and the domain controller logs it as 4768 0x6 rather than as a logon failure on a member server.
| Signal | Stale configuration | Enumeration or spraying |
|---|---|---|
| Distinct non-existent names per source | One or two | Many, often in a consistent naming format (first.last, initial plus surname) |
| Timing | Regular interval, all day, every day | Burst over minutes or slow and steady over hours to stay under thresholds |
| Name quality | A real former account name | Names that never existed, common first names, role words such as admin, test, backup |
| Source | A known server, device or workstation | An unexpected workstation, a VPN pool address, an external address on an exposed service |
| Follow-on activity | None | 0xC000006A or 4771 0x18 against the names that do exist, then a 4624 success |
| Protocol mix | Matches the configured client (often NTLM) | Kerberos TGT requests from a non-domain host, or NTLM from a host that normally uses Kerberos |
The strongest single indicator is the sequence: a run of 0xC0000064 or 0x6 failures from one source, followed by wrong password failures against the valid subset, followed by any success. That pattern means the attacker has a confirmed list and possibly a working password. See the Password Spraying and Credential Stuffing Defence Guide for the wider control set.
Setting thresholds
Microsoft's 4625, 4776 and 4768 guidance all leave the threshold as "N events in N minutes" because volumes differ widely between estates. Build thresholds from your own data:
- Measure the baseline. For 30 days, count distinct non-existent account names per source per hour, separately for 4625, 4776 and 4768 0x6.
- Exclude fixed noise, with expiry. Remove the documented stale pairs you are still fixing, and set a review date on each exclusion.
- Alert on distinct names, not raw counts. A service failing 500 times with one name is noise; a source trying 15 different names in ten minutes is not. Start with a threshold just above the baseline's 99th percentile of distinct names per source and adjust after a pilot.
- Add a slow rule. Count distinct names per source over 24 hours to catch low and slow enumeration that stays under the short window.
- Raise priority on context. Lower thresholds for sources outside the internal ranges, for names that match the format of privileged or service accounts, and for any source that also produced a success.
- Test before relying on it. Run an authorised exercise from a test host using a list of invented names, confirm each rule fires, then record the result.
Investigation steps
- Classify the event. Confirm the code (0xC0000064 in 4625 or 4776, or 0x6 in 4768), the protocol, and the computer that logged it.
- Identify the source. Take Source Network Address or Workstation Name from 4625, Source Workstation from 4776, or Client Address from 4768. Resolve it to an asset and owner. If it is a known server or printer, check its configuration for the name.
- Count and list the names. One repeated name points to configuration; many names, especially in your naming format, point to enumeration. Check whether any names resemble privileged or service account formats.
- Look for follow-on activity. Search the same source for 0xC000006A, 4771 0x18, lockouts (0xC0000234) and 4624 successes in the hours after the burst. Any success against an account first seen in the burst escalates the case.
- Check the source host. If the source is an internal workstation that should not be authenticating many names, treat it as possibly compromised: review its process and network activity in EDR and isolate it if the activity has no business explanation.
- Contain. For an external source, block it at the exposed service and review what the service reveals. For an internal source, isolate and investigate. Reset passwords for any accounts that later saw a success from the source. The Password Spraying Attack Response Playbook covers the full response.
- Close the loop. For stale configuration, raise a change to fix the source and add the identity to the inventory. For enumeration, record the indicators, tune the rule and check that exposed services return uniform errors.
Detection and measurement
- Collection: enable Audit Logon (failure) everywhere for 4625, Audit Credential Validation (failure) for 4776, and Audit Kerberos Authentication Service (failure) on domain controllers for 4768. Forward member server logs, not just domain controller logs. See the Windows Event Log Guide.
- Deception: a few decoy account names that look real but are never used turn any authentication attempt against them into a high-confidence alert. See the Honeytokens and Canary Credentials Guide.
Metrics: weekly count of 0xC0000064 and 4768 0x6 events (should fall as stale configs are fixed); number of distinct stale name and source pairs open, and their median age; percentage of exclusions with an owner and expiry date; mean time from enumeration alert to source identified; number of authorised tests in which the enumeration rule fired (target all).
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| MITRE ATT&CK v20 | T1087.002 Account Discovery: Domain Account; T1110.003 Brute Force: Password Spraying; T1589.003 Gather Victim Identity Information: Employee Names | Name discovery, the spray that usually follows, and the reconnaissance that feeds it |
| NIST SP 800-53 Rev. 5 | AU-2 Event Logging, AU-6 Audit Record Review, Analysis, and Reporting, SI-4 System Monitoring, AC-7 Unsuccessful Logon Attempts | Logging the right events, reviewing them and limiting failed attempts |
| NIST CSF 2.0 | PR.AA-01, DE.CM-09, DE.AE-02 | Managing identities and credentials (stale references), monitoring and analysing adverse events |
Practitioner checklist
- Collect 4625 from all Windows systems, 4776 failures and 4768 failures from domain controllers, and parse both Status and Sub Status.
- Build detections on 4768 Result Code 0x6 alongside 4625 and 4776; do not rely on 4771 for name guessing.
- Baseline distinct non-existent names per source for 30 days, then alert on distinct names in short and 24 hour windows.
- Correlate enumeration bursts with later wrong password failures and successes from the same source.
- Fix the noisiest stale name and source pairs through change control and record each as an inventory finding with an owner.
- Give every exclusion an owner and an expiry date.
- Seed decoy account names and alert on any attempt against them.
- Test the rules with an authorised exercise using invented names at least twice a year.
Standards and references
- Microsoft: [MS-ERREF] NTSTATUS Values
- Microsoft: 4625(F) An account failed to log on
- Microsoft: 4776(S, F) The computer attempted to validate the credentials for an account
- Microsoft: 4768(S, F) A Kerberos authentication ticket (TGT) was requested
- Microsoft: 4771(F) Kerberos pre-authentication failed
- Microsoft: Audit Credential Validation
- Microsoft: Microsoft Entra authentication and authorization error codes
- MITRE ATT&CK: T1087.002 Account Discovery: Domain Account
Related NHI Mgmt Group resources: Account Enumeration Prevention Guide · 0xC000015B Logon Type Not Granted · Kerberos Error Codes Troubleshooting Guide · Active Directory Security Monitoring and Event IDs Guide · Account Lockout and Brute-Force Protection Guide