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 Microsoft Entra ID OAuth Phishing via Visual Studio Code Client 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(opens in a new tab or window).