Event ID 4625 Microsoft-Windows-Security-Auditing: What It Means and How to Investigate It

Windows

Event ID 4625 Microsoft-Windows-Security-Auditing: What It Means and How to Investigate It
💥 Quick Answer

Event ID 4625 in Microsoft-Windows-Security-Auditing logs tracks every failed Windows login attempt, capturing critical details like the account name, source IP, and specific failure reason. This log entry is your first line of defense against brute-force attacks and unauthorized access.

This event ID appears in Windows Security logs whenever someone—or something—fails to authenticate, whether it's a forgotten password, a locked account, or a malicious attempt. 🔍 The logs include failure codes like 1055 (unknown user) or 1058 (bad password), which help you pinpoint exactly what went wrong.

I've used these logs to stop brute-force attacks by blocking suspicious IPs through Windows Firewall or Group Policy, and they're especially valuable when paired with Event ID 4624 (successful logons) for full context.

💡 In This Article

  • Understanding Event ID 4625 Logon Failure Details
  • Investigating and Responding to Failed Logon Events

Understanding Event ID 4625 logon failure details

Event ID 4625 logs capture the anatomy of failed Windows authentication attempts, breaking down each attempt into specific fields that reveal exactly what went wrong. The Failure Reason field is particularly critical—it uses numeric codes like 1055 (user unknown) or 1058 (bad password) to pinpoint the exact issue.

For example, code 1055 appears when the system can't find the account in Active Directory, while 1058 indicates a password mismatch, often seen in brute-force attacks where attackers try common passwords.

The Authentication Package field identifies which authentication method was used (like Kerberos or NTLM), which helps determine if the failure stems from protocol-specific issues. Meanwhile, the Source Network Address provides the IP address of the failed attempt—this is gold for tracking attackers.

For instance, if you see multiple 1058 failures from the same IP within 5 minutes, it's a classic brute-force pattern. The Logon Type field further clarifies whether this was a remote (e.g., VPN) or local login attempt.

These logs appear in the Security Event Log because Windows treats every authentication attempt—successful or failed—as a potential security event. The system records them to create a complete audit trail, which is why you'll see Event ID 4625 alongside Event ID 4624 (successful logons).

This dual logging helps security teams spot anomalies, like a user suddenly failing after months of successful logins, which could indicate account compromise. The logs even include timestamps with millisecond precision, making it easier to correlate events across multiple systems.

Common failure codes extend beyond 1055 and 1058. For example, 1053 (logon hours restriction) appears when someone tries to log in outside allowed hours, while 1056 (user disabled) flags accounts that have been locked or deactivated.

These codes are part of Windows' Security Support Provider Interface (SSPI), which standardizes how authentication failures are reported. Understanding them helps you distinguish between legitimate user errors and malicious activity.

Here's what most people miss: The Workstation field in these logs can reveal compromised devices. If you see a workstation name you don't recognize (or one that's been stolen), it's a red flag.

Combine this with the Process Name field, which shows the application or service that initiated the logon attempt. For example, lsass.exe is normal, but cmd.exe or powershell.exe might indicate an attacker trying to escalate privileges.

In my early days troubleshooting Windows servers in Pittsburgh scrap yards, I learned to treat every Event ID 4625 as a clue. A single failed logon might seem harmless, but patterns—like repeated failures from the same IP or unusual logon times—often uncover breaches before they escalate.

The logs even include the Transmitted Services field, which lists what the attacker requested (like SMB or RDP access), helping you harden those specific services.

What's actually happening is that Windows' Security Auditing subsystem treats every logon attempt as a potential security event, capturing details in real-time. This is why these logs are so valuable—they're not just error messages; they're a forensic record of who tried to access what, when, and why. 🔥

★★★★★4.9(6 reviews)
Categories Windows