Initial Access (TA0001)(external, opens in a new tab or window)
Credential Access (TA0006)(external, opens in a new tab or window)
text code block:data_stream.dataset:"o365.audit" and event.category:"authentication" and event.action:"UserLoggedIn" and ( ( o365.audit.ApplicationId:"29d9ed98-a469-4536-ade2-f981bc1d605e" and o365.audit.ObjectId:( "00000002-0000-0ff1-ce00-000000000000" or "00000003-0000-0000-c000-000000000000" ) ) or ( o365.audit.ApplicationId:"4765445b-32c6-49b0-83e6-1d93765276ca" and o365.audit.ObjectId:"4765445b-32c6-49b0-83e6-1d93765276ca" ) ) and user_agent.original:(node or axios* or undici)
Install detection rules in Elastic Security
Detect M365 Potential AiTM UserLoggedIn via Office App (Tycoon2FA) 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).