Query Details
id: b2c3d4e5-2007-4b22-9d01-0123456789c7
name: Copilot Studio - Dormant agent / connector reactivation
description: |
Finds connector targets (and agent app versions) that were silent for
>=7 days and then became active again in the recent window. A dormant-
then-active pattern can indicate a re-enabled stale action, a forgotten
integration being abused, or staged tooling that only lights up during
an operation.
query: |
let reactivationWindow = 1d;
let silenceDays = 7d;
let conn = AppDependencies
| where AppRoleName == "Microsoft Copilot Studio" or DependencyType == "Connector";
let recent = conn | where TimeGenerated > ago(reactivationWindow)
| summarize RecentCalls = count(), LastSeen = max(TimeGenerated) by Target;
let priorActivity = conn
| where TimeGenerated between (ago(60d) .. ago(reactivationWindow + silenceDays))
| summarize PriorLastSeen = max(TimeGenerated) by Target;
let recentlySilent = conn
| where TimeGenerated between (ago(reactivationWindow + silenceDays) .. ago(reactivationWindow))
| distinct Target;
recent
| join kind=inner priorActivity on Target
| join kind=leftanti recentlySilent on Target
| extend DaysDormant = round(toreal(datetime_diff('day', LastSeen, PriorLastSeen)), 0)
| project LastSeen, Target, RecentCalls, PriorLastSeen, DaysDormant
| order by DaysDormant desc
tactics:
- Persistence
techniques:
- T1554
tags:
- Sentinel-As-Code
- Custom
- CopilotStudio
- AI
This query is designed to identify and analyze connector targets and agent app versions that were inactive for at least 7 days and then became active again recently. This pattern might suggest a reactivated stale action, a forgotten integration being misused, or tools that are only activated during specific operations. Here's a simple breakdown of what the query does:
Define Time Windows:
reactivationWindow: The recent period to check for activity (1 day).silenceDays: The period of inactivity to look for (7 days).Filter Relevant Data:
Identify Recent Activity:
Identify Prior Activity:
Identify Recently Silent Targets:
Combine Results:
Output:
This query helps in detecting potentially suspicious reactivations of previously dormant connectors or agents, which could indicate security concerns or operational anomalies.

David Alonso
Released: June 8, 2026
Tables
Keywords
Operators