elastic
high
kql
Entra ID Device-Bound PRT Replay via First-Party App from Unusual IP
Detects a first-party FOCI tooling client (Azure CLI, PowerShell, VS Code, Graph CLI, Azure AD PowerShell, or Visual
Studio) redeeming a device-bound Primary Refresh Token (PRT) for Microsoft Graph, SharePoint/OneDrive, or Exchange
Online from an IP that is not among that user and device's Windows Sign-In or WAM addresses. Replay events are limited
to compliant or Intune-managed devices: the stolen cookie keeps the workstation deviceid, so compliant-device
Conditional Access can succeed off-box.