Initial Access (TA0001)(external, opens in a new tab or window)
Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:data_stream.dataset:"azure.signinlogs" and event.category:"authentication" and event.action:"Sign-in activity" and event.outcome:success and azure.signinlogs.properties.app_id:"29d9ed98-a469-4536-ade2-f981bc1d605e" and azure.signinlogs.properties.authentication_protocol:deviceCode and azure.signinlogs.properties.resource_id:( "00000002-0000-0ff1-ce00-000000000000" or "00000003-0000-0ff1-ce00-000000000000" or "00000005-0000-0ff1-ce00-000000000000" ) and azure.signinlogs.properties.is_interactive:true
Install detection rules in Elastic Security
Detect Entra ID OAuth Device Code Phishing via AiTM in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).