Skip to content

Commit

Permalink
M365 Copilot Chat SafeLink Monitoring.kql
Browse files Browse the repository at this point in the history
  • Loading branch information
SlimKQL authored Feb 22, 2025
1 parent 5343e47 commit 10e2c4b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions M365 Copilot Chat SafeLink Monitoring.kql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// M365 Copilot Chat SafeLink Monitoring
// https://admin.microsoft.com/AdminPortal/home?#/MessageCenter/:/messages/MC1013453

let M365CopilotChatURL =
CloudAppEvents
| where Timestamp > ago(1h)
| where ActionType == @"CopilotInteraction"
| extend UserID = tostring(RawEventData.UserId)
| extend CopilotData = todynamic(RawEventData.CopilotEventData)
| extend CopilotAccessResources = (CopilotData.AccessedResources)
| extend CopilotAppHost = tostring(CopilotData.AppHost)
| extend CopilotContexts = tostring(CopilotData.Contexts)
| extend CopilotType = tostring(CopilotData.Type)
| extend CopilotMessageIds = tostring(CopilotData.MessageIds)
| extend CopilotThreadId = tostring(CopilotData.ThreadId)
| mv-expand CopilotAccessResources
| where CopilotAppHost == "Bing" and isnotempty(CopilotAccessResources.SiteUrl)
| project CopilotAccessResources.SiteUrl;
UrlClickEvents
| where Timestamp > ago(1h)
| where ActionType == "ClickBlocked"
| where Url has_any(M365CopilotChatURL)

0 comments on commit 10e2c4b

Please sign in to comment.