Event ID 4624: An account was successfully logged on
Event 4624 records every successful user authentication and logon to a Windows system. For security monitoring, focus on the LogonType field to identify suspicious authentication methods, unusual logon times, and potential lateral movement patterns across your network.
- Channel
- Security
- Logged by default
- Yes
- Written on
- Target host
- Volume
- Very high
- 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.
| Field | What it tells you |
|---|---|
| LogonType | Type of logon (2=Interactive, 3=Network, 4=Batch, 5=Service, 7=Unlock, 8=NetworkCleartext, 9=NewCredentials (runas /netonly; also the pass-the-hash pattern when LogonProcessName = seclogo), 10=RemoteInteractive, 11=CachedInteractive, 12=CachedRemoteInteractive, 13=CachedUnlock)2 Interactive3 Network4 Batch5 Service8 NetworkCleartext9 NewCredentialsAll LogonType values |
| TargetLogonId | Logon ID of the new session. Main pivot to the same session's 4672 (SubjectLogonId), 4688 (SubjectLogonId) and 4634 (TargetLogonId) |
| TargetUserName | Account name that was logged on |
| TargetDomainName | Domain or computer name of the account |
| TargetUserSid | SID of the account that was logged on |
| SubjectUserName | Account name that initiated the logon |
| SubjectDomainName | Domain of the account that initiated the logon |
| WorkstationName | Source workstation name from which logon was attempted |
| IpAddress | Source IP address of logon attempt |
| IpPort | Source port number |
| LogonProcessName | Name of the logon process (e.g., User32, Advapi, Kerberos, NtLmSsp, seclogo)AdvapiNtLmSspseclogo (Secondary Logon)SchannelAll LogonProcessName values |
| AuthenticationPackageName | Authentication package used (e.g., NTLM, Kerberos, Negotiate) |
| LmPackageName | NTLM version when NTLM was used (NTLM V1, NTLM V2, LM; '-' otherwise). 'NTLM V1' means weak, crackable and relayable authenticationNTLM V2NTLM V1LMAll LmPackageName values |
| KeyLength | NTLM session key length (typically 128; always 0 for Kerberos). Type 3 NTLM logons with KeyLength 0 for non-anonymous accounts are a common pass-the-hash hunting filter |
| ImpersonationLevel | Impersonation level the token allows (Identification, Impersonation or Delegation), stored as a %%18xx message ID (e.g., %%1833 = Impersonation). Delegation lets the server reuse the client's credentials against other systems |
| RestrictedAdminMode | Whether an RDP (Type 10) logon used Restricted Admin mode: %%1842 = Yes, %%1843 = No, '-' for other logon types. Restricted Admin accepts NTLM hashes, so an unexpected Yes can mean pass-the-hash over RDP |
| TargetOutboundUserName | For Type 9 (NewCredentials) logons, the account whose credentials are used for outbound network access (the runas /netonly user); '-' otherwise. Pair with TargetOutboundDomainName |
| ProcessName | Full path of the process that requested the logon (e.g., C:\Windows\System32\lsass.exe, winlogon.exe, svchost.exe); '-' for most network logons |
| LogonGuid | Unique GUID for correlating with other logon-related events |
| ElevatedToken | Whether the logon has an elevated (admin) token. Stored as %%1842 (Yes) or %%1843 (No), not the literal strings Yes/No |
Analyst notes
- 01Logon Type 2 (Interactive) & 10 (RemoteInteractive) indicate user console/RDP logins.
- 02Logon Type 3 (Network) often relates to accessing network shares or service auth.
- 03Logon Type 5 (Service) indicates service startup.
- 04Logon Type 7 (Unlock) indicates workstation unlock.
- 05Monitor for unusual Logon Types, high frequency, off-hours activity, or logins from unexpected sources/accounts.
- 06Correlate Logon GUID with 4634 (Logoff) and 4672 (Privilege Assignment).
In an investigation
Event 4624 is generated whenever a user account successfully authenticates to a Windows system, making it one of the most frequently logged security events in any Windows environment. This event captures critical authentication details including the account name, logon type, source network address, authentication package used, and the process that handled the logon request. Security analysts rely heavily on this event to establish baseline user behavior patterns, detect credential theft attempts, and identify unauthorized access to systems. The LogonType field is particularly valuable as it distinguishes between interactive console logons (Type 2), network resource access (Type 3), batch jobs (Type 4), Windows services (Type 5), and remote desktop sessions (Type 10). Understanding these logon types helps analysts differentiate between legitimate user activity and potential attack scenarios such as Pass-the-Hash attacks, which typically manifest as Type 3 network logons with NTLM authentication from unusual source addresses.
What it can reveal
- Credential theft and Pass-the-Hash attacks typically appear as Type 3 network logons with NTLM authentication
- Lateral movement across the network generates multiple 4624 events from the same source to different targets
- After-hours logons or access from unexpected geographic locations may indicate compromised credentials
- Service account logons from workstations (rather than servers) often signal malicious activity
- Golden Ticket use cannot be spotted from ticket lifetime in 4624 (the event has no ticket-lifetime field); look for DC-side signs instead, such as a 4769 service-ticket request with no earlier 4768 TGT request from that client, or account and domain field anomalies (an account name that does not exist in AD, or a domain field that does not match the domain's normal NetBIOS or DNS name)
How to detect with it
Monitor for logon patterns that deviate from established baselines. Look for multiple failed logons (Event 4625) followed by successful logon, which may indicate brute force attacks. Track logon type changes for the same user account, such as service accounts suddenly performing interactive logons. Alert on logons from privileged accounts outside normal business hours or from unexpected source IP addresses. Correlate 4624 events with process creation (Event 4688) to identify post-exploitation activity.
Attack patterns
- Lateral movement attack pattern: after stealing credentials, intruders authenticate from one internal host to many servers, producing Type 3 network logons for the same account across many targets in a short window
- Ransomware pre-deployment attack pattern: operators use stolen domain administrator credentials for Type 10 (RemoteInteractive) RDP logons to servers shortly before deploying encryption payloads
- Service persistence attack pattern: a newly installed service configured to run as a domain account produces Type 5 (Service) logons for that account on hosts where it never ran before; correlate with 7045 or 4697 for the install
Compared withCompare with Event 4625 (Failed Logon) to detect brute force attempts. Event 4672 (Special Privileges Assigned) often follows 4624 for administrative accounts.
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=4624)]]" -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.
- Attack signalSilver TicketA Kerberos-authenticated logon on the service host that has no corresponding 4768 or 4769 on any domain controller in the same window.
- Attack signalPass the HashA network logon authenticated by NTLM where the session key length is zero, which is the common pass-the-hash footprint for non-anonymous accounts.
- Attack signalPass the TicketA Kerberos network logon for an account on a host that never requested a ticket for it.
- Lateral movementPsExec and service-based executionDestination: Network logon, LogonType 3, for the account used to authenticate to the share and SCM.
- Lateral movementWMI remote executionDestination: Network logon, LogonType 3, for the account authenticating over DCOM.
- Lateral movementsmbexecDestination: Network logon, LogonType 3, repeated as each command re-authenticates.
- Lateral movementRemote scheduled task executionDestination: Network logon, LogonType 3, for the account creating the task.
- Lateral movementRemote service creationDestination: Network logon, LogonType 3, for the account authenticating to the SCM.
- Lateral movementWinRM and PowerShell RemotingDestination: Network logon, LogonType 3, for the account authenticating over WinRM.
- Lateral movementRDP lateral movementDestination: LogonType 10 (RemoteInteractive); with NLA, a LogonType 3 may precede the LogonType 10.
- Lateral movementDCOM executionDestination: Network logon, LogonType 3, for the account activating the DCOM object.
- InvestigationWho connected to this host over RDP, from where, and when did they leave?Corroborate with the Security log
- InvestigationWhere did this account log on, and was it used for lateral movement?Build the logon map from 4624
- InvestigationIs this a brute-force or password-spray attack, and did any attempt succeed?Determine whether any attempt succeeded
- InvestigationWas a USB storage device connected, and which one?Attribute it to a user and any file activity
- InvestigationWhen did the attacker first get in? Building the initial access timelineAnchor on the first anomalous successful logon
- InvestigationWere credentials stolen from LSASS or the domain controller?Follow the stolen credentials forward
- InvestigationWho was added to privileged groups, and by whom?Identify the session behind the change
- InvestigationWhich files were accessed or staged over SMB shares?Attribute access to a session and source
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.
Also relevant, depending on field values
Related events
Common questions
- What does Windows event ID 4624 mean?
- Event 4624 records every successful user authentication and logon to a Windows system. For security monitoring, focus on the LogonType field to identify suspicious authentication methods, unusual logon times, and potential lateral movement patterns across your network.
- Is event 4624 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 4624 recorded?
- In the Security channel on the target host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderEvent 4624 records every successful user authentication and logon to a Windows system. For security monitoring, focus on the LogonType field to identify suspicious authentication methods, unusual logon times, and potential lateral movement patterns across your network.