Skip to content
WETNav
SecurityAuthenticationIn-depth analysis

Event ID 4625: An account failed to log on

Event 4625 logs failed authentication attempts on Windows systems. This event is critical for detecting brute force attacks, credential stuffing, and password spray campaigns. Multiple 4625 events followed by a successful 4624 may indicate a successful breach after repeated attempts.

Channel
Security
Logged by default
Yes
Written on
Target host
Volume
Moderate
Audit subcategory
Logon
Needs a SACL
No

To have this event

  • Enable Logon: auditpol /set /subcategory:"Logon" /success:enable /failure:enable

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

LogonTypeType of logon attempted (2=Interactive, 3=Network, 10=RemoteInteractive)2 Interactive3 Network4 Batch5 Service8 NetworkCleartext9 NewCredentialsAll LogonType values
TargetUserNameAccount name for which logon failed
TargetDomainNameDomain or computer name
SubjectUserNameAccount that reported the logon failure
SubjectDomainNameDomain of the reporting account
WorkstationNameSource workstation name
IpAddressSource IP address of failed logon
IpPortSource port number
FailureReasonTextual reason for logon failure
StatusError code for failure (hex format)0xc0000064 User name does not exist0xc000006a Wrong password0xc000006d Bad user name or authentication information0xc000006e Account restriction0xc000006f Outside logon hours0xc0000070 Workstation restrictionAll Status / SubStatus (NTSTATUS) values
SubStatusSub-error code providing detailed failure reason0xc0000064 User name does not exist0xc000006a Wrong password0xc000006d Bad user name or authentication information0xc000006e Account restriction0xc000006f Outside logon hours0xc0000070 Workstation restrictionAll Status / SubStatus (NTSTATUS) values
LogonProcessNameName of the logon processAdvapiNtLmSspseclogo (Secondary Logon)SchannelAll LogonProcessName values
AuthenticationPackageNameAuthentication package used
Have one of these events? Paste it into the decoder

Analyst notes

  • 01High volume of failures from a single source IP may indicate brute force.
  • 02Failures across many accounts from one source may indicate password spraying.
  • 03Status/Sub Status codes are critical for diagnosis (e.g., 0xC000006A=BadPassword, 0xC000006D=Bad Username/Password, 0xC0000234=Account Locked, 0xC0000071=Password Expired, 0xC000006E=Account restriction).
  • 04Legitimate failures occur due to typos, expired passwords, or misconfigurations.

In an investigation

Event 4625 is generated whenever an authentication attempt fails on a Windows system, providing security teams with visibility into potential unauthorized access attempts. This event includes the account name that was used, the failure reason (wrong password, nonexistent account, account locked out, etc.), the source network address of the attempt, and the authentication package that was used. The Sub Status field is particularly valuable as it provides specific error codes explaining why the authentication failed. For example, status code 0xC0000064 indicates the username doesn't exist, while 0xC000006A means correct username but wrong password. These distinctions help analysts differentiate between reconnaissance attempts (testing for valid usernames) and targeted attacks against known accounts. Monitoring patterns of 4625 events can reveal brute force attacks, credential stuffing using compromised password lists, and password spray attacks where adversaries attempt common passwords across many accounts to avoid account lockouts.

What it can reveal

  • Multiple 4625 events against a single account indicate targeted brute force attacks
  • Multiple 4625 events against many accounts with the same password suggest password spray attacks
  • Failed logon attempts from unusual geographic locations may indicate credential compromise
  • Status code 0xC0000234 (account locked out) followed by successful logon from different IP suggests account takeover
  • High volume of 4625 events can indicate automated attack tools or botnets probing for weak credentials

How to detect with it

Establish baseline failure rates for your environment to detect anomalous spikes in authentication failures. Alert on accounts with more than 5-10 failed logon attempts within a short time window. Monitor for distributed attacks where multiple source IPs target the same account. Track the ratio of unique accounts to source IPs to identify password spray campaigns. Correlate failed logons across multiple systems to detect lateral movement attempts. Pay special attention to failures against privileged accounts, service accounts, and recently disabled accounts.

Attack patterns

  • The SolarWinds attackers used password spraying techniques that generated scattered 4625 events across multiple accounts before successfully compromising credentials
  • FIN7 threat group commonly employs credential stuffing attacks that create bursts of 4625 events using compromised credential databases

Compared withAlways correlate 4625 with 4624 events. Repeated failures followed by success is a key breach indicator.

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4625)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 4625 mean?
Event 4625 logs failed authentication attempts on Windows systems. This event is critical for detecting brute force attacks, credential stuffing, and password spray campaigns. Multiple 4625 events followed by a successful 4624 may indicate a successful breach after repeated attempts.
Is event 4625 logged by default?
Yes, a default Windows installation records it. It is controlled by the "Logon" Advanced Audit Policy subcategory (Logon/Logoff).
Where is event 4625 recorded?
In the Security channel on the target host.

Event 4625 logs failed authentication attempts on Windows systems. This event is critical for detecting brute force attacks, credential stuffing, and password spray campaigns. Multiple 4625 events followed by a successful 4624 may indicate a successful breach after repeated attempts.