-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
M365 Copilot Chat SafeLink Monitoring.kql
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|