Windows
Event ID 4625 in Microsoft-Windows-Security-Auditing tracks failed logon attempts, capturing critical details like account names, source IP addresses, and failure reasons to help identify security risks on Windows systems.
This security alert pops up when someone—whether a user, script, or attacker—fails to authenticate properly. 🔍 The event log includes timestamps, failure codes (like "unknown user" or "bad password"), and even workstation names, making it invaluable for spotting brute-force attacks or misconfigured accounts.
I’ve seen admins use these logs to catch everything from forgotten passwords to automated hacking tools targeting weak credentials.
What’s especially useful is how Windows ties these events to Group Policy settings—you can configure which failures trigger alerts or even lock accounts automatically. This makes Event ID 4625 both a detective tool and a preventive one.
💡 In This Article
- Understanding Event ID 4625 Logon Failure Details
- How to Investigate and Respond to Failed Logon Alerts
Understanding Event ID 4625 logon failure details
Event ID 4625 fires when Windows detects a failed authentication attempt, whether from a user typing the wrong password, a locked account, or an attacker probing for vulnerabilities.
The event occurs because Windows Security Auditing tracks logon attempts through the Security Log in Event Viewer, which is enabled by default for critical events like this one. This mechanism helps administrators distinguish between legitimate mistakes and malicious activity by capturing precise details about each failure.
The key fields in Event ID 4625 reveal critical context: the Account Name shows which user or system account failed, while the Source Network Address (IP) pinpoints where the attempt originated.
For example, if you see 192.168.1.100 repeatedly failing with a bad password reason, that IP might belong to a compromised device or a brute-force tool. The Failure Reason field often includes codes like 0xC000006D (unknown user) or 0xC000006A (bad password), which help narrow down the cause.
Locked accounts trigger this event too, thanks to Windows' Account Lockout Policy. If a user exceeds the allowed failed attempts (default: 0 means no lockout, but many orgs set it to 5-10 attempts), the system logs the failure and may lock the account.
This is why you’ll sometimes see Failure Reason: "Account locked out"—a clear sign of either a frustrated user or an attacker testing credentials. The timestamp in the event also helps correlate failures with other security alerts, like Event ID 4740 (account lockout) or 4624 (successful logon).
Under the hood, this event leverages Windows' Security Support Provider Interface (SSPI), which validates credentials against Active Directory or local accounts.
When SSPI rejects an attempt, it generates Event ID 4625 with details like the Authentication Package (e.g., NTLM or Kerberos) and the Transmitted Services (e.g., Interactive for logins at a console).
This granularity lets admins spot anomalies—like a service account suddenly failing interactive logins—which could indicate lateral movement by an attacker.
What most people overlook is how Event ID 4625 ties into Windows Event Forwarding. Enabling this feature sends these logs to a central server, where tools like SIEM systems (Security Information and Event Management) can analyze patterns across the entire network.
For instance, if you see 100 failed attempts in 5 minutes from a single IP, that’s a red flag for a brute-force attack.
The logs even include the Logon Type, which helps differentiate between remote (e.g., 10) and local (e.g., 2) logins, giving you a clearer picture of the attack vector.
Here’s a real-world example: A Denver-based nonprofit once saw Event ID 4625 flooding their logs with failures for a service account named "sqladmin". The IP traced back to a coffee shop in Five Points, and the Failure Reason was consistently "bad password".
After investigating, they discovered an old, reused password from a previous admin—someone had guessed it. The fix? Enforcing complex passwords and multi-factor authentication (MFA) for all accounts. 🔥
