O365 User Consent Denied for OAuth Application
The following analytic identifies instances where a user has denied consent to an OAuth application seeking permissions within the Office 365 environment. This detection leverages O365 audit logs, focusing on events…
Description
The following analytic identifies instances where a user has denied consent to an OAuth application seeking permissions within the Office 365 environment. This detection leverages O365 audit logs, focusing on events related to user consent actions. By filtering for denied consent actions associated with OAuth applications, it captures instances where users have actively rejected permission requests. This activity is significant as it may indicate users spotting potentially suspicious or unfamiliar applications. If confirmed malicious, it suggests an attempt by a potentially harmful application to gain unauthorized access, which was proactively blocked by the user.
Detection logic
Detection requirements
- Platform
- ContainersIaaSIdentity ProviderOffice SuiteSaaS
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- o365
Known benign triggers
- OAuth applications that require mail permissions may be legitimate, investigate and filter as needed.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| attack.mitre.org/techniques/T1528/ | 9from 2 sources |
| github.com/AlteredSecurity/365-Stealer | 8from 2 sources |
| learn.microsoft.com/en-us/azure/active-directory/manage-apps/protect-against-consent-phishing | 6 |
| learn.microsoft.com/en-us/defender-cloud-apps/investigate-risky-oauth | 10from 2 sources |
| www.alteredsecurity.com/post/introduction-to-365-stealer | 7 |
| www.microsoft.com/en-us/security/blog/2022/09/22/malicious-oauth-applications-used-to-compromise-email-servers-and-spread-spam/ | 8from 2 sources |
From the source
- At source
- Open at source
- Upstream identifier
- 2d8679ef-b075-46be-8059-c25116cb1072
- Tagged by the source as
- Office 365 Account TakeoverO365 TenantcloudSplunk CloudSplunk EnterpriseSplunk Enterprise Securityidentity
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1