A logon session was created. LogonType: 2=Interactive, 3=Network, 4=Batch, 5=Service, 7=Unlock, 8=NetworkCleartext, 9=NewCredentials (runas), 10=RemoteInteractive (RDP), 11=CachedInteractive.
One of the most-searched events. LogonType 3 from admin accounts to non-DC hosts signals lateral movement. LogonType 10 = RDP. Pass-the-Hash (Mimikatz, Impacket) and Pass-the-Ticket (Rubeus) generate logon events. ANONYMOUS LOGON on Type 3 = null session attack.
Filter: LogonType=3 + TargetUserName not ending '$' + IpAddress outside trusted subnets. Alert: ANONYMOUS LOGON on any type. Alert: LogonType=9 from non-admin accounts. Baseline admin logon patterns — off-hours or new source IPs are high signal.
TargetUserNameLogonTypeIpAddressWorkstationNameAuthenticationPackageName | Tactic | Technique |
|---|---|
| Initial Access | Valid Accounts (T1078) |
| Lateral Movement | Pass the Hash (T1550.002) |
| Lateral Movement | Remote Desktop Protocol (T1021.001) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Suspicious Network Logon
status: experimental
description: Network logon (Type 3) from non-machine account — possible lateral movement
author: theadminstack.com
date: 2026/05/16
logsource:
product: windows
service: security
detection:
selection:
EventID: 4624
LogonType: 3
filter_machine:
TargetUserName|endswith: '$'
condition: selection and not filter_machine
falsepositives:
- Legitimate remote administration
level: low
tags:
- attack.lateral_movement
- attack.t1550.002
SecurityEvent
| where EventID == 4624 // An account was successfully logged on
| project TimeGenerated, Computer, TargetUserName, LogonType, IpAddress, WorkstationName, AuthenticationPackageName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4624
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# An account was successfully logged on — add EventData fields: TargetUserName, LogonType, IpAddress, WorkstationName`
An account was successfully logged on. A logon session was created. LogonType: 2=Interactive, 3=Network, 4=Batch, 5=Service, 7=Unlock, 8=NetworkCleartext, 9=NewCredentials (runas), 10=RemoteInteractive (RDP), 11=CachedInteractive.
Event 4624 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Logon/Logoff' subcategory (Success and/or Failure).
Event 4624 is associated with: Valid Accounts (T1078), Pass the Hash (T1550.002), Remote Desktop Protocol (T1021.001).
Filter: LogonType=3 + TargetUserName not ending '$' + IpAddress outside trusted subnets. Alert: ANONYMOUS LOGON on any type. Alert: LogonType=9 from non-admin accounts. Baseline admin logon patterns — off-hours or new source IPs are high signal.