Windows Logon Failure Codes (4625 Status & SubStatus)

Updated

When a Windows logon fails, event 4625 records two NTSTATUS values: Status and SubStatus. Status is often the generic 0xC000006D ("bad username or authentication information"); SubStatus carries the specific reason — wrong password, unknown user, locked or disabled account. Domain controllers log the same values in event 4776 (NTLM credential validation) as Error Code, and the same failure can surface as a 4625 on the member server and a 4776 on the DC.

Read them in pairs. A burst of 0xC0000064 (no such user) against many names is username enumeration or spraying with a guessed list; 0xC000006A (wrong password) concentrated on a few real accounts is brute force; a 0xC0000234 lockout right after either means the attempt hit the lockout threshold, and event 4740 names the computer it came from. Each code's section below quotes Microsoft's NTSTATUS definition verbatim and gives the KQL or SPL to check your own data.

Decode a failed logon

Paste the Failure Information of a 4625 event, a 4776 line or just the codes: every Status and Sub Status in it is explained in Microsoft’s words. Nothing leaves your browser.

Try:

The codes, at a glance

Code What it means Password correct? Triage
0xC0000023 STATUS_BUFFER_TOO_SMALL The logon failed with a buffer-size error rather than a credential verdict — Microsoft describes it as a buffer too small to contain the entry, with nothing written, so read it as a software or data problem rather than a wrong password. Unclear low
0xC0000064 STATUS_NO_SUCH_USER Someone tried to log on with an account name that does not exist. Occasional typos are normal; bursts of invented names from one source are username guessing or spraying with a generic list. No medium
0xC000006A STATUS_WRONG_PASSWORD The account exists and the password was wrong. One event is a typo; many against one account is brute force; one source failing across many real accounts is password spraying. No medium
0xC000006D STATUS_LOGON_FAILURE The logon was rejected as invalid without saying which half was wrong — it is the general failure result that event 4625 usually carries in Status, with the real reason in Sub Status. No medium
0xC000006E STATUS_ACCOUNT_RESTRICTION The username and the authentication information were valid, but a restriction on the account — Microsoft's example is time-of-day restrictions — stopped the logon before it succeeded. Yes medium
0xC0000070 STATUS_INVALID_WORKSTATION The account is restricted to a list of computers it may log on from, and this attempt came from one that is not on the list, so Windows rejected it because of where it came from rather than because of the name or the password. Unclear medium
0xC0000071 STATUS_PASSWORD_EXPIRED Windows refused the logon because the account's password has expired and has to be changed — routine at the end of a password cycle for a person, but a broken job when it hits a service account and a lead when it comes from a host the account never uses. Unclear low
0xC0000072 STATUS_ACCOUNT_DISABLED Windows refused the logon because the account is disabled — the name exists, so the useful question is who or what still tries to use it, from where, and why. Unclear medium
0xC00000FE STATUS_NO_SUCH_PACKAGE The logon request asked for an authentication package the system does not know about, so it failed before any account name or password was checked. No low
0xC0000234 STATUS_ACCOUNT_LOCKED_OUT The account is locked because the lockout threshold was reached; every further attempt fails with this code until the lockout ends or an administrator unlocks it. Unclear medium
0xC00002EE STATUS_UNFINISHED_CONTEXT_DELETED The authentication exchange was torn down before it finished, so Windows recorded the attempt as a logon failure — the code describes an abandoned handshake, not a rejected username or password. Unclear low
0xC0000371 STATUS_NO_SECRETS The account was named, but the local account store held no secret material for it, so Windows had nothing to check the submitted credentials against — this is a credential-store or account-state problem rather than a wrong password. — low

Each code is explained in full below. Code not listed? Look up any Microsoft code — AADSTS, NTSTATUS, Kerberos and Win32, with Microsoft’s official text.

0xC0000023 Triage: low

0xC0000023 in Event 4625: STATUS_BUFFER_TOO_SMALL, Not a Bad Password

The logon failed with a buffer-size error rather than a credential verdict — Microsoft describes it as a buffer too small to contain the entry, with nothing written, so read it as a software or data problem rather than a wrong password.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

STATUS_BUFFER_TOO_SMALL

{Buffer Too Small} The buffer is too small to contain the entry. No information has been written to the buffer.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC0000023 STATUS_BUFFER_TOO_SMALL This code
Sub Status:
0x0

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

0xC0000023 is STATUS_BUFFER_TOO_SMALL in Microsoft’s NTSTATUS table: “{Buffer Too Small} The buffer is too small to contain the entry. No information has been written to the buffer.” It describes a call that could not return its data because the caller supplied too little room for it — not a judgement about an account name, a password or a policy.

Event 4625 records whatever NTSTATUS value the failed logon returned, and those values are drawn from that general table, so codes with no authentication meaning can appear there. When you see this one, nothing in the event tells you whether the credentials were ever evaluated: treat the password question as unanswered and look for the answer elsewhere, in a 4624 success or another 4625 for the same account.

In the shape shown in the example box on this page, the code is the overall Status and Sub Status is 0x0 — there is no second, more specific reason to report. That is the same arrangement as Microsoft’s documented 4625 example of a lockout, where Status carries the reason and Sub Status is 0x0. Because the value can also be copied into Sub Status depending on the path that produced the event, query both fields.

Is it an attack?

There is no documented attack pattern behind this code, and it is not one of the credential verdicts an attacker’s guesses produce. The useful reading is operational:

What you seeReading
One or two events on one host, no other failuresTransient fault in the logon path; note and move on
The same host, process or logon process repeating itA client, service or authentication provider on that host handling data it cannot fit — a reliability bug, not a credential problem
Arrives inside a burst that also contains 0xC000006D or wrong-password Sub Status values from one sourceTriage the burst on those codes; this one adds nothing to the credential picture

Do not promote an incident on the strength of this code alone, and do not count it as a failed password attempt in spray maths — doing so inflates the failure count for sources that never guessed anything.

How to investigate

Find the events and the context that explains them — which machine, which logon process and authentication package, and which caller:

SecurityEvent
| where TimeGenerated > ago(30d)
| where EventID == 4625
| where Status =~ "0xc0000023" or SubStatus =~ "0xc0000023"
| summarize Events = count(), Accounts = make_set(TargetUserName, 10),
            Sources = make_set(IpAddress, 10), LogonTypes = make_set(LogonType, 5),
            Packages = make_set(AuthenticationPackageName, 5),
            Processes = make_set(ProcessName, 5)
    by Computer, LogonProcessName
| order by Events desc

If one Computer and LogonProcessName dominate, the investigation belongs with that host: check what authentication providers are installed, what application owns the ProcessName in the events, and whether the host’s build is current. A single affected machine with an unusual logon process is a far better lead than the account names in the events.

Then confirm the account itself is healthy, so the entry can be closed rather than carried:

let odd = SecurityEvent
    | where TimeGenerated > ago(7d) and EventID == 4625
    | where Status =~ "0xc0000023" or SubStatus =~ "0xc0000023"
    | project OddTime = TimeGenerated, TargetUserName, Computer;
SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4624
| join kind=inner odd on TargetUserName, Computer
| project TimeGenerated, OddTime, Computer, TargetUserName, LogonType, IpAddress
| order by TimeGenerated desc

Successful logons for the same account on the same machine around the same period support the reading that the buffer error was a one-off in the logon path and the credentials are fine. If no success exists and the user reports being unable to sign in, work the problem as a client or provider fault on that host.

Without a SIEM, export the Security log as XML from Event Viewer and group the 4625 events by Status and Sub Status in the free browser analyzer — that quickly shows whether this code is isolated or sitting inside a larger failure pattern worth reading on its other codes, such as 0xC00000FE or 0xC00002EE.

Related codes

Questions about 0xC0000023
Does 0xC0000023 mean someone typed the wrong password?
No. Microsoft defines 0xC0000023 as STATUS_BUFFER_TOO_SMALL: "The buffer is too small to contain the entry. No information has been written to the buffer." Nothing in that description refers to an account, a password or a policy. The wrong-password verdict in event 4625 is Sub Status 0xC000006A, and a name that does not exist is 0xC0000064.
Why would a generic buffer error appear in a logon failure event?
Event 4625 reports the NTSTATUS value the authentication path returned, and those values come from Microsoft's shared NTSTATUS table rather than from a list written only for logons. Any component in the chain that returns STATUS_BUFFER_TOO_SMALL can therefore end up as the Status of the recorded failure, which is why the code says nothing about the credentials themselves.
Should I raise an alert on 0xC0000023?
It is not a credential-guessing indicator, so it does not belong in a brute-force or spraying rule. It is worth a low-priority queue entry when it repeats, because a logon path that keeps failing with a buffer error usually points at a broken client, a third-party authentication provider or malformed logon data on one host rather than at a user.
Should I read Status or Sub Status for this code?
Read both. In the shape shown in the example on this page the code sits in Status with Sub Status 0x0, the same arrangement Microsoft's own 4625 lockout example uses, where the specific reason is in Status. Because tooling and forwarders differ, query both columns with a case-insensitive comparison so you do not miss events where the value landed in Sub Status.

↑ All codes

0xC0000064 Triage: medium

0xC0000064 in Event 4625: No Such User — Enumeration or a Typo?

Someone tried to log on with an account name that does not exist. Occasional typos are normal; bursts of invented names from one source are username guessing or spraying with a generic list.

Did the attacker have the password? No — the password (or username) was wrong.

Microsoft's definition

STATUS_NO_SUCH_USER

The specified account does not exist.

Microsoft's 4625 monitoring note: "User logon with misspelled or bad user account". Especially if you get several of these events in a row, it can be a sign of a user enumeration attack.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Sub Status field, usually alongside Status 0xC000006D
  • Event 4776 (credential validation, NTLM) on domain controllers: the Error Code field
  • Microsoft Sentinel / Log Analytics: the SubStatus and Status columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC000006D STATUS_LOGON_FAILURE
Sub Status:
0xC0000064 STATUS_NO_SUCH_USER This code

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

Sub Status 0xC0000064 — STATUS_NO_SUCH_USER — means the name in the logon attempt did not match any account on the computer or in the domain. No password was checked because there was nothing to check it against. On domain controllers, the same value appears as the Error Code of event 4776 for NTLM attempts.

Where it is logged depends on the account and protocol. For a local account the target computer logs the 4625. For a domain account over NTLM the member server logs 4625 and the domain controller logs 4776; over Kerberos the domain controller records event 4768 with failure code 0x6 instead.

On its own it is the most harmless-looking failure code. In volume it is one of the clearest attack signals in the Security log, because real users rarely mistype their own username repeatedly.

Is it an attack?

  • A burst of generic names (administrator, admin, test, user, guest) from an external IP — automated scanning of exposed RDP or SMB. Expect it on anything internet-facing; act on the exposure.
  • Many plausible names (first.last, initials) from one source — guessing based on harvested employee names, often the start of a spray.
  • A mix of 0xC0000064 and 0xC000006A from one source — a spray in progress that has found real accounts.
  • One stale name, one internal host, a regular interval — a task, service or mapped drive pointing at a deleted account.

Microsoft’s own monitoring note for this code warns that several of these events in a row can be a sign of a user enumeration attack.

How to investigate

Find sources that tried many non-existent names:

SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4625 and SubStatus =~ "0xc0000064"
| summarize Attempts = count(), DistinctNames = dcount(TargetUserName),
            SampleNames = make_set(TargetUserName, 20), LogonTypes = make_set(LogonType, 5)
    by IpAddress, WorkstationName, Computer
| where DistinctNames >= 5
| order by DistinctNames desc

For each source, check whether it also produced 0xC000006A (real accounts found) or a 4624 success. If the source is external, close or restrict the exposed service — RDP and SMB should not be reachable from the internet — and block the address. If it is internal, the host is either misconfigured or compromised; the regularity of the attempts usually tells you which. The Windows 4625 password-spray rule covers the detection side.

Related codes

Questions about 0xC0000064
Which usernames do attackers try?
Internet-facing RDP and SMB see the same short list over and over: administrator, admin, user, test, guest, backup and their variants in other languages. A burst of 0xC0000064 with names like these from an external IP is automated scanning rather than a targeted attack, but it proves the service is reachable from the internet, which is the finding to act on.
Can 0xC0000064 come from legitimate systems?
Yes. A deleted or renamed account still configured in a scheduled task, service, script or mapped drive fails with this code on every retry. The pattern is one name, one source host, a regular interval, and a name that used to exist in the directory. Fixing or removing the stale configuration stops it.
How is 0xC0000064 different from 0xC000006A?
0xC0000064 means the account does not exist; 0xC000006A means it exists and the password was wrong. A source producing mostly 0xC0000064 is still guessing names. One that starts producing 0xC000006A has found real accounts, and that switch is the moment to escalate the investigation.
How do I find the machine that sent the attempts?
In event 4625 the Workstation Name and Source Network Address fields identify the client, and domain controllers record the source workstation in event 4776 for NTLM attempts. Behind a VPN concentrator, gateway or proxy the address may be the gateway itself, so continue in that device's own logs to reach the real origin.

↑ All codes

0xC000006A Triage: medium

0xC000006A in Event 4625: Wrong Password — Brute Force or a Typo?

The account exists and the password was wrong. One event is a typo; many against one account is brute force; one source failing across many real accounts is password spraying.

Did the attacker have the password? No — the password (or username) was wrong.

Microsoft's definition

STATUS_WRONG_PASSWORD

When trying to update a password, this return status indicates that the value provided as the current password is not correct.

Microsoft's 4625 monitoring note: "User logon with misspelled or bad password" for critical accounts or service accounts. Especially watch for a number of such events in a row.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Sub Status field, usually alongside Status 0xC000006D
  • Event 4776 (credential validation, NTLM) on domain controllers: the Error Code field
  • Microsoft Sentinel / Log Analytics: the SubStatus and Status columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC000006D STATUS_LOGON_FAILURE
Sub Status:
0xC000006A STATUS_WRONG_PASSWORD This code

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

In event 4625 the Status field usually carries the general result 0xC000006D and the Sub Status carries the reason: 0xC000006A means the account was found and the password did not match. Microsoft’s NTSTATUS table words it from the password-change point of view, but in logon events it simply means “wrong password for an existing account.” Domain controllers record the same value as the Error Code of event 4776 when they validate NTLM credentials.

Two fields change how you read it: Logon Type (3 is network logon such as SMB — and also failed RDP attempts when Network Level Authentication is on; 10 is RemoteInteractive; 8 is NetworkCleartext, typical of basic authentication to IIS) and Source Network Address, the client the attempt came from.

Is it an attack?

PatternReading
One account, a couple of failures, then a 4624 success from the same workstationA typo
One account, failures every few minutes from one internal serverAn old password stored in a service, task or mapped drive
One account, dozens of failures in minutes from one sourceBrute force — expect a lockout (0xC0000234)
One source, failures across many real accountsPassword spraying
External source, logon type 3 or 10, admin-like account namesInternet-exposed RDP or SMB under attack

A spray usually mixes 0xC000006A (real accounts) with 0xC0000064 (guessed names that do not exist). The Windows 4625 password-spray rule is built on exactly that grouping.

How to investigate

Group wrong-password failures by source and see how many accounts each source touched:

SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4625 and SubStatus =~ "0xc000006a"
| summarize Failures = count(), Accounts = dcount(TargetUserName),
            AccountList = make_set(TargetUserName, 20), LogonTypes = make_set(LogonType, 5)
    by IpAddress, Computer
| order by Failures desc

Then answer the only question that changes the severity — did any of those sources log on successfully afterwards?

let failures = SecurityEvent
    | where TimeGenerated > ago(1d) and EventID == 4625 and SubStatus =~ "0xc000006a"
    | summarize FailCount = count(), LastFail = max(TimeGenerated) by IpAddress, TargetUserName;
SecurityEvent
| where TimeGenerated > ago(1d) and EventID == 4624
| join kind=inner failures on IpAddress, TargetUserName
| where TimeGenerated > LastFail
| project TimeGenerated, Computer, TargetUserName, IpAddress, LogonType, FailCount

A success after failures from the same source is a compromise: disable or reset the account, isolate the source if it is internal, and review what the session did. Without a SIEM, export the Security log from Event Viewer as XML and load it into the free browser analyzer, which groups 4625 failures by source and Sub Status.

Related codes

Questions about 0xC000006A
Does 0xC000006A confirm the username is valid?
Yes. Windows records 0xC0000064 when the account does not exist, so 0xC000006A means the name matched a real account and only the password was wrong. For triage that separates attacks on real accounts from noise against guessed names, and it tells you which accounts an attacker is actually working on.
Why is Status 0xC000006D while Sub Status is 0xC000006A?
Status holds the general result — 0xC000006D, a bad username or authentication information — and Sub Status holds the specific reason. Always read Sub Status when Status is 0xC000006D; it is where 0xC000006A, 0xC0000064 and the account-state codes such as disabled or expired appear.
How many 0xC000006A failures should trigger an alert?
There is no universal number, but the shapes are reliable: ten or more failures for one account from one source within minutes is brute force, and one source failing for five or more different accounts in an hour is spraying. Service accounts deserve a lower threshold, as Microsoft's monitoring note says, because they should never mistype a password.
What if the failures come from one of our own servers?
Check the Logon Type and the Process Name in the event. Regular type 3 failures from an application server usually come from a scheduled task, service or mapped drive still using an old password after a reset; the timing is regular and the account recently changed its password. Failures from an internet-facing host or an unfamiliar address are an attack until shown otherwise.
Event 4625 says 'Failure Reason: Unknown user name or bad password' with Status 0xC000006D and Sub Status 0xC000006A — which is it?
It is a bad password, not an unknown user. The "unknown user name or bad password" text is the generic wording tied to Status 0xC000006D; the Sub Status gives the real reason. Sub Status 0xC000006A means the account was found and only the password did not match. Had the name not existed, you would see Sub Status 0xC0000064 instead. So treat it as a failed attempt against a real account, then check Logon Type and Source Network Address to tell a typo or stale saved password from brute force or spraying.

↑ All codes

0xC000006D Triage: medium

0xC000006D in Event 4625: Bad Username or Password — Read the Sub Status

The logon was rejected as invalid without saying which half was wrong — it is the general failure result that event 4625 usually carries in Status, with the real reason in Sub Status.

Did the attacker have the password? No — the password (or username) was wrong.

Microsoft's definition

STATUS_LOGON_FAILURE

The attempted logon is invalid. This is either due to a bad username or authentication information.

Microsoft's 4625 monitoring note: "This is either due to a bad username or authentication information" for critical accounts or service accounts. Especially watch for a number of such events in a row.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Event 4776 (credential validation, NTLM) on domain controllers: the Error Code field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC000006D STATUS_LOGON_FAILURE This code
Sub Status:
0xC000006A STATUS_WRONG_PASSWORD

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

Event 4625 records two status fields. Status is the general result of the logon attempt and Sub Status is the specific reason. 0xC000006D — STATUS_LOGON_FAILURE — is the generic “this logon is invalid” result, and it is the value you will see in Status for the great majority of password-related 4625 events.

Authentication protocols avoid telling a caller whether the username or the password was wrong, which is exactly what the official wording reflects. Windows keeps the detail for the local log, in Sub Status:

StatusSub StatusReading
0xC000006D0xC0000064The account name does not exist
0xC000006D0xC000006AThe account exists, the password was wrong
0xC000006D0xC000006D or missingThe event does not say which failed

Account-state rejections normally arrive under a different Status, 0xC000006E, with the reason in Sub Status — for example 0xC0000072 for a disabled account or 0xC0000071 for an expired password. A lockout surfaces as 0xC0000234. So a plain 0xC000006D tells you the credential itself was refused, not that the account is in a restricted state.

Domain controllers can also record 0xC000006D as the Error Code of event 4776 when they validate NTLM credentials.

Is it an attack?

Two other fields decide this: Logon Type (3 is network, including SMB and RDP attempts with Network Level Authentication; 10 is RemoteInteractive; 2 is at the console) and the source address.

  • One or two failures for one user, then a 4624 success from the same workstation — a typo.
  • Regular failures every few minutes from one of your own servers — a stored credential in a service, scheduled task or mapped drive that was never updated after a password change. The timing is machine-like and the account usually changed its password recently.
  • Dozens of failures for one account from a single source in minutes — brute force, often ending in a lockout.
  • One source failing against many different account names in an hour — password spraying. A spray typically mixes real accounts (Sub Status 0xC000006A) with invented names (0xC0000064); the Windows 4625 password-spray rule groups exactly that way.
  • External address, logon type 3 or 10, administrator-like names — internet-exposed RDP or SMB under attack.

How to investigate

Start by grouping the general failures by source and seeing which sub-status reasons each source produced:

SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4625 and Status =~ "0xc000006d"
| summarize Failures = count(), Accounts = dcount(TargetUserName),
            AccountList = make_set(TargetUserName, 20),
            Reasons = make_set(SubStatus, 10), LogonTypes = make_set(LogonType, 5)
    by IpAddress, WorkstationName, Computer
| order by Failures desc

A source with many accounts and a wide spread of reasons is enumerating; a source with one account and one reason is grinding a single password.

Then answer the question that changes the severity — did the source eventually get in?

let failures = SecurityEvent
    | where TimeGenerated > ago(1d) and EventID == 4625 and Status =~ "0xc000006d"
    | summarize FailCount = count(), LastFail = max(TimeGenerated) by IpAddress, TargetUserName;
SecurityEvent
| where TimeGenerated > ago(1d) and EventID == 4624
| join kind=inner failures on IpAddress, TargetUserName
| where TimeGenerated > LastFail
| project TimeGenerated, Computer, TargetUserName, TargetDomainName, IpAddress, LogonType, FailCount

Any success after a run of failures from the same source is a compromise until proven otherwise: reset the account, isolate the source if it is internal, and review what the session touched. If the failures turn out to be a service with a stale password, fix the credential rather than suppressing the alert — the noise hides real spraying against the same host. Without a SIEM, export the Security log from Event Viewer as XML and load it into the free browser analyzer, which groups 4625 events by source and Sub Status.

Related codes

Questions about 0xC000006D
What is the difference between Status 0xC000006D and Sub Status 0xC000006D?
Status holds the general outcome of the logon and Sub Status holds the specific reason. In most 4625 events Status is 0xC000006D and Sub Status carries the detail — 0xC0000064 for a name that does not exist, 0xC000006A for a wrong password on a real account. When Sub Status repeats 0xC000006D, or is absent, the event is not telling you which half failed and you have to infer it from the surrounding events.
Does 0xC000006D mean the account exists?
On its own, no. Microsoft's description covers both a bad username and bad authentication information, so the code deliberately does not distinguish them. Read the Sub Status in the same event: 0xC0000064 means the name did not resolve to an account, while 0xC000006A means the name matched and only the password was wrong.
Why do I see 4625 events with Status 0xC000006D and no useful Sub Status?
Some authentication paths and third-party or non-domain clients produce 4625 records where the sub-status detail is missing or just repeats the general failure. Treat those events by shape rather than by code — count attempts per source address, per account and per logon type, and check whether a 4624 success follows from the same source.
How many 0xC000006D failures are worth alerting on?
There is no vendor-published number. The useful shapes are the same as for any credential attack — dozens of failures against one account from one source within minutes is brute force, and one source failing against many different accounts in an hour is spraying. Service accounts and administrator accounts deserve a lower threshold because they should not be mistyping passwords at all.
What does 'Error Code (Custom)' 0xC000006D mean in my SIEM or log forwarder?
"Error Code (Custom)" is just a field label some log pipelines and SIEM schemas use for the status value they lift out of the Windows event — most often the Error Code field of event 4776 (NTLM credential validation on a domain controller) or the Status field of event 4625. The value itself is the standard NTSTATUS 0xC000006D, STATUS_LOGON_FAILURE: the logon was rejected as invalid, from either a bad username or bad authentication information. Event 4776 carries no Sub Status, so correlate with the matching 4625 to see which half failed.

↑ All codes

0xC000006E Triage: medium

0xC000006E: Windows Logon Blocked by an Account Restriction

The username and the authentication information were valid, but a restriction on the account — Microsoft's example is time-of-day restrictions — stopped the logon before it succeeded.

Did the attacker have the password? Yes — the password was accepted; the sign-in failed at a later step. Treat the credential as known to whoever attempted it.

Microsoft's definition

STATUS_ACCOUNT_RESTRICTION

Indicates a referenced user name and authentication information are valid, but some user account restriction has prevented successful authentication (such as time-of-day restrictions).

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC000006E STATUS_ACCOUNT_RESTRICTION This code
Sub Status:
0xC0000072 STATUS_ACCOUNT_DISABLED

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

0xC000006E is STATUS_ACCOUNT_RESTRICTION. Windows resolved the account name and accepted the authentication information, then refused the logon because of a restriction on the account itself. Microsoft’s example is time-of-day restrictions; the same status covers the family of “the credentials are fine, the account may not log on like this right now” conditions.

For triage the useful half of that sentence is the first half: the submitted credentials were valid. This is not a guessing failure like 0xC000006A (real account, wrong password) or 0xC0000064 (name does not exist). Someone, or something, had working credentials.

In event 4625 the code can appear in Status — in which case Sub Status carries the specific reason — or as the Sub Status itself. Read it together with Logon Type (3 network, 10 RemoteInteractive, 5 service, 4 batch) and Source Network Address, which tell you what kind of access was attempted and from where.

Is it an attack?

PatternReading
One user, logon type 2 or 10, outside their working hoursLogon-hours or workstation restriction doing its job
Service or batch logon failing on a fixed schedule from one internal hostA scheduled task or service using an account whose restrictions exclude that host or time
A single account, repeatedly, right after an administrator disabled or expired itSomething still holds the old credentials — a stored password, a token, or a person
One external or unfamiliar address, one account, valid credentials each timeCredential theft or reuse blocked only by account state — escalate
One source, 0xC000006E across several accountsSomeone is working through a set of credentials they already have (T1078)

The distinction that matters: an account disabled during offboarding failing from the ex-employee’s laptop is cleanup; the same code from a host that should never touch that account is an incident.

How to investigate

Start by listing which accounts are hitting the restriction, from where, and with which specific Sub Status:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4625 and (Status =~ "0xc000006e" or SubStatus =~ "0xc000006e")
| summarize Attempts = count(), Sources = dcount(IpAddress),
            SubStatuses = make_set(SubStatus, 10), LogonTypes = make_set(LogonType, 5),
            SourceList = make_set(IpAddress, 20), Hosts = make_set(Computer, 10)
    by TargetUserName, TargetDomainName
| order by Attempts desc

Then answer the question that sets the severity — did the same account and source ever succeed once the restriction no longer applied?

let restricted = SecurityEvent
    | where TimeGenerated > ago(7d) and EventID == 4625
    | where Status =~ "0xc000006e" or SubStatus =~ "0xc000006e"
    | summarize Fails = count(), LastFail = max(TimeGenerated) by TargetUserName, IpAddress;
SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4624
| join kind=inner restricted on TargetUserName, IpAddress
| where TimeGenerated > LastFail
| project TimeGenerated, Computer, TargetUserName, IpAddress, LogonType, WorkstationName, Fails
| order by TimeGenerated desc

If the source is unrecognised, treat the password as compromised: reset it, check which sessions and tokens exist for the account, and review what the account could reach had the restriction not been there. If the source is a known server, confirm the account’s logon hours, its logon workstations list and any authentication policy before changing anything — the fix is usually configuration, not a reset. Without a SIEM, export the Security log as XML from Event Viewer and group the 4625 events by source and Sub Status in the free browser analyzer.

Related codes

Questions about 0xC000006E
Does 0xC000006E mean the password was correct?
Yes. Microsoft's NTSTATUS description says the referenced user name and authentication information are valid and that a user account restriction prevented the authentication. Treat the credentials as known to whoever sent the attempt, and judge the event by whether that person should have them.
What restriction actually blocked the logon?
0xC000006E does not say on its own. When it appears in the Status field of event 4625, read Sub Status, because Windows has separate codes for a disabled account (0xC0000072), an expired account (0xC0000193), an expired password (0xC0000071), a logon-hours violation (0xC000006F) and a workstation restriction (0xC0000070). If Sub Status is also 0xC000006E, check the account's logon hours, logon workstations and any authentication policy silo it belongs to.
Why do I see 0xC000006E for service accounts at the same time every night?
That pattern usually means the account has logon-hours restrictions or a workstations list that does not include the host running the job, and the schedule falls outside them. Confirm with the account's properties in Active Directory and with the Logon Type and Source Network Address in the event before assuming an intrusion.
Is a burst of 0xC000006E from one source worth escalating?
Yes, more than the same volume of wrong-password failures. Each event says the credentials offered were valid, so repeated hits from one address mean someone holds working credentials for one or more accounts and is being stopped only by account state or policy. Verify the source is a known host and check for any 4624 success from it afterwards.
What is error code 0xC000006E in Windows?
0xC000006E is the NTSTATUS code STATUS_ACCOUNT_RESTRICTION. Microsoft's description says the user name and authentication information are valid, but some account restriction — their example is time-of-day restrictions — prevented the authentication. You normally meet it as the Status or Sub Status field of event 4625 (An account failed to log on), or in the Status and SubStatus columns of the SecurityEvent table in Sentinel. It is not a wrong-password error: the credentials offered worked, so the question is whether the sender should have had them.

↑ All codes

0xC0000070 Triage: medium

0xC0000070: Logon Blocked — Account Not Allowed From That Workstation

The account is restricted to a list of computers it may log on from, and this attempt came from one that is not on the list, so Windows rejected it because of where it came from rather than because of the name or the password.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

STATUS_INVALID_WORKSTATION

The user account is restricted so that it cannot be used to log on from the source workstation.

Microsoft's 4625 monitoring note: "User logon from unauthorized workstation".

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Event 4776 (credential validation, NTLM) on domain controllers: the Error Code field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC000006E STATUS_ACCOUNT_RESTRICTION
Sub Status:
0xC0000070 STATUS_INVALID_WORKSTATION This code

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

Some accounts are limited to a named set of computers they may log on from — the allowed-workstation list configured on the user account in Active Directory. When a logon request for such an account arrives from a machine that is not on that list, Windows stops the logon and returns 0xC0000070, STATUS_INVALID_WORKSTATION: “The user account is restricted so that it cannot be used to log on from the source workstation.”

Nothing in that wording describes the username or the password. The code tells you the request was rejected because of where it came from, so do not record it in a ticket as a wrong-password event the way you would 0xC000006A, and do not assume the credentials were good either.

Four fields in event 4625 carry the weight here:

  • Account Name / Account Domain — the restricted account someone tried to use.
  • Workstation Name — the computer name the request claims to come from. It is reported by the client and is sometimes blank, which can itself be the reason the restriction did not match.
  • Source Network Address — the client’s IP, usually more trustworthy than the name.
  • Logon Type — 3 for network logons such as SMB, 10 for RemoteInteractive, 2 for an interactive console logon.

Domain controllers record the same value in the Error Code of event 4776 when they validate NTLM credentials, so the same code can reach you from two different event IDs.

Is it an attack?

PatternReading
One user, one new or rebuilt PC, failures stop after IT updates the accountStale allowed-workstation list
Service or admin account, failures from a jump host or terminal serverThe hop’s computer name was never added to the permitted list
Restricted admin account, failures from a workstation that belongs to a different userSomeone is using credentials away from the machine they belong to
Blank or unfamiliar Workstation Name with an external Source Network AddressRemote use of the account; treat as suspicious until the source is identified
Several restricted accounts failing from one source in a short windowHarvested credentials being tried wherever they will work

The restriction is the last control that stopped the logon, so the question to answer is whether the person at that source had any business holding those credentials. On accounts that exist precisely to be pinned to a handful of machines, an unlisted source is an incident lead, not a configuration annoyance.

How to investigate

Start by listing which accounts hit the restriction and from where:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4625
| where Status =~ "0xc0000070" or SubStatus =~ "0xc0000070"
| summarize Attempts = count(), LastSeen = max(TimeGenerated),
            Sources = make_set(IpAddress, 20), Workstations = make_set(WorkstationName, 20),
            LogonTypes = make_set(LogonType, 5), Targets = make_set(Computer, 10)
    by TargetUserName, TargetDomainName
| order by Attempts desc

Then check the outcome that changes the severity — did the same account and source later succeed somewhere the restriction did not apply?

let blocked = SecurityEvent
    | where TimeGenerated > ago(7d) and EventID == 4625
    | where Status =~ "0xc0000070" or SubStatus =~ "0xc0000070"
    | summarize BlockedAttempts = count(), FirstBlock = min(TimeGenerated)
        by TargetUserName, IpAddress;
SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4624
| join kind=inner blocked on TargetUserName, IpAddress
| where TimeGenerated > FirstBlock
| project TimeGenerated, Computer, TargetUserName, IpAddress, LogonType, WorkstationName, BlockedAttempts
| order by TimeGenerated asc

For each hit, confirm with the account owner or the application team whether that source is theirs. If it is, fix the permitted-computer list rather than removing the restriction. If it is not — or the source is an address nobody claims — treat the credentials as exposed: reset the password, review the account’s other logons across the window, and look for the same source address in failures for other accounts. Without a SIEM, export the Security log as XML from Event Viewer and group the 4625 events by source and status in the free browser analyzer.

Related codes

Questions about 0xC0000070
Does 0xC0000070 mean the password was correct?
Microsoft's description says only that "The user account is restricted so that it cannot be used to log on from the source workstation" — it does not state whether the credentials were checked. Treat the code as evidence about where the attempt came from, not as proof that the password was right or wrong, and look for other events from the same source and account before deciding.
Why does a legitimate user get 0xC0000070 from their own PC?
The usual cause is the account's allowed-workstation list being out of date — the user was given a new or renamed computer, or they are connecting through a jump host, terminal server or VPN concentrator whose name is not on the list, so the name presented in the logon request does not match any permitted entry. Check the account's permitted computers against the Workstation Name and Source Network Address in event 4625.
How is 0xC0000070 different from 0xC000006E?
Both are account restrictions rather than bad credentials, but 0xC000006E is the general restriction result (Microsoft's example is time-of-day restrictions), while 0xC0000070 names the specific reason — the source workstation is not one the account is allowed to use. When 0xC0000070 appears as a Sub Status, read it as the detail behind the broader failure.
Is 0xC0000070 worth an alert?
Yes, because it is rare in most environments and Microsoft's own logon monitoring guidance for this code is "User logon from unauthorized workstation". Accounts that carry a workstation restriction are usually administrative or service accounts, so any attempt to use one from an unlisted machine deserves a human look rather than a dashboard tile.

↑ All codes

0xC0000071 Triage: low

0xC0000071 in Event 4625: The Account's Password Has Expired

Windows refused the logon because the account's password has expired and has to be changed — routine at the end of a password cycle for a person, but a broken job when it hits a service account and a lead when it comes from a host the account never uses.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

STATUS_PASSWORD_EXPIRED

The user account password has expired.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Event 4776 (credential validation, NTLM) on domain controllers: the Error Code field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC000006D STATUS_LOGON_FAILURE
Sub Status:
0xC0000071 STATUS_PASSWORD_EXPIRED This code

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

Event 4625 records a logon that Windows refused, and the Status and Sub Status fields say why. 0xC0000071 is STATUS_PASSWORD_EXPIRED: “The user account password has expired.” The account name was resolved, the account is not what blocked the attempt — the password attached to it has passed its maximum age and has to be changed before it can be used again.

In 4625 the specific reason normally sits in Sub Status alongside the general failure 0xC000006D in Status, the same shape as 0xC000006A. Depending on the package that reported the failure, 0xC0000071 can also show up in Status itself, so when you search, match on either field. Domain controllers validating NTLM credentials put the same value in the Error Code field of event 4776, and the Kerberos path produces 0x17 instead.

Two other fields decide how interesting the entry is: Logon Type (3 network, 10 RemoteInteractive, 8 NetworkCleartext) and Source Network Address / Workstation Name, which tell you whether the attempt came from the person’s own machine, an application server, or somewhere unexpected.

Is it an attack?

Usually not. The ordinary case is a password cycle: an account that nobody has signed into for a while reaches its maximum age, the first attempt after that fails with 0xC0000071, and the user changes the password and gets on with their day. A successful 4624 for the same account shortly afterwards closes the case.

What is worth a second look:

PatternReading
One user, a couple of failures, then a success from the same workstationRoutine password change
One account, failures on a fixed schedule from one internal serverA service, scheduled task or mapped drive holding an expired secret — an availability problem, not an attack
A dormant or leaver account failing this wayThe account should probably be disabled; find out what is still calling it
Failures from an address or workstation the account has never usedSomeone is trying a credential they obtained elsewhere (T1078)
One source producing expired, disabled and wrong-password failures across many accountsA credential list being replayed — compare with 0xC0000072 and 0xC000006A

The value itself does not prove that whoever sent the request knew the current password, so do not escalate on the code alone — escalate on where it came from.

How to investigate

Start by listing which accounts are hitting the expiry and from where:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4625
| where Status =~ "0xc0000071" or SubStatus =~ "0xc0000071"
| summarize Failures = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),
            Sources = make_set(IpAddress, 10), Workstations = make_set(WorkstationName, 10),
            LogonTypes = make_set(LogonType, 5)
    by TargetUserName, TargetDomainName, Computer
| order by Failures desc

Then separate the broken jobs from the interesting attempts by looking at the rhythm — a service retrying an expired secret produces an even hourly count, a person does not:

SecurityEvent
| where TimeGenerated > ago(14d)
| where EventID == 4625 and (Status =~ "0xc0000071" or SubStatus =~ "0xc0000071")
| summarize Attempts = count() by bin(TimeGenerated, 1h), TargetUserName, IpAddress, LogonType
| order by TargetUserName asc, TimeGenerated asc

For each account, decide which of three cases it is. A person: have them change the password normally. A service or task: find the host from IpAddress / WorkstationName, update the stored credential, and review whether the account should have an expiring password at all. A dormant account: disable it, and check whether the same source also produced failures for other accounts before you close the ticket. If you are working from an exported Security log rather than a SIEM, the free browser analyzer groups 4625 events by source and status code.

Related codes

Questions about 0xC0000071
Does 0xC0000071 mean the password that was typed was correct?
The event does not say. Microsoft's NTSTATUS text for 0xC0000071 is only "The user account password has expired", which describes the state of the account's password rather than the value that was presented. A simple mismatch against an existing account is normally recorded as 0xC000006A, so 0xC0000071 points at the expiry rather than at a wrong entry — but treat that as a strong hint, not a proof, when you are deciding whether a credential is known to an attacker.
Why does a service account produce 0xC0000071?
Because its password is subject to an expiry just like a user's. If the account was never flagged to keep its password indefinitely, or a password policy was applied or tightened, the stored secret in the service, scheduled task or mapped drive keeps being presented after the expiry date and every attempt fails. The giveaway is a steady, machine-like cadence of failures from the same internal host rather than a handful of attempts around someone's working hours.
What is the Kerberos equivalent of 0xC0000071?
On a domain controller the same situation appears as Kerberos result code 0x17, KDC_ERR_KEY_EXPIRED, where the password has expired and must be changed before a ticket is issued. See [0x17](/reference/kerberos-failure-codes/#0x17). If authentication went through NTLM instead, the domain controller records the NTSTATUS value in the Error Code field of event 4776.
Should an expired-password failure from an external address worry me?
Yes, enough to check it. An expired password usually means the account is stale or half-decommissioned, so an attempt from an address or workstation the account has never used suggests someone is working through a list of old credentials. Look at the Logon Type, the source address and whether the same source produced failures for other accounts, then confirm whether the account should still exist at all.

↑ All codes

0xC0000072 Triage: medium

0xC0000072: Logon Failed Because the Account Is Disabled

Windows refused the logon because the account is disabled — the name exists, so the useful question is who or what still tries to use it, from where, and why.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

STATUS_ACCOUNT_DISABLED

The referenced account is currently disabled and cannot be logged on to.

Microsoft's 4625 monitoring note: "User logon to account disabled by administrator".

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Event 4776 (credential validation, NTLM) on domain controllers: the Error Code field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC000006E STATUS_ACCOUNT_RESTRICTION
Sub Status:
0xC0000072 STATUS_ACCOUNT_DISABLED This code

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

0xC0000072 is the NTSTATUS value STATUS_ACCOUNT_DISABLED: “The referenced account is currently disabled and cannot be logged on to.” In Microsoft’s 4625 documentation the code carries the note “User logon to account disabled by administrator.” Windows recognised the account name and refused the logon because the account’s disabled flag is set.

In event 4625 the code usually appears as the Sub Status, under the general account-restriction Status 0xC000006E; on domain controllers it can also appear as the Error Code of an NTLM credential validation (event 4776). The Kerberos form of the same refusal is 0x12 KDC_ERR_CLIENT_REVOKED, and in Entra ID sign-in logs the cloud equivalent is AADSTS50057 (UserDisabled).

Because the account exists, the code is useful in a way “unknown user” failures such as 0xC0000064 are not: it points at a specific identity that someone, or something, still expects to work.

Is it an attack?

PatternReading
Same account, same source host, failures at a regular intervalA service, scheduled task or mapped drive still configured with the account
Logon type 5 (service) or 4 (batch)Almost certainly a stale service or task — find it on the source host
Account of someone who just left, from their old laptop or phoneA forgotten device still signing in
Account of someone who left months ago, from an unfamiliar addressPossible misuse of known credentials — investigate
One source failing against many accounts with 0xC0000072, 0xC000006A and 0xC0000064 mixedPassword spraying or guessing across a username list
Failures shortly before the account is re-enabledSomeone may be waiting for the account to come back

Disabled accounts are attractive to attackers precisely because nobody watches them: a former employee’s or a decommissioned service’s credentials may still be valid elsewhere, and a re-enabled account inherits its old group memberships. A failure stream against a disabled privileged account deserves more urgency than one against an ordinary user.

How to investigate

Group the failures by account, source and logon type:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4625 and (Status =~ "0xc0000072" or SubStatus =~ "0xc0000072")
| summarize Failures = count(), Sources = make_set(IpAddress, 10), Workstations = make_set(WorkstationName, 10),
            LogonTypes = make_set(LogonType, 5), Hosts = make_set(Computer, 10),
            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by TargetUserName, TargetDomainName
| order by Failures desc

Then look at the sources from the other side — a single source failing across many accounts is guessing, not a stale service:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4625
| summarize Accounts = dcount(TargetUserName), Disabled = dcountif(TargetUserName, SubStatus =~ "0xc0000072" or Status =~ "0xc0000072"),
            WrongPassword = dcountif(TargetUserName, SubStatus =~ "0xc000006a"), UnknownUser = dcountif(TargetUserName, SubStatus =~ "0xc0000064")
    by IpAddress, WorkstationName
| where Disabled > 0 and Accounts >= 5
| order by Accounts desc

For a stale service, go to the source host named in Workstation Name or the source address and find the service, task or stored credential still using the account; replace it with a dedicated service account or a group managed service account. For anything you cannot attribute, keep the account disabled, check whether the same credentials succeed against other systems (VPN, cloud, applications that do not use Active Directory), and check when the account was disabled and by whom — event 4725, “A user account was disabled” — and whether a 4722 re-enable followed. The Windows 4625 password-spray rule covers the many-accounts-from-one-source shape. With no SIEM, export the Security log as XML and load it into the free browser log analyzer.

Related codes

Questions about 0xC0000072
Does 0xC0000072 mean the password was correct?
Microsoft's descriptions say only that the account is currently disabled and cannot be logged on to, and the 4625 monitoring note reads "User logon to account disabled by administrator" — neither states whether the password was checked. Treat the code as proof that someone used a real account name, not as proof the password was right, and decide from the source and timing.
Why does 4625 show Status 0xC000006E with Sub Status 0xC0000072?
0xC000006E is the general account-restriction status, and the Sub Status gives the specific restriction — here, that the account is disabled. Search both fields for 0xC0000072, as the queries on this page do, so you catch the code wherever your logs record it.
Who keeps trying to log on with a disabled account?
Most often something configured long ago — a service, scheduled task, mapped drive or mobile device still holding the departed user's or retired service account's credentials, retrying on a timer from the same host. Less often, a former employee, or an attacker working through a list of account names that includes disabled ones, which shows as one source failing against many accounts with mixed status codes.
Should I re-enable an account that shows 0xC0000072?
Only after finding what is using it. Re-enabling restores whatever is behind the failures — including an attacker who has the password. Identify the source host and process first; if it is a legitimate service, give it its own managed account instead of reviving a disabled one, and if nobody owns the source, keep the account disabled and investigate the host.

↑ All codes

0xC00000FE Triage: low

0xC00000FE: Logon Failed — the Authentication Package Is Unknown

The logon request asked for an authentication package the system does not know about, so it failed before any account name or password was checked.

Did the attacker have the password? No — the password (or username) was wrong.

Microsoft's definition

STATUS_NO_SUCH_PACKAGE

A specified authentication package is unknown.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC00000FE STATUS_NO_SUCH_PACKAGE This code
Sub Status:
0xC00000FE STATUS_NO_SUCH_PACKAGE This code

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

Before Windows checks a credential it has to decide which authentication package will do the checking. The logon request names a package — Kerberos, NTLM, Negotiate or a security support provider supplied by another product — and the Local Security Authority looks that name up among the packages registered on the computer. 0xC00000FE is the result when the lookup fails: Microsoft’s NTSTATUS table defines STATUS_NO_SUCH_PACKAGE as “A specified authentication package is unknown.”

That places the failure earlier in the sequence than almost every other code you meet in event 4625. Nothing was validated: no account was looked up, no password was compared, no account-state check such as disabled, expired or locked out was reached. The attempt stopped at the point where the authentication subsystem was being chosen.

Three fields of the same 4625 event matter more than the account name here. Authentication Package is the package the logon authentication process used, Logon Process is the process that submitted the request, and Package Name (NTLM only) records the NTLM sub-protocol when NTLM was involved. Together they tell you what the caller asked for and which component asked.

Is it an attack?

There is no credential-guessing signal in this code, and Microsoft’s reference text does not associate it with any attack technique. A burst of 0xC00000FE entries does not mean a burst of passwords was tried — the attempts never got that far — so it should not be read like 0xC000006A or counted toward a spray.

What it is worth is a question about the host and the caller:

PatternReading
A handful of events from one application server, one logon process, always the same package nameA client or agent on that host requesting a provider the target does not have installed
Events that start the day a product was uninstalled, patched or migratedThe calling software still names a package that is no longer registered there
An unfamiliar package or logon process name on a domain controller or jump hostWorth running down: find the process, confirm the software is expected

Authentication packages are also an LSA extension point that MITRE tracks as Authentication Package (T1547.002), where a DLL name is added to the Lsa registry key to have LSA load it at boot. 0xC00000FE is the opposite outcome — a name that resolved to nothing — so it is not evidence of that technique. It is, however, a reason to check which packages a sensitive host has registered and whether every one of them is accounted for.

How to investigate

Start by grouping the events by host and by what the caller asked for, not by account:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4625
| where Status =~ "0xc00000fe" or SubStatus =~ "0xc00000fe"
| summarize Events = count(), Accounts = make_set(TargetUserName, 10),
            Sources = make_set(IpAddress, 10), Workstations = make_set(WorkstationName, 10)
    by Computer, AuthenticationPackageName, LogonProcessName, PackageName, LogonType
| order by Events desc

A single computer, a single logon process and one or two accounts points at local software. Many computers hit from one address points at a client that was reconfigured.

Then look at everything else the same source did, to see whether the package error sits beside real credential failures:

let pkg = SecurityEvent
    | where TimeGenerated > ago(7d) and EventID == 4625
    | where Status =~ "0xc00000fe" or SubStatus =~ "0xc00000fe"
    | distinct IpAddress, Computer;
SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4625
| join kind=inner pkg on IpAddress, Computer
| summarize Failures = count(), Accounts = dcount(TargetUserName)
    by IpAddress, Computer, Status, SubStatus
| order by Failures desc

If the same source also produces 0xC000006A or 0xC0000064 failures, triage those first — they are the events that involve credentials, and the package error is a side effect of the same client. If 0xC00000FE is all there is, the work is on the host: identify the process behind the Logon Process field, confirm the software that owns it, and check the authentication and security packages registered on the target computer against what you expect to be installed there.

Without a SIEM, export the Security log as XML from Event Viewer and load it into the free browser analyzer to group 4625 events by Status and Sub Status and see how rare this value is in your own environment.

Related codes

MITRE ATT&CK: T1547.002

Questions about 0xC00000FE
Does 0xC00000FE mean someone guessed a wrong password?
No. Microsoft defines the value as "A specified authentication package is unknown." The request failed while Windows was resolving which authentication package to use, which happens before any account name or password is validated, so the code says nothing about whether a credential was correct. Wrong-password failures carry 0xC000006A instead.
Is 0xC00000FE in the Status field or the Sub Status field of event 4625?
Either field can carry it, so read both. Event 4625 records a general result in Status and a more specific reason in Sub Status; when the failure happens at the package-selection stage the same value often appears in both. Also read the Authentication Package, Logon Process and Package Name fields of the same event, because those name what the client asked for.
What actually causes it?
Microsoft's NTSTATUS table gives only the one-line meaning and does not list causes, so treat anything more as inference from your own data. In practice the client or application asked for a security support provider by a name the Local Security Authority on that computer has no entry for — a third-party or custom provider that is not installed on the target host, or a name supplied incorrectly by the calling code.
Should I alert on 0xC00000FE?
It is normally too rare and too non-specific for a standing alert on its own. Baseline it per computer and per logon process first; then alert on an unfamiliar package or logon process name, or on the value appearing on a domain controller or an internet-facing host where it has never been seen before, and investigate that host rather than the account.

↑ All codes

0xC0000234 Triage: medium

0xC0000234: Windows Account Locked Out — Find the Source

The account is locked because the lockout threshold was reached; every further attempt fails with this code until the lockout ends or an administrator unlocks it.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

STATUS_ACCOUNT_LOCKED_OUT

The user account has been automatically locked because too many invalid logon attempts or password change attempts have been requested.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status field, with Failure Reason "Account locked out"
  • Event 4740 (A user account was locked out) on domain controllers: records the lockout itself and the Caller Computer Name
  • Microsoft Sentinel / Log Analytics: the Status column of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC0000234 STATUS_ACCOUNT_LOCKED_OUT This code
Sub Status:
0x0

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

0xC0000234 — STATUS_ACCOUNT_LOCKED_OUT — appears in the Status field of event 4625 (with the Failure Reason “Account locked out”) once an account has crossed the domain or local lockout threshold. From then until the lockout duration expires or an administrator unlocks the account, every logon attempt fails with this code, whether the password is right or wrong.

The lockout itself is recorded once, by event 4740 on domain controllers. That event names the locked account and the Caller Computer Name, the machine the failed attempts came from — the single most useful field for finding the cause.

Is it an attack?

PatternReading
One user, repeated lockouts, caller is their own phone or laptopA stale password on a device after a password change
A service or admin account, caller is an application serverOld credentials in a service, scheduled task or script
Many accounts locked within minutes from one callerPassword spraying or brute force crossing the threshold
Lockouts on admin accounts from an internet-facing hostExposed RDP or SMB under attack

Lockouts are usually preceded by a run of 0xC000006A for the same account; if the run includes 0xC0000064 for other names from the same source, it is a spray.

How to investigate

List the lockouts and the machines that caused them. In the SecurityEvent table, event 4740 stores the Caller Computer Name in the TargetDomainName column:

SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4740
| project TimeGenerated, LockedAccount = TargetUserName, CallerComputer = TargetDomainName, DomainController = Computer
| order by TimeGenerated desc

Then look at the failures that ran into the lock, grouped by source:

SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4625 and (Status =~ "0xc0000234" or SubStatus =~ "0xc000006a")
| summarize Failures = count(), LockedOutAttempts = countif(Status =~ "0xc0000234"),
            Accounts = make_set(TargetUserName, 20)
    by IpAddress, WorkstationName
| order by LockedOutAttempts desc, Failures desc

Fix stale credentials on the caller when it is one of your own devices. When the caller is unknown or external, block it, check that no 4624 success for the locked accounts followed from the same source, and review the Windows 4625 password-spray rule for ongoing detection.

Related codes

Questions about 0xC0000234
How do I find what caused the lockout?
Domain controllers log event 4740 for each lockout, including the Caller Computer Name — the machine the bad attempts came from. Look at the 4625 and 4771 events from that machine just before the lockout to see the process, logon type and source address responsible, and check the services, tasks and saved credentials on it.
Does a locked account mean the password was guessed?
No. A lockout means enough wrong passwords arrived to cross the threshold; nothing was accepted. Check whether a successful logon (event 4624) for the account followed from the same source once the lockout ended — that, not the lockout itself, is the sign of compromise.
Why does one user keep getting locked out?
The most common cause is a device or service still using an old password after a change: a phone syncing mail, a mapped drive, a saved RDP credential or a scheduled task. The Caller Computer Name in event 4740 points at it. Repeated lockouts from an unknown host or an external address are an attack.
Can attackers lock accounts on purpose?
Yes. Crossing the threshold for many accounts denies those users access, and a very low lockout threshold makes that cheap to do. Bursts of lockouts across many accounts at once should be handled as an incident in their own right, even when no logon succeeded.
What is error code 0xc0000234?
0xC0000234 is the Windows status code STATUS_ACCOUNT_LOCKED_OUT. It appears in the Status field of event 4625 with the Failure Reason "Account locked out", meaning the account crossed the domain or local lockout threshold after too many invalid logon or password-change attempts. Until the lockout duration expires or an administrator unlocks the account, every attempt fails with this code — even with the correct password. The lockout itself is logged once as event 4740 on a domain controller, which names the Caller Computer Name: the machine the failed attempts came from.

↑ All codes

0xC00002EE Triage: low

0xC00002EE: Windows Logon Failure — Security Context Deleted Early

The authentication exchange was torn down before it finished, so Windows recorded the attempt as a logon failure — the code describes an abandoned handshake, not a rejected username or password.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

STATUS_UNFINISHED_CONTEXT_DELETED

A security context was deleted before the context was completed. This is considered a logon failure.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC00002EE STATUS_UNFINISHED_CONTEXT_DELETED This code
Sub Status:
0x0

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

Windows authentication through SSPI — NTLM, Kerberos or Negotiate behind a protocol such as SMB or RDP — is not a single message. The client and the server build a security context over several exchanges before the logon is either accepted or refused. 0xC00002EE is recorded when that context is deleted before the exchange reaches an outcome; Microsoft’s NTSTATUS table words it as “A security context was deleted before the context was completed. This is considered a logon failure.”

For triage the key point is what the code does not say. It makes no claim about the account name or the password. Windows has dedicated values for those outcomes — 0xC0000064 for a name that does not exist, 0xC000006A for a real account with the wrong password, 0xC0000234 for a locked account — and none of them is present here. Treat 0xC00002EE as “the attempt stopped mid-handshake” and look elsewhere in the same source’s events for whether credentials were ever evaluated.

Read both fields in the event. When Status is 0xC000006D the real reason lives in Sub Status; when this code sits in Status and Sub Status is 0x0, the event carries nothing more specific.

Microsoft does not publish a list of the client or network conditions that produce this status, so any mapping you make to a particular product or protocol behaviour should be confirmed against your own logs before you rely on it in a runbook.

Is it an attack?

PatternReading
Occasional events from known workstations, one account eachInterrupted or abandoned authentication attempts; low interest on their own
Steady low-rate events from one internal server, always the same accountInvestigate as an application or service problem, not an intrusion
One external source, many different account namesAuthentication probing — pivot to the other 4625 codes from that source
This code alongside 0xC000006A or 0xC0000064 from the same IPThe source is guessing credentials; this code is a by-product, the others carry the evidence
Followed by a 4624 success from the same source and accountSomething completed later — reconstruct the session before dismissing anything

Because the code is silent about credentials, severity comes from the surrounding events, not from this one.

How to investigate

Start by grouping the events by source to see whether any single address is spraying names:

SecurityEvent
| where TimeGenerated > ago(1d)
| where EventID == 4625
| where Status =~ "0xc00002ee" or SubStatus =~ "0xc00002ee"
| summarize Events = count(), Accounts = dcount(TargetUserName),
            AccountList = make_set(TargetUserName, 20),
            LogonTypes = make_set(LogonType, 5), Hosts = make_set(Computer, 10)
    by IpAddress
| order by Events desc

Then take any source that touched several accounts and look at the full mix of failure codes it produced — that is where a credential attack shows itself:

let suspect = "192.0.2.50";
SecurityEvent
| where TimeGenerated > ago(1d) and EventID == 4625 and IpAddress == suspect
| summarize Events = count(), Accounts = dcount(TargetUserName),
            AccountList = make_set(TargetUserName, 20)
    by Status, SubStatus, LogonType
| order by Events desc

Finally, check whether that source ever succeeded:

SecurityEvent
| where TimeGenerated > ago(1d) and EventID == 4624 and IpAddress == "192.0.2.50"
| project TimeGenerated, Computer, TargetUserName, TargetDomainName, LogonType, WorkstationName
| order by TimeGenerated asc

If the source is internal and repeats on a schedule, hand it to the owning team as a configuration fault. If it is external and paired with wrong-password or unknown-user failures, handle it as credential guessing — the Windows 4625 password-spray rule groups those failures by source. Without a SIEM, export the Security log as XML from Event Viewer and load it into the free browser analyzer to group 4625 events by source address and status.

Related codes

Questions about 0xC00002EE
Does 0xC00002EE mean the password was wrong?
No. Microsoft describes it as a security context that "was deleted before the context was completed", which is a statement about the authentication exchange ending early, not about the credentials. Windows has specific codes for those — 0xC0000064 for an account that does not exist and 0xC000006A for a real account with a bad password — so if you need to know whether a password was checked, look for those codes from the same source instead.
Why does the event show Status 0xC00002EE and Sub Status 0x0?
In event 4625 the Status field holds the general result and Sub Status the more specific reason. When Sub Status is 0x0 there is no extra detail to read, so the Status value is all the event gives you. Always check both fields before triaging, because the pairing differs between events and the credential-specific codes normally appear in Sub Status.
Is a burst of 0xC00002EE events worth alerting on?
On its own it is weak evidence, because the code only says the exchange was abandoned. It becomes interesting when one source address produces it against many different account names, when it arrives from an internet-facing host, or when the same source also generates wrong-password and unknown-user failures. Alert on the combination and the source, not on this code in isolation.
Can I filter 0xC00002EE out of my 4625 alerting?
Only after baselining it per source and per host. Suppressing it blindly removes evidence that a source was attempting authentication at all, which matters when you later reconstruct an attacker's activity. A safer approach is to keep the events searchable but exclude known-noisy internal hosts from alert rules, and review that exclusion list periodically.
What is error code 0xc00002ee in Windows?
0xC00002EE is the NTSTATUS value STATUS_UNFINISHED_CONTEXT_DELETED, which Microsoft defines as "A security context was deleted before the context was completed. This is considered a logon failure." You normally see it as the Status value of event 4625 (An account failed to log on), or in the Status/SubStatus columns of the SecurityEvent table in Sentinel. It means an SSPI authentication exchange — NTLM, Kerberos or Negotiate behind SMB or RDP — was torn down mid-handshake, so it says nothing about whether the username or password was correct.

↑ All codes

0xC0000371 Triage: low

0xC0000371 in Event 4625: No Secret Material for the Account

The account was named, but the local account store held no secret material for it, so Windows had nothing to check the submitted credentials against — this is a credential-store or account-state problem rather than a wrong password.

Did the attacker have the password? Not applicable — this code is not about password verification.

Microsoft's definition

STATUS_NO_SECRETS

The local account store does not contain secret material for the specified account.

Source: [MS-ERREF] NTSTATUS Values · checked against the published table on every build

Where it appears

  • Event 4625 (An account failed to log on): the Status or Sub Status field
  • Event 4776 (credential validation, NTLM) on domain controllers: the Error Code field
  • Microsoft Sentinel / Log Analytics: the Status and SubStatus columns of the SecurityEvent table
Where it sits in event 4625: an example

Event 4625 · An account failed to log on

Failure Information:

Status:
0xC0000371 STATUS_NO_SECRETS This code
Sub Status:
0x0

Microsoft's event 4625 documentation: Status is “the reason why logon failed”, Sub Status “additional information about logon failure”. In Microsoft Sentinel they are the Status and SubStatus columns of SecurityEvent.

What it means

Event 4625 records a logon failure with an NTSTATUS value in Status and, when the authentication package supplies one, a more specific value in Sub Status. 0xC0000371 is STATUS_NO_SECRETS, which Microsoft’s NTSTATUS table defines as: “The local account store does not contain secret material for the specified account.”

Read that literally. The account was named and the authentication attempt reached the point of asking the local secret store for key material for it, and the store had none. No comparison between a submitted password and a stored verifier took place, so the code tells you nothing about whether the credentials sent with the request were correct.

That puts it in a different class from the codes analysts see every day:

CodeWhat failed
0xC0000064The account name does not exist
0xC000006AThe account exists, the password did not match
0xC0000072The account exists and is disabled
0xC00000FEThe requested authentication package is unknown
0xC0000371There is no secret material in the local account store for this account

Because the value is the result of the attempt rather than a sub-reason behind the general rejection 0xC000006D, expect it as Status 0xC0000371 with Sub Status 0x0 — the same shape as Microsoft’s own 4625 lockout example. Microsoft’s 4625 documentation does not list this code among its worked examples, so do not read more into it than the NTSTATUS definition: query both fields and take the meaning from the table.

Is it an attack?

This is not a credential-guessing signal. An attacker working through passwords against a real account generates 0xC000006A, and one working through invented names generates 0xC0000064. 0xC0000371 reports the state of a credential store on the machine that processed the logon, which is why it normally appears once or twice around a specific account or host rather than in volume.

The questions that resolve it are about configuration and state:

  • Which account and which store? If TargetDomainName matches the Computer name, the attempt was against a local account on that machine rather than a domain account.
  • Does the same account work elsewhere? A domain account that authenticates fine on other hosts points at the local machine, not at the directory object.
  • Is the pattern regular? Failures at fixed intervals from one host usually come from a service, scheduled task or mapped drive retrying with stored credentials.
  • Has the host’s credential state changed recently? Reimaging, restoring from a backup or image, cloning, or any repair work on the account database changes what secret material exists locally.

It becomes interesting when the event sits inside something else — a run of failures from one source address, an unfamiliar logon type for that account, or activity on a host you were already looking at. In that case the surrounding events, not this code, carry the investigation.

How to investigate

Find every occurrence and the shape around it, matching on both fields:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4625 and (Status =~ "0xc0000371" or SubStatus =~ "0xc0000371")
| project TimeGenerated, Computer, TargetUserName, TargetDomainName, IpAddress,
          WorkstationName, LogonType, LogonProcessName, AuthenticationPackageName,
          Status, SubStatus
| order by TimeGenerated desc

Then check whether the same account and source produced other failure codes in the same window — a mixture of 0xC000006A and 0xC0000064 from one address means you are looking at guessing activity that happens to include this event:

SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4625
| summarize Failures = count(), Codes = make_set(SubStatus, 10),
            Accounts = dcount(TargetUserName)
    by IpAddress, Computer
| where Failures > 1
| order by Failures desc

On domain controllers, NTLM credential validation records its result as the Error Code of event 4776, which Sentinel stores in the same Status column:

SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4776 and Status =~ "0xc0000371"
| project TimeGenerated, Computer, TargetUserName, Workstation, Status

Work from the host outwards: confirm whether the account is local or domain, whether its logons succeed on other machines, and what process on the failing host keeps retrying. If you are working from exported Security logs rather than a SIEM, the free browser log analyzer groups 4625 events by source, account and status code so a rare value like this one is easy to isolate from the surrounding noise.

Related codes

Questions about 0xC0000371
Does 0xC0000371 mean the password was wrong?
No. Microsoft defines STATUS_NO_SECRETS as the local account store not containing secret material for the specified account, so the failure happened in the credential store rather than in a comparison. A wrong password for an existing account is recorded as 0xC000006A instead, and a name that does not exist as 0xC0000064.
Should I look in Status or in Sub Status for this code?
Query both columns. The code describes the outcome of the attempt rather than a sub-reason behind a general rejection, so expect Status 0xC0000371 with Sub Status 0x0, in the same shape as Microsoft's lockout example (Status 0xC0000234, Sub Status 0x0). Because Microsoft's 4625 article does not enumerate this value, matching on either field costs nothing and avoids missing events.
Is a single 0xC0000371 worth investigating?
On its own it is usually a machine-state question, not an intrusion signal, but it is rare enough that it should not be dismissed silently. Identify the host, the account and the logon type, then check whether the same account authenticates normally elsewhere; if it does, the problem is local to that computer's secret store.
Can an attacker trigger 0xC0000371 by guessing passwords?
Password guessing against real accounts produces 0xC000006A and guessing names produces 0xC0000064, so a spray does not generate this code. If 0xC0000371 appears inside a burst of other 4625 codes from one source, treat the burst as the lead and this event as incidental to it.

↑ All codes

Free tools for this

Group your own 4625 failures by code

Load a Windows Security event export into the free browser analyzer to see failures by account, source IP and SubStatus, with spraying and lockouts flagged. Nothing is uploaded.

Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing

How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]