Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 16 November 2026.
In one sentence: Windows event ID 4625 is the entry Windows writes in its Security log every time someone or something fails to sign in, and the pattern of those entries tells you whether it is a typo or an attack.
What it is
Microsoft’s documentation says the event “is logged for any logon failure”. It appears on the computer where the attempt was made. That means domain controllers, member servers and workstations all write their own. A failed sign-in to a file server is recorded on that server, not only on the domain controller.
It belongs to two audit subcategories, Audit Logon and Audit Account Lockout. If failure auditing is not switched on for those, you will not see the events.
A single 4625 is normal. People mistype passwords and old saved passwords expire. A burst is what matters.
How it works: the fields to read first
When a logon fails, Windows records who tried, how, from where, and why it failed. Read these fields first:
- Account For Which Logon Failed. The username that was tried.
- Logon Type. How they tried. Microsoft’s table includes 2 (interactive, at the keyboard), 3 (network), 5 (service) and 10 (remote desktop).
- Status and Sub Status. Why it failed (table below).
- Source Network Address and Workstation Name. Where it came from. Microsoft notes that ::1 or 127.0.0.1 means localhost. The source port is 0 for interactive logons.
- Process Information and Authentication Package. Which program tried, and whether it used NTLM or Kerberos.
Status and Sub Status codes Microsoft tells you to watch:
| Code | Meaning | Why it matters |
|---|---|---|
| 0xC0000064 | Username does not exist | Several in a row can be a user enumeration attack |
| 0xC000006A | Right username, wrong password | Watch critical and service accounts |
| 0xC000006D | Bad username or authentication information | Watch runs of these |
| 0xC000006F | Logon outside permitted hours | Check the account’s rules |
| 0xC0000070 | Logon from an unauthorised workstation | Check the source |
| 0xC0000072 | Account disabled | Someone still using a leaver’s account |
| 0xC0000193 | Account expired | Stale accounts still being tried |
| 0xC0000234 | Account locked out | Lockout threshold was reached |
Who it affects and how badly
Every organisation with Windows servers or PCs produces these events, so the question is who reads them.
- Sole trader to 10 staff: often no one looks. A server with remote desktop open to the internet can be guessed at constantly without anyone noticing.
- 10 to 250 staff (manufacturing, construction, accountancy, care providers): a successful guess on one account can become ransomware or data theft. Downtime is the main cost.
- Regulated and 250 plus: missing a clear pattern in logs is itself an audit finding, and can slow incident response.
The UK angle
Cyber Essentials (NCSC requirements v3.2; check the current version) expects password-based accounts to be protected against brute-force guessing with at least one of: MFA, throttling so no more than 10 guesses are allowed in 5 minutes, or locking after no more than 10 failed attempts. A 4625 trail is how you see that control working, or not working. The same document says firewall admin interfaces must not be reachable from the internet unless there is a documented need and MFA or an IP allow list protects them, and that MFA applies to admin accounts and anything internet-accessible.
What we check on a test
Method only. On external and internal tests we look at:
- Whether internet-facing logons (remote desktop, VPN, web portals) have lockout, throttling or MFA.
- Whether the same controls exist on internal logon points such as file servers.
- Which accounts, including service accounts, can be tried without anything pushing back.
Our reports include evidence and reproduction steps, so you can look for the same activity in your own logs and see whether it was recorded and whether anyone would have noticed. Weak logging and monitoring is one of the OWASP Top 10 categories we cover on application tests.
Worked example (illustration only)
A 25-person manufacturer lets a supplier connect to a server over remote desktop through a port forwarded on the office router. On Monday the IT contractor opens the Security log and finds hundreds of 4625 events overnight, Logon Type 3 and 10, from one source address, trying names like “admin” and “scanner” with 0xC0000064. Later in the run a few entries show 0xC000006A for a real staff username. That means the attacker has learned a valid name and is now guessing its password. The contractor blocks the address, removes the port forward, puts the supplier behind a VPN with MFA, and checks for any successful sign-in from that address. Cost: an hour of work now, instead of a ransomware recovery later.
How to detect it
- Confirm failure auditing is on for Audit Logon and Audit Account Lockout. Open Event Viewer, then Windows Logs, then Security, and filter for event 4625.
- Count failures per source address and per account over a short window. A few from many places is different from many from one place.
- Microsoft recommends monitoring all 4625 events for local accounts and service accounts, because they should not be locked out or stopped from working. This matters most on critical servers and admin workstations.
- Watch for logon type mismatches, such as a domain admin using batch or service logon types.
- Look at the process name. Microsoft suggests checking whether it sits outside standard folders such as System32 or Program Files.
- If NTLM should not be in use, alert on any 4625 where the authentication package is NTLM.
- Collect the logs centrally. Cloud sign-ins do not create 4625, so also read your identity provider’s sign-in logs.
How to fix or prevent it
- Do not expose remote desktop to the internet. Put it behind a VPN or gateway with MFA.
- Turn on MFA for admin and internet-accessible accounts.
- Set lockout or throttling so no more than 10 guesses are possible in 5 minutes, as Cyber Essentials requires. Test the setting, because lockout can also block real users.
- Use long passwords, at least 12 characters, or 8 with a common-password deny list.
- Restrict who can log on from where, using allow lists and logon rights, then alert on failures that break those rules.
- Disable leaver accounts and expired service accounts that keep generating failures.
- Send 4625 events to a central log store and alert on patterns, not single events.
Related terms
brute force attack, password spraying, credential stuffing, is rdp open to the internet dangerous, port 3389 rdp, ntlm authentication, NCSC Early Warning service
Back to the detection, monitoring and response hub.
Related reading: GitHub Account Hijack: Revoke Access Before You Rotate
FAQ
Is Event ID 4625 always an attack? No. Microsoft’s guidance focuses on runs of failures, critical accounts and service accounts, not single events.
Where is event 4625 recorded? On the computer where the logon attempt was made, including domain controllers, member servers and workstations.
What does status 0xC0000234 mean? The account is locked out.
See also: Event ID 4732: Member Added to a Local Group Explained, Windows Event ID 4776: NTLM Credential Validation Explained.
How Wolfcore helps
Wolfcore’s vulnerability management and SOC monitoring keep watch for this after the test is over. See SOC and SIEM monitoring.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call