Join our Newsletter — 33% off our NHI Course
Home› Guides› 0xC0000064 User Does Not Exist: Enumeration and Stale…
Guide Identity Visibility, Posture & Threat Detection

0xC0000064 User Does Not Exist: Enumeration and Stale Configs

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

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.

CodeNameMeaningAccount exists?Counts towards lockout?
0xC0000064STATUS_NO_SUCH_USERAccount name not foundNoNo (no account to count against)
0xC000006ASTATUS_WRONG_PASSWORDName valid, password wrongYesYes
0xC000006DSTATUS_LOGON_FAILUREGeneric failure: bad user name or authentication information; read Sub StatusUnknown from Status aloneDepends on Sub Status
0xC0000072STATUS_ACCOUNT_DISABLEDAccount exists but is disabledYesNo
0xC0000234STATUS_ACCOUNT_LOCKED_OUTAccount locked after too many bad attemptsYesAlready 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.

EventLogged onProtocolHow "no such user" appearsKey fields
4625 An account failed to log onThe computer where the logon was attempted (DC, member server or workstation)Any, including NTLM network logons and local logons0xC0000064 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 accountThe authority for the account: domain controller for domain accounts, the local computer for local accountsNTLM onlyError Code 0xC0000064Logon Account, Source Workstation (the destination is not recorded)
4768 A Kerberos authentication ticket (TGT) was requestedDomain controllers onlyKerberosFailure 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 failedDomain controllers onlyKerberosDoes not carry 0xC0000064; it records failures such as 0x18 (bad password) for accounts that existAccount 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 nameTypical patternWhere to lookFix
Windows service or scheduled task running as a deleted or renamed accountSame name, same host, regular interval, Logon Type 4 or 5 locally or Logon Type 3 on the targetServices and Task Scheduler on the source host named in Workstation Name or Source WorkstationRe-point to a current account or a group managed service account, then retire the old reference
Application connection string or config fileSame name from an application server to a database or file server, often NTLMApplication configuration, IIS application pools, ODBC data sourcesUpdate through change control; move the secret to a vault
Mapped drives, saved credentials, Credential Manager entriesUser workstation retrying an old personal or admin name after a renameThe user's saved credentials and logon scriptsRemove saved entries, update logon scripts
Multifunction printers and scan-to-folderDevice IP as source, a generic account name, bursts when users scanDevice admin consoleReconfigure with a current, scoped account
Mobile and mail clients after a rename or UPN changeOld name retried from many devices or a mail front endDevice management and mail server logsCommunicate the change; reprovision profiles
Monitoring, backup and inventory toolsTool server probing many hosts with one old nameTool credential storeUpdate the credential in the tool
Domain or computer name mismatchLocal account name tried against the domain, or the wrong domain prefixDomain field in the eventCorrect 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.

SignalStale configurationEnumeration or spraying
Distinct non-existent names per sourceOne or twoMany, often in a consistent naming format (first.last, initial plus surname)
TimingRegular interval, all day, every dayBurst over minutes or slow and steady over hours to stay under thresholds
Name qualityA real former account nameNames that never existed, common first names, role words such as admin, test, backup
SourceA known server, device or workstationAn unexpected workstation, a VPN pool address, an external address on an exposed service
Follow-on activityNone0xC000006A or 4771 0x18 against the names that do exist, then a 4624 success
Protocol mixMatches 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:

  1. Measure the baseline. For 30 days, count distinct non-existent account names per source per hour, separately for 4625, 4776 and 4768 0x6.
  2. Exclude fixed noise, with expiry. Remove the documented stale pairs you are still fixing, and set a review date on each exclusion.
  3. 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.
  4. Add a slow rule. Count distinct names per source over 24 hours to catch low and slow enumeration that stays under the short window.
  5. 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.
  6. 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

  1. Classify the event. Confirm the code (0xC0000064 in 4625 or 4776, or 0x6 in 4768), the protocol, and the computer that logged it.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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

FrameworkReferenceRelevance
MITRE ATT&CK v20T1087.002 Account Discovery: Domain Account; T1110.003 Brute Force: Password Spraying; T1589.003 Gather Victim Identity Information: Employee NamesName discovery, the spray that usually follows, and the reconnaissance that feeds it
NIST SP 800-53 Rev. 5AU-2 Event Logging, AU-6 Audit Record Review, Analysis, and Reporting, SI-4 System Monitoring, AC-7 Unsuccessful Logon AttemptsLogging the right events, reviewing them and limiting failed attempts
NIST CSF 2.0PR.AA-01, DE.CM-09, DE.AE-02Managing 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

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

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.