Techniques
Sample rules
Entra ID Sharepoint or OneDrive Accessed by Unusual Client
- source: elastic
- technicques:
- T1078
- T1098
- T1213
- T1566
Description
Identifies when an application accesses SharePoint Online or OneDrive for Business for the first time in the tenant within a specified timeframe. This detects successful OAuth phishing campaigns, illicit consent grants, or compromised third-party applications gaining initial access to file storage. Adversaries often use malicious OAuth applications or phishing techniques to gain consent from users, allowing persistent access to organizational data repositories without traditional credential theft.
Detection logic
data_stream.dataset:azure.signinlogs and
azure.signinlogs.properties.resource_id:(
00000003-0000-0ff1-ce00-000000000000 or
6a9b9266-8161-4a7b-913a-a9eda19da220
) and
azure.signinlogs.properties.app_id:(* and not (
00000003-0000-0ff1-ce00-000000000000 or
08e18876-6177-487e-b8b5-cf950c1e598c or
5e3ce6c0-2b1f-4285-8d4b-75ee78787346 or
9199bf20-a13f-4107-85dc-02114787ef48 or
ab9b8c07-8f02-4f72-87fa-80105867a763 or
af124e86-4e96-495a-b70a-90f90ab96707 or
cc15fd57-2c6c-4117-a88c-83b1d56b4bbe
)) and
not (
azure.signinlogs.properties.app_owner_tenant_id:f8cdef31-a31e-4b4a-93e4-5f571e91255a and
azure.signinlogs.category:MicrosoftServicePrincipalSignInLogs
) and
azure.signinlogs.properties.tenant_id:* and
event.outcome:success