detection-rules icon indicating copy to clipboard operation
detection-rules copied to clipboard

[Rule Tuning] Entra ID OAuth Phishing via First-Party Microsoft Application

Open rkarimovs opened this issue 10 months ago • 2 comments

Link to Rule

https://github.com/elastic/detection-rules/blob/main/rules/integrations/azure/initial_access_entra_id_oauth_phishing_via_first_party_microsoft_application.toml

Rule Tuning Type

None

Description

A lot of false positive alerts are generated for legitimate Microsoft apps/actions, for example: Microsoft Office, app ID d3590ed6-52b3-4102-aeff-aad2292ab01c

Additional info on the topic: https://learn.microsoft.com/en-us/answers/questions/2127841/migrate-service-principals-from-the-retiring-azure "If you are seeing and entry about the "Microsoft Office" application (ID of d3590ed6-52b3-4102-aeff-aad2292ab01c), you can safely ignore that. This is a first-party (Microsoft) application, and is managed by Microsoft itself - nothing you can do about it. They should have not surface this entry to begin with."

https://techcommunity.microsoft.com/blog/microsoft-entra-blog/action-required-azure-ad-graph-api-retirement/4090533/replies/4355152 "Some Microsoft applications, including Microsoft Office, Microsoft Visual Studio Legacy, and Microsoft Intune, do not yet have an update available without Azure AD Graph API usage. For these, we will provide future Azure AD Graph API retirement blog updates when a replacement version is available. These apps will be granted extended access for Azure AD Graph and sufficient time will be given to update the applications when an update is made available."

Example Data

azure.signinlogs.properties.app_display_name Microsoft Office azure.signinlogs.properties.app_id d3590ed6-52b3-4102-aeff-aad2292ab01c azure.signinlogs.properties.authentication_details.authentication_step_result_detail MFA requirement satisfied by claim in the token

rkarimovs avatar Jan 20 '26 11:01 rkarimovs

@rkarimovs thank you for sharing. I agree, Microsoft Office and Intune could be ignored as these are commonly using the OAuth flows with refresh tokens in the background for users to maintain access to tenants.

PR: https://github.com/elastic/detection-rules/pull/5610

terrancedejesus avatar Jan 24 '26 14:01 terrancedejesus

Closing this as complete. Thank you again @rkarimovs

terrancedejesus avatar Jan 29 '26 14:01 terrancedejesus