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:event.dataset: "o365.audit" and o365.audit.ExtendedProperties.RequestType: "Cmsi:Cmsi" and o365.audit.Actor.Type: (0 or 2 or 3 or 5 or 10) and o365.audit.ApplicationId: "29d9ed98-a469-4536-ade2-f981bc1d605e" and o365.audit.Target.ID: "00000003-0000-0000-c000-000000000000" and o365.audit.DeviceProperties.Value: "False"
Install detection rules in Elastic Security
Detect M365 Identity Device Code Grant with Unusual User and ASN 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).