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:event.dataset: "azure.signinlogs" and event.action: "Sign-in activity" and event.outcome: "success" and ( azure.signinlogs.properties.resource_display_name: "Microsoft Graph" or azure.signinlogs.properties.resource_id: "00000003-0000-0000-c000-000000000000" ) and ( azure.signinlogs.properties.app_id: "aebc6443-996d-45c2-90f0-388ff96faa56" or azure.signinlogs.properties.app_display_name: "Visual Studio Code" )
Install detection rules in Elastic Security
Detect Entra ID OAuth Flow by Visual Studio Code to Microsoft Graph 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).