A WinRM (Windows Remote Management) session was established. Connection details including source are logged in the WinRM Operational log.
WinRM is used for lateral movement (T1021.006, PowerShell remoting, Evil-WinRM). Any WinRM connection from unexpected hosts or accounts warrants investigation. Common attack tools: Evil-WinRM, PowerShell Invoke-Command, winrs.exe.
Alert: WinRM connections from non-admin workstations. Alert: WinRM to DCs from non-expected management hosts. Correlate with 4624 Type 3 (network logon) to the same target around the same time.
UserComputer | Tactic | Technique |
|---|---|
| Lateral Movement | Windows Remote Management (T1021.006) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
Event
| where EventLog == "Microsoft-Windows-WinRM/Operational" and EventID == 169 // WinRM remote connection
// EventData holds: User, Computer
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-WinRM/Operational" EventCode=169
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# WinRM remote connection — add EventData fields: User, Computer`
WinRM remote connection. A WinRM (Windows Remote Management) session was established. Connection details including source are logged in the WinRM Operational log.
Event 169 is written to the Microsoft-Windows-WinRM/Operational channel by Microsoft-Windows-WinRM. Enabled with WinRM/PowerShell Remoting; channel is on by default when WinRM is configured.
Event 169 is associated with: Windows Remote Management (T1021.006).
Alert: WinRM connections from non-admin workstations. Alert: WinRM to DCs from non-expected management hosts. Correlate with 4624 Type 3 (network logon) to the same target around the same time.