Skip to content
SIEMBench
100% Client-Side Tool • Inputs Never Sent to Our Servers

Event ID 4625

Event ID 4625: Failed Logon

An account failed to log on

Log source
Security
How to enable it
Logon/Logoff > Audit Logon (Failure), and Audit Account Lockout (Failure) for locked accounts
Category
Authentication
Priority
Medium
Typical volume
High
MITRE ATT&CK

What Event ID 4625 means

4625 is recorded by the computer that refused the logon. For a domain account, the domain controller usually records its own view as 4771 (Kerberos) or 4776 (NTLM), so a spray against many servers can be invisible in any one host's log and obvious on the domain controllers.

The most useful field is SubStatus, because it says why the logon failed. A run of 0xC000006A means that the names are real and the passwords are wrong. A run of 0xC0000064 means that the attacker is guessing names. The mix of the two separates targeted guessing from a blind list.

Volume alone misleads. A single expired service password can create thousands of failures in an hour, while a careful spray makes one attempt per account per day. Count distinct accounts for each source, and not only attempts.

Key fields to inspect

FieldMeaningSuspicious when
TargetUserName Account name that was tried. It may not exist. Many different names from one source, or names such as admin, backup and test.
SubStatus Specific reason for the failure. 0xC0000064 in bulk (name guessing), or 0xC0000072 (someone is trying a disabled account).
Status General reason. Often 0xC000006D, with the detail in SubStatus. 0xC000015B, which means a valid password for an account that lacks that logon right.
LogonType How the logon was attempted. 3 and 10 from the internet. Both point at exposed SMB or Remote Desktop.
IpAddress Source address, if the protocol provides it. External addresses, or one internal workstation that tries many accounts.
WorkstationName Client name as reported by the client. It can be forged. A name that does not follow your naming standard, such as kali or WIN- with random letters.
ProcessName Local process that requested the logon, for local attempts. w3wp.exe on a web server, which can mean that a web login page is under attack.

SubStatus codes

CodeMeaningWhat it suggests
0xC0000064User name does not existName guessing, or a typing mistake
0xC000006AName is correct, password is wrongPassword guessing against a real account
0xC000006DGeneric logon failureLook at the other status field and the protocol
0xC000006EAccount restrictionA policy blocks this account, such as a blank password
0xC000006FOutside allowed hoursUse of a valid account at an unusual time
0xC0000070Workstation restrictionAccount used from a computer it is not allowed on
0xC0000071Password expiredForgotten service or an old account
0xC0000072Account disabledSomeone is using the credentials of a leaver
0xC0000133Clocks too far apartTime synchronization problem
0xC000015BLogon type not grantedValid password but no right to log on this way
0xC0000193Account expiredContractor or temporary account
0xC0000224Password change requiredNew or reset account
0xC0000234Account locked outGuessing has already triggered the lockout policy

Detection queries

Separate password spraying (many accounts from one source) from brute force (many attempts on one account). Adjust names and thresholds to your environment. About these queries.

Splunk SPL

index=windows source="XmlWinEventLog:Security" EventCode=4625
| bin _time span=15m
| stats count AS attempts dc(TargetUserName) AS accounts values(SubStatus) AS substatus BY _time IpAddress
| eval pattern=case(accounts>=10, "spray", attempts>=20, "brute force")
| where isnotnull(pattern)

Microsoft Sentinel KQL

SecurityEvent
| where EventID == 4625
| summarize Attempts = count(), Accounts = dcount(TargetUserName), Reasons = make_set(SubStatus), Names = make_set(TargetUserName, 20) by IpAddress, bin(TimeGenerated, 15m)
| extend Pattern = case(Accounts >= 10, "spray", Attempts >= 20, "brute force", "")
| where isnotempty(Pattern)

PowerShell

Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4625; StartTime = (Get-Date).AddDays(-1) } |
  ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
  Select-Object Time, TargetUserName, SubStatus, LogonType, IpAddress, WorkstationName | Format-Table -AutoSize

Attack scenarios

Password spraying

One or two common passwords are tried against every account, slowly enough to avoid lockout. Expect a high number of distinct TargetUserName values with 0xC000006A for each source, and a success (4624) for the unlucky account.

Brute force against exposed Remote Desktop

An internet-facing host shows continuous type 3 failures, since Network Level Authentication checks credentials before a desktop exists. Names cycle through administrator, admin and local-language variants.

Use of a disabled or restricted account

0xC0000072 or 0xC000015B for a named employee deserves more attention than a thousand wrong passwords. In the second case the password was correct, so it is known to someone.

Investigation checklist

  1. Group by IpAddress and count distinct accounts before counting attempts.
  2. Check for a 4624 from the same source after the failures. A success changes the incident.
  3. Read SubStatus for each account to separate real names from guesses.
  4. Correlate with 4771 and 4776 on domain controllers to find attempts against other hosts.
  5. Block the source if it is external, and reset any account that was accessed.

Common benign causes

Event ID 4625 FAQ

What is the difference between Status and SubStatus in 4625?

Status gives the general result and is often 0xC000006D. SubStatus gives the specific reason, such as a wrong password or unknown user. When SubStatus is 0x0, the reason is in Status itself.

Why does 4625 have no source IP address?

Some NTLM paths do not pass the client address to the logon process. Use WorkstationName as a lead, then look for 4776 on the domain controller, firewall connections or 5156 at the same second.

How many 4625 events indicate a brute-force attack?

No single number works everywhere. A practical start is 20 failures on one account, or 10 distinct accounts from one source, in 15 minutes. Tune it after you exclude known broken services.

Techniques follow MITRE ATT&CK® v20.1. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation (license). Field names were checked against Microsoft documentation and provider schemas.