// Threat: Outlook CVE-2026-124194: Exploited NTLM Hash Leak (Hunt Only) // Author: Daniel Jeremiah | Date: 2026-11-12 // Ref: https://github.com/daniyyell-dev/rapid-threat-intel/tree/main/threats/2026-11_November-2026/2026-11-12/Outlook-CVE-2026-124194-NTLM-Hash-Leak let Lookback = 30d; union isfuzzy=true (DeviceNetworkEvents | where Timestamp > ago(Lookback) | where RemotePort in (445, 139) and RemoteIPType == "Public" and iff(ipv4_is_in_range(RemoteIP, "100.64.0.0/10"), 1, 0) == 0 | where not(RemoteUrl endswith ".file.core.windows.net" or RemoteUrl endswith ".file.core.usgovcloudapi.net" or RemoteUrl endswith ".file.core.chinacloudapi.cn") | extend AllowlistedRanges = dynamic([]) | where iff(ipv4_is_in_any_range(RemoteIP, AllowlistedRanges), 1, 0) == 0 | extend ByOutlook = InitiatingProcessFileName =~ "outlook.exe", ByKernel = InitiatingProcessId == 4 or InitiatingProcessFileName in~ ("ntoskrnl.exe", "system") or isempty(InitiatingProcessFileName) | where ByOutlook or ByKernel | join kind=inner (DeviceNetworkEvents | where Timestamp > ago(Lookback) | where RemotePort in (445, 139) and RemoteIPType == "Public" | summarize EstateFirstSeen = min(Timestamp), EstateDevices = dcount(DeviceId) by RemoteIP) on RemoteIP | where EstateFirstSeen > ago(Lookback) + 1d and Timestamp <= EstateFirstSeen + 1d | join kind=leftouter (union (DeviceFileEvents | where Timestamp > ago(Lookback) | where InitiatingProcessFileName =~ "outlook.exe" and FolderPath has "Content.Outlook" and (FileName endswith ".msg" or FileName endswith ".eml") | project DeviceId, OpenTime = Timestamp, Trigger = strcat("Outlook opened ", FileName), TriggerIP = ""), (DeviceProcessEvents | where Timestamp > ago(Lookback) | where FileName =~ "outlook.exe" and ProcessCommandLine matches regex @"(?i)\.(msg|eml)\b" | project DeviceId, OpenTime = Timestamp, Trigger = strcat("Outlook opened ", extract(@"(?i)([^\\""]+\.(msg|eml))\b", 1, ProcessCommandLine)), TriggerIP = "")) on DeviceId | extend Opened = isnotempty(OpenTime) and Timestamp between (OpenTime .. OpenTime + 2m) | summarize Timestamp = min(Timestamp), Trigger = take_anyif(Trigger, Opened), Opened = max(toint(Opened)) by DeviceName, RemoteIP, RemotePort, ActionType, InitiatingProcessFileName, ByOutlook, EstateDevices | where ByOutlook or Opened == 1 | project Timestamp, SourceTable = "DeviceNetworkEvents", Entity = DeviceName, Indicator = RemoteIP, Context = strcat(ActionType, " SMB port ", RemotePort, " by ", iff(isempty(InitiatingProcessFileName), "System", InitiatingProcessFileName), iff(Opened == 1, strcat(" within 2 min after ", Trigger), ""), "; destination new to the estate, seen from ", EstateDevices, " device(s)")), (DeviceProcessEvents | where Timestamp > ago(Lookback) | where FileName =~ "rundll32.exe" and ProcessCommandLine has "davclnt.dll" and ProcessCommandLine has "DavSetCookie" | extend DavHost = tolower(extract(@"(?i)https?://([^/\s:@\\]+)", 1, ProcessCommandLine)) | where DavHost contains "." | extend AllowlistedRanges = dynamic([]) | where not(DavHost matches regex @"(^|\.)(sharepoint\.com|sharepoint-df\.com|sharepointonline\.com|onedrive\.com|live\.net|live\.com|office\.com|office\.net|office365\.com|microsoft\.com|microsoftonline\.com|windows\.net|azure\.com|msedge\.net|azureedge\.net)$") | where not(DavHost matches regex @"(^|\.)(your-domain\.example)$") | where isempty(parse_ipv4(DavHost)) or (not(ipv4_is_private(DavHost)) and iff(ipv4_is_in_any_range(DavHost, dynamic(["127.0.0.0/8", "169.254.0.0/16", "100.64.0.0/10"])), 1, 0) == 0 and iff(ipv4_is_in_any_range(DavHost, AllowlistedRanges), 1, 0) == 0) | join kind=inner ( union (DeviceFileEvents | where Timestamp > ago(Lookback) | where InitiatingProcessFileName =~ "outlook.exe" and FolderPath has "Content.Outlook" and (FileName endswith ".msg" or FileName endswith ".eml") | project DeviceId, OpenTime = Timestamp, Trigger = strcat("Outlook opened ", FileName), TriggerIP = ""), (DeviceProcessEvents | where Timestamp > ago(Lookback) | where FileName =~ "outlook.exe" and ProcessCommandLine matches regex @"(?i)\.(msg|eml)\b" | project DeviceId, OpenTime = Timestamp, Trigger = strcat("Outlook opened ", extract(@"(?i)([^\\""]+\.(msg|eml))\b", 1, ProcessCommandLine)), TriggerIP = ""), (DeviceNetworkEvents | where Timestamp > ago(Lookback) | where RemotePort in (445, 139) and RemoteIPType == "Public" and iff(ipv4_is_in_range(RemoteIP, "100.64.0.0/10"), 1, 0) == 0 and (InitiatingProcessFileName =~ "outlook.exe" or InitiatingProcessId == 4 or InitiatingProcessFileName in~ ("ntoskrnl.exe", "system")) | project DeviceId, OpenTime = Timestamp, Trigger = strcat("SMB attempt to ", RemoteIP, " (", ActionType, ")"), TriggerIP = RemoteIP) ) on DeviceId | where Timestamp between (OpenTime .. OpenTime + 2m) and (isempty(TriggerIP) or TriggerIP == DavHost) | summarize Timestamp = min(Timestamp), Trigger = take_any(Trigger), CommandLine = take_any(ProcessCommandLine) by DeviceName, DavHost | project Timestamp, SourceTable = "DeviceProcessEvents", Entity = DeviceName, Indicator = DavHost, Context = strcat("WebDAV fallback within 2 min after ", Trigger, ": ", CommandLine)), (WindowsEvent | where TimeGenerated > ago(Lookback) | where Channel == "Microsoft-Windows-NTLM/Operational" and EventID == 8001 | project TimeGenerated, Computer, Ev = tostring(EventData) | union isfuzzy=true (Event | where TimeGenerated > ago(Lookback) | where EventLog == "Microsoft-Windows-NTLM/Operational" and EventID == 8001 | project TimeGenerated, Computer, Ev = tostring(EventData)) | extend NtlmTarget = extract(@"(?i)\b(?:cifs|http|host|ldap|www)/((?:[0-9]{1,3}\.){3}[0-9]{1,3})\b", 1, Ev) | where isnotempty(NtlmTarget) and not(ipv4_is_private(NtlmTarget)) and iff(ipv4_is_in_any_range(NtlmTarget, dynamic(["0.0.0.0/8", "127.0.0.0/8", "169.254.0.0/16", "100.64.0.0/10", "224.0.0.0/3"])), 1, 0) == 0 | extend AllowlistedRanges = dynamic([]) | where iff(ipv4_is_in_any_range(NtlmTarget, AllowlistedRanges), 1, 0) == 0 | extend Host = tolower(tostring(split(Computer, ".")[0])) | join kind=inner (DeviceInfo | where Timestamp > ago(Lookback) | summarize by DeviceId, Host = tolower(tostring(split(DeviceName, ".")[0])) | join kind=inner (union (DeviceFileEvents | where Timestamp > ago(Lookback) | where InitiatingProcessFileName =~ "outlook.exe" and FolderPath has "Content.Outlook" and (FileName endswith ".msg" or FileName endswith ".eml") | project DeviceId, OpenTime = Timestamp, Trigger = strcat("Outlook opened ", FileName), TriggerIP = ""), (DeviceProcessEvents | where Timestamp > ago(Lookback) | where FileName =~ "outlook.exe" and ProcessCommandLine matches regex @"(?i)\.(msg|eml)\b" | project DeviceId, OpenTime = Timestamp, Trigger = strcat("Outlook opened ", extract(@"(?i)([^\\""]+\.(msg|eml))\b", 1, ProcessCommandLine)), TriggerIP = "")) on DeviceId) on Host | where TimeGenerated between (OpenTime .. OpenTime + 2m) | summarize Timestamp = min(TimeGenerated), Trigger = take_any(Trigger), Ev = take_any(Ev) by Computer, NtlmTarget | project Timestamp, SourceTable = "WindowsEvent", Entity = Computer, Indicator = NtlmTarget, Context = strcat("Outgoing NTLM (event 8001) to a public address within 2 min after ", Trigger, ": ", substring(Ev, 0, 300))) | summarize FirstSeen = min(Timestamp), LastSeen = max(Timestamp), Hits = count(), Context = take_any(Context) by SourceTable, Entity, Indicator | order by LastSeen desc