An RDP session was reconnected. ClientName and ClientAddress identify the source of reconnection.
RDP session hijacking (tscon.exe with SYSTEM privs) generates this. Also indicates RDP lateral movement. Monitor ClientAddress for unexpected geographic or network origins.
Alert: ClientAddress outside expected network ranges. Correlate with 4624 Type 10. Watch for reconnects without a prior 4624 from same IP (possible hijack).
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName | Tactic | Technique |
|---|---|
| Lateral Movement | Remote Desktop Protocol (T1021.001) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4778 // A session was reconnected to a Window Station
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4778
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A session was reconnected to a Window Station — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A session was reconnected to a Window Station. An RDP session was reconnected. ClientName and ClientAddress identify the source of reconnection.
Event 4778 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Logon/Logoff' subcategory (Success and/or Failure).
Event 4778 is associated with: Remote Desktop Protocol (T1021.001).
Alert: ClientAddress outside expected network ranges. Correlate with 4624 Type 10. Watch for reconnects without a prior 4624 from same IP (possible hijack).