# Windows Event ID 4625 Failed Logon Guide

> Decode Windows Event ID 4625, compare status codes and logon types, and trace a failed logon to a later session with a worked SOC case.

Canonical: https://codelivly.com/windows-event-id-4625
Last updated: 2026-11-26

| | |
|---|---|
| Category | [Cybersecurity](https://codelivly.com/blog/category/cybersecurity) |
| Author | rocky |
| Published | 2026-11-26 |
| Reading time | 12 min |

Windows Event ID 4625 records a failed logon in the Security log of the computer where the attempt occurred. Start with the attempted account, the computer that wrote the event, and the Logon Type. Read Status and Sub Status together to understand why Windows rejected the attempt. A 4625 can explain a rejection without telling you who was at the keyboard or whether the same account later gained access.

Consider a file server that records two wrong password failures for an accounting user. A successful logon appears six seconds after the second failure, followed by access to the Finance share. A typo now looks plausible. So does unauthorized use of the account. Before you call the incident lead or hand the ticket to desktop support, check whether that share access came from the successful session.

## Read the raw 4625 event first

In Event Viewer, open **Windows Logs**, then **Security**. Choose **Filter Current Log**, enter `4625` in the event ID field, and set the incident time window. Open an event, then use **Details** and **XML View** to see the original field names. If the alert came from a SIEM, compare at least one alert row with the underlying event. A field labeled *user* in a dashboard might represent the caller rather than the account whose logon failed.

| Field in the event | What to pull into your investigation |
|---|---|
| `Computer` | The machine that wrote the record. For a network logon to a share, start with the server hosting the share. |
| `TargetDomainName` and `TargetUserName` | The account presented for logon. Keep the domain or local computer name with the username so two accounts named `admin` stay distinct. |
| `SubjectUserName` and `SubjectLogonId` | The caller context. These fields may identify a local service or another context reporting the failure. |
| `LogonType` | The kind of logon requested. It tells you where to look next, such as a file server, a scheduled task, or Remote Desktop records. |
| `Status` and `SubStatus` | The failure code and any extra detail. Capture both in hexadecimal so the next analyst can check your interpretation. |
| `IpAddress` and `WorkstationName` | The recorded source details, when populated. Preserve missing or local values and check which network or service sits in front of the destination. |
| `TimeCreated`, `Channel`, and `EventRecordID` | The time and record reference. Use UTC in your timeline and cite the computer and channel with the record ID. |

The source address may be blank for a local logon. An address such as `127.0.0.1` or `::1` is loopback. A remote address can represent a gateway or shared source, so use device inventory or a time matched network record before attributing it to a specific device. Windows can also represent an IPv4 address as an IPv6 mapped value, such as `::ffff:192.0.2.44`. Preserve that raw value and normalize it when comparing records. See the [Microsoft reference for Event ID 4625](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4625).

## Decode Status, Sub Status, and Logon Type

`0xC000006D` is a general failure for an invalid username or authentication information. If Sub Status is `0xC000006A`, you have a more specific reason: a wrong password. If Sub Status is `0x0`, it supplies no useful extra failure detail. Retain the Status interpretation and record the uncertainty. A nonzero subcode is evidence to interpret in context, so keep the pair in your notes.

| Code | Meaning | First follow up |
|---|---|---|
| `0xC0000064` | The account name was unknown. | Check the domain and spelling. Compare other attempted names from the same recorded source. |
| `0xC000006A` | The password was wrong. | Check the timing, source, and whether credentials changed recently. |
| `0xC0000072` | The account was disabled. | Check the account owner and disablement history. Identify any service or device still trying the account. |
| `0xC000015B` | The account lacks the requested logon right on that machine. | Check the effective logon rights for the recorded type and review recent policy changes. |
| `0xC0000234` | The account was locked out. | Look back for earlier failures and find the corresponding lockout event where available. |

The failure code tells you what Windows rejected. The logon type tells you which activity produced the request. For example, a type 4 failure at the same minute each morning could be a scheduled task using old credentials after a rotation. Check the task history and the change ticket. The same password code on type 10 attempts from a source you cannot attribute calls for a review of Remote Desktop and any gateway records.

| Logon Type | Meaning | Where to look |
|---|---|---|
| 2 | Interactive | The local workstation and the account activity around the attempted sign in. |
| 3 | Network | The destination host and the service it offered. File share access is one common example. |
| 4 | Batch | The scheduled task or other batch job and its configured identity. |
| 5 | Service | The service configuration, service start time, and credential change history. |
| 7 | Unlock | The workstation and its existing interactive session. |
| 10 | RemoteInteractive | The Remote Desktop host and gateway or broker logs, when present. |

Type 3 describes a network logon. Both file share access and authentication to a Remote Desktop Gateway can use this type. Confirm the service with destination telemetry before calling an alert an RDP attempt. See [Microsoft’s reference on administrative tools and logon types](https://learn.microsoft.com/en-us/windows-server/identity/securing-privileged-access/reference-tools-logon-types).

## Correlate Event ID 4625 with 4624 and later activity

Event ID 4624 records creation of a successful logon session on the computer that was accessed. Search that computer around the event time for the same target domain and account. Compare the recorded source, logon type, and authentication package where present. Start with a small window you can explain, then widen it if there is clock skew, sparse coverage, or evidence that the alert window cut off earlier activity. Use the time the event was created when ordering records. Ingestion delay can make an earlier event arrive later in your SIEM.

The `SubjectLogonId` in 4625 describes the caller context. Compare the failure and success by account, computer, time, and source context. Once you have a candidate 4624, take `TargetLogonId` from its **New Logon** fields and look for that session on the same host and within the same boot. For example, a 5140 share event can carry the matching value in `SubjectLogonId`. Treat the same hexadecimal value on another machine as a separate session identifier. See the Microsoft references for [4624](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4624), [5140](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-5140), and [the scope of a Windows Logon ID](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4634).

![Compare 4625 and 4624 by host, account, time, source, and logon type. Within the same host and boot, match the 4624 TargetLogonId to the 5140 SubjectLogonId.](https://codelivly.com/images/blog/windows-event-id-4625/windows-logon-correlation.webp)

Compare the failed and successful logons by context. Use the successful session ID to link activity on the same computer within the same boot.

For domain accounts, check the relevant domain controller when the destination log gives an incomplete picture. Event 4771 records a Kerberos preauthentication failure on a domain controller. Event 4776 records NTLM credential validation on the authority for those credentials, which is a domain controller for domain accounts and the local computer for local accounts. A 4776 can name the source workstation and omits the destination resource server. Event 4740 records an account lockout and can supply a caller computer name. Search the relevant authorities and note their coverage. See Microsoft’s references for [4771](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4771), [4776](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4776), and [4740](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4740).

## Read failed and successful logons with PowerShell

Run this query in PowerShell on the relevant Windows computer with an account permitted to read its Security log. It reads the previous 30 minutes of 4624 and 4625 records and returns the original event references in UTC order. For an older case, set `$end` to the end of your incident window and adjust the start. The query reads existing records without changing audit policy or generating login attempts.

```powershell
$end = Get-Date
$filter = @{
    LogName      = 'Security'
    ProviderName = 'Microsoft-Windows-Security-Auditing'
    Id           = 4624, 4625
    StartTime    = $end.AddMinutes(-30)
    EndTime      = $end
}

Get-WinEvent -FilterHashtable $filter |
    Sort-Object TimeCreated |
    ForEach-Object {
        $event = $_
        $xml = [xml]($event.ToXml())
        $data = @{}
        foreach ($node in $xml.Event.EventData.Data) {
            $data[$node.GetAttribute('Name')] = $node.InnerText
        }

        [pscustomobject]@{
            TimeUtc       = $event.TimeCreated.ToUniversalTime().ToString('o')
            Host          = $event.MachineName
            RecordId      = $event.RecordId
            EventId       = $event.Id
            TargetAccount = '{0}\{1}' -f $data.TargetDomainName, $data.TargetUserName
            LogonType     = $data.LogonType
            SourceAddress = $data.IpAddress
            AuthPackage   = $data.AuthenticationPackageName
            Status        = $data.Status
            SubStatus     = $data.SubStatus
            TargetLogonId = $data.TargetLogonId
        }
    } | Format-List
```

Blank Status fields on a successful logon and a blank TargetLogonId on a failed logon are expected. If the query returns no matching events, check the time bounds and whether you are on the destination computer. Check that Audit Logon success or failure collection covers the event you expect and that the log still contains the window. An access denied error means you need a permitted account or a copy of the relevant events from someone who can read the log. See the [PowerShell command reference](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent) and [Microsoft’s Audit Logon policy reference](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/audit-logon).

## Work the Finance share case

These synthetic records come from one investigation spanning three computers. All times are UTC on the same day, `EXAMPLE\mrivera` is one domain account, and `192.0.2.44` is an [address reserved for examples](https://www.rfc-editor.org/rfc/rfc5737.html). You can solve the case with the table.

| Time UTC | Computer and record | Evidence |
|---|---|---|
| 09:14:02 | `FS01` / 74081 | 4625, type 3, `EXAMPLE\mrivera`, `192.0.2.44`, Status `0xC000006D`, Sub Status `0xC000006A`. |
| 09:14:17 | `FS01` / 74084 | 4625, same domain account, type, address, and codes as record 74081. |
| 09:14:20 | `WS22` / 31106 | 4624, type 2, `EXAMPLE\mrivera`, source address omitted, TargetLogonId `0x7010`. |
| 09:14:23 | `FS01` / 74091 | 4624, type 3, `EXAMPLE\mrivera`, `192.0.2.44`, TargetLogonId `0x4AF31`. |
| 09:14:24 | `FS01` / 74092 | 5140, audit success, `EXAMPLE\mrivera`, `192.0.2.44`, SubjectLogonId `0x4AF31`, share `\\*\Finance`. |
| 09:14:28 | `FS02` / 50210 | 5140, audit success, `EXAMPLE\svc_inventory`, different source, SubjectLogonId `0x4AF31`, share `\\*\Inventory`. |

1. Which 4624 belongs in the file server timeline? Cite the record and the fields that make it a stronger candidate than the other success.
2. Which share event can you link to that session? Explain why the other record with the same hexadecimal ID belongs outside this session.
3. What additional evidence would let you distinguish a legitimate user retry from unauthorized use? What can you say about files in the share right now?

### Case answer and handover

Record 74091 is the candidate success. It matches the destination, domain account, logon type, and recorded source of the two failures. Record 31106 is an interactive sign in on another machine. It belongs in a broader account timeline if you can connect `WS22` to the recorded network address at the time, but time proximity alone leaves that link open.

On `FS01`, record 74092 matches the new session ID from 74091 and records access to the Finance share. The same number on `FS02` is outside that session. Event 5140 describes share access, so it leaves individual documents and bytes transferred unresolved. If configured and retained, inspect event 5145 for the relative file or folder and requested access. Where the relevant audit policy and object auditing are in place, a 4663 record can add evidence of an operation involving the object. Assess copying or exfiltration with corroborating endpoint, file server, or network telemetry. See Microsoft’s references for [5145](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-5145) and [4663](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4663).

Start by identifying the device associated with `192.0.2.44` during the window using DHCP, VPN, or other records appropriate to the network. Compare that device and share with the user’s normal access. If you contact the user, use a known channel and ask where they were working and what they opened before sharing the details of the alert. A matching device and account owner report support a legitimate retry. An unfamiliar device, an owner denial, or evidence of unexpected access raises urgency. Follow your team’s escalation procedure for sensitive resources while the source and impact remain unresolved.

> From 09:14:02 to 09:14:24 UTC, FS01 Security records 74081, 74084, 74091, and 74092 show two wrong password failures for EXAMPLE\mrivera, followed by a successful network logon from 192.0.2.44 and Finance share access in session 0x4AF31. Device attribution, authorization, and file activity are unverified. Next, identify the device behind the address at 09:14 UTC and review available file access records for this session.

To practise documenting the decision, use Codelivly’s [worked example on writing SOC investigation notes](https://codelivly.com/blog/soc-investigation-notes). It focuses on how to preserve uncertainty in a handover another analyst can act on.

## When repeated 4625 events deserve escalation

Look at the distribution before you look at the count. Failures that restart every morning on one computer, for one account and one logon type, point you toward a repeating local cause. Failures concentrated on one target account from unfamiliar devices warrant a different investigation. One recorded source touching many accounts may fit password spraying, but shared gateways and malfunctioning services can also produce broad patterns. Compare the affected accounts, timing, source infrastructure, and normal traffic for the service.

Look for impact as a separate question. A lockout is a reason to check what caused it, while a matching success followed by access to a sensitive resource can justify faster review. An unknown source behind a shared gateway and a privileged account are reasons to gather better evidence promptly. Record the coverage of the sources you searched, including any missing endpoints or expired log windows. A case saying “no matching success in the available FS01 Security records for 09:00 to 09:30 UTC” gives the next analyst a specific result to verify.

## Practice lab and books

Continue with Codelivly’s free [Windows Event Log Analysis lab](https://codelivly.com/labs/windows-event-logs). It starts with an overnight Security log and asks you to piece together a sequence of events without an initial alert. For a broader study plan, the [Codelivly SOC Analyst course](https://codelivly.com/soc-analyst-course) covers log analysis, alert triage, and incident response.

- **For the triage workflow.** The paid [SOC Analyst Level 1 Practical Playbook](https://resources.codelivly.com/product/soc-analyst-level-1-the-practical-playbook/) covers what to do when an alert lands, including evidence gathering and escalation.
- **For more evidence to investigate.** The paid [SOC Analyst Lab Workbook](https://resources.codelivly.com/product/the-soc-analyst-hands-on-lab-workbook/) contains 30 investigations with answer keys. Its first set includes repeated authentication failures and Windows logon analysis.

## Frequently asked questions

### Why is Event ID 4625 missing from the domain controller?

Look on the computer where the logon was attempted. If someone tried to open a share on a member server, start with that server’s Security log. The domain controller may hold a separate Kerberos or NTLM credential event if the relevant audit policy recorded it.

### Does Event ID 4625 mean someone is trying to brute force a password?

A 4625 tells you a logon failed. Repeated failures can come from password guessing, an old password stored by a job, or a person retrying a sign in. Account spread, the source device, timing, and related successful activity help you tell those cases apart.

### Does a 4624 after a 4625 prove the same person signed in?

A later 4624 shows a successful session. Matching host, account, time, logon type, and source makes it a candidate for the same sequence. Device attribution and other corroborating evidence are needed to say who used the session.
