Azure AD 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 Azure AD environment. This detection leverages Azure AD's audit logs, specifically…
Description
The following analytic identifies instances where a user has denied consent to an OAuth application seeking permissions within the Azure AD environment. This detection leverages Azure AD's audit logs, specifically focusing on user consent actions with error code 65004. Monitoring denied consent actions is significant as it can indicate users recognizing potentially suspicious or untrusted applications. If confirmed malicious, this activity could suggest attempts by unauthorized applications to gain access, potentially leading to data breaches or unauthorized actions within the environment. Understanding these denials helps refine security policies and enhance user awareness.
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
- azure_active_directory_sign_in_activity
Known benign triggers
- Users may deny consent for legitimate applications by mistake, 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
- bb093c30-d860-4858-a56e-cd0895d5b49c
- Tagged by the source as
- Azure Active Directory Account TakeoverAzure 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