Elastic medium stable kql
Entra ID OAuth Device Code Grant by Microsoft Authentication Broker
Identifies device code authentication with an Azure broker client for Entra ID. Adversaries abuse Primary Refresh Tokens (PRTs) to bypass multi-factor authentication (MFA) and gain unauthorized access to Azure resources. PRTs are used in Conditional Access policies to enforce device-based controls. Compromising PRTs allows attackers to bypass these policies and gain unauthorized access. This rule detects successful sign-ins using device code authentication with the Entra ID broker client application ID (29d9ed98-a469-4536-ade2-f981bc1d605e).
Detection Logic
data_stream.dataset:(azure.activitylogs or azure.signinlogs)
and azure.signinlogs.properties.authentication_protocol:deviceCode
and azure.signinlogs.properties.conditional_access_audiences.application_id:29d9ed98-a469-4536-ade2-f981bc1d605e
and event.outcome:success or (
azure.activitylogs.properties.appId:29d9ed98-a469-4536-ade2-f981bc1d605e
and azure.activitylogs.properties.authentication_protocol:deviceCode) Field Validations
Loading…
Comments (0)
Loading comments...