Published: December 1, 2026 9 min read

Entra ID OAuth Attacks: How to Detect and Prevent Malicious App Consent

Patrick Sandu, Founder and COO of Falconer Security
By Patrick Sandu Microsoft-certified security engineer

A password reset does not end an Entra ID OAuth attack. If a malicious app holds delegated permissions in your tenant, it keeps reading mail and files through Microsoft Graph after the user changes their password, and it keeps doing so until someone finds the app and revokes the consent grant.

That gap is why I think this attack class deserves more attention than it gets in most SMB security programs. The user never hands over a password. They click a legitimate Microsoft sign-in flow, approve a permission prompt that looks routine, and the attacker walks away with durable access. In March 2026, Microsoft also documented attackers abusing OAuth redirection in Entra ID to move users from trusted sign-in pages to attacker-controlled phishing and malware infrastructure. OAuth abuse is now a working part of the phishing toolchain, and unrestricted app consent is one of the defaults that keeps showing up in the Microsoft 365 security assessments we run.

Key takeaways
  • Consent outlives the password. A malicious app with delegated permissions keeps pulling data through Microsoft Graph until you revoke the grant, whatever happens to the user’s credentials.
  • Tighten user consent first. Microsoft recommends allowing user consent only for apps from verified publishers and selected low-risk permissions. Many tenants still run the open default.
  • Watch for redirect abuse. Microsoft’s March 2026 research shows attackers using prompt=none and invalid scopes to bounce users from real Microsoft sign-in pages to phishing infrastructure.
  • Put consent review on a schedule. Audit Consent to application events and enterprise app permissions regularly. Microsoft advises weekly reviews in tenants with many apps and users.

What an Entra ID OAuth attack actually is

An Entra ID OAuth attack is, in most cases, an application-consent attack. The attacker registers or controls an app, tricks a user into approving permissions for it, and then uses those permissions to access data through Microsoft 365 and Microsoft Graph. Microsoft describes the core technique as consent phishing: attacks that trick users into granting permissions to malicious cloud applications. Once consent is granted, Microsoft notes, the app can gain access to legitimate cloud services and user data.

The dangerous part is not the OAuth protocol itself. It is what the app receives after consent: permission to read mail, open files in SharePoint and OneDrive, inspect profile data, or keep ongoing delegated access that works silently in the background. The consent prompt is hosted by Microsoft on a Microsoft domain, so a rushed user has little reason to hesitate.

If a suspicious app already has consent, treat it as a compromised identity path, not a bad browser click. The app may still have full access after the user changes their password.

Three things work in the attacker’s favor. The sign-in and consent experience rides on trusted Microsoft domains. Users generally cannot tell a legitimate productivity app from a malicious one with a bland name and a long permission list. And many tenants still allow broad user consent because nobody ever changed the default.

That last point is the one you can fix this week. By default, all users are allowed to consent to applications for permissions that do not require administrator consent, and Microsoft’s consent configuration guidance recommends allowing user consent only for apps from verified publishers and only for selected permissions classified as low risk. The setting lives in the Microsoft Entra admin center under Identity, then Applications, Enterprise apps, Consent and permissions, User consent settings.

Open consent is not an exotic misconfiguration. It sits alongside open sharing links and excess global admins in the same family of shipped-for-convenience settings, and our rundown of Microsoft 365 security defaults that quietly expose your company covers where it fits among the rest.

The 2026 twist: OAuth redirect abuse

The classic consent lure is not the whole story anymore. In a campaign Microsoft documented in March 2026, attackers crafted OAuth authorization requests with parameters such as prompt=none and intentionally invalid scopes, forcing the error-handling path to redirect the victim’s browser from a trusted Microsoft authentication endpoint to attacker-controlled infrastructure. Microsoft notes the attackers did not steal tokens at that redirect stage. The point was redirection, not token theft.

That matters because it splits the defender’s problem in two. One bucket is malicious app consent that grants durable access to data. The other is OAuth flow abuse that borrows Microsoft’s own infrastructure to make a phishing or malware delivery chain look trustworthy. Both exploit normal Entra ID behavior and user trust, so I think they belong in the same detection conversation, even though the remediation differs.

How to detect an Entra ID OAuth attack

You do not need a large hunt program to catch the early signs. You need a short, disciplined review process that someone actually owns.

Start with the audit log. Microsoft’s guidance on investigating illicit consent grants says to search for Consent to application activity and check whether IsAdminConsent is set to True. The same guidance notes that organizations with many apps and a large user base should review consent grants weekly.

Then review what your enterprise apps can actually do. Microsoft’s guidance on reviewing and revoking app permissions covers checking both the Admin consent and User consent tabs for suspicious or overprivileged apps, and it provides Microsoft Graph and PowerShell methods to revoke granted permissions at scale. An app with far more access than its business purpose explains is worth investigating even if nothing has alerted yet.

Automated help exists too. Defender for Cloud Apps ships OAuth app policies with built-in detections for misleading app names, misleading publisher names, and potentially malicious OAuth app consent, and Microsoft’s example policy alerts on apps that require a high permission level and were authorized by more than 50 users. For the redirect-abuse pattern, the same March 2026 research recommends hunting for OAuth URLs that use prompt=none, invalid scopes, encoded values in the state parameter, and redirects to unexpected domains. If you want these signals turned into maintained analytics rules rather than a quarterly manual check, our guide to detection engineering for Microsoft Sentinel explains why default rule templates are not enough on their own.

When you confirm or strongly suspect a malicious OAuth app, move in this order:

  1. Identify the app and every permission it holds, delegated and application.
  2. Revoke the app’s permission grants and app role assignments.
  3. List the affected users and establish the exposure window from the audit logs.
  4. Revoke or rotate related sessions and refresh tokens where appropriate.
  5. Check mail, SharePoint, OneDrive, and Graph activity for follow-on access during the window.

Microsoft’s remediation guidance is blunt on the point that trips teams up: normal steps like resetting passwords or requiring MFA are not effective against illicit consent grants, because the attacker operates through the consented application rather than the credential. The access dies when the grant dies, so revoking the grant comes first, and the Graph and PowerShell methods mentioned above handle it when the portal is too slow for the number of grants involved.

Containment is also where monitoring quality shows. If your logs only reach back a few days or nobody watches identity telemetry, you will struggle to size the exposure window, and our guide to choosing a managed Sentinel provider covers what to expect and ask on exactly that kind of coverage.

Preventing the next one

The goal is not to ban third-party apps. It is to control who can approve them, what they can approve, and how fast you spot exceptions.

  • Restrict user consent to verified publishers and low-risk permissions, per the Microsoft guidance linked above.
  • Turn on the admin consent workflow so users who cannot self-approve an app get an approval path instead of a dead end or shadow IT.
  • Enable OAuth app policies in Defender for Cloud Apps so new high-permission or widely authorized apps generate alerts.
  • Review enterprise app permissions on a schedule: weekly in larger tenants, monthly at minimum in smaller ones without daily monitoring.
  • Protect the admin accounts that can grant tenant-wide consent. Our guide to the seven Conditional Access policies every M365 tenant should review covers the policies that keep those accounts behind stronger controls.

Training needs an update too. Most phishing awareness programs still center on fake invoices and credential-harvesting pages, and users who would never type a password into a strange form will still approve a consent prompt, because the prompt is genuinely hosted by Microsoft. Teach people to read the requested permissions against the task at hand. Our guide to spear phishing prevention in Microsoft 365 covers the layered controls that catch the lure before the consent screen ever loads.

Where to start

If you run Microsoft 365 without dedicated identity monitoring, the minimum sensible baseline is short: restrict user consent, route app requests through admin approval, review Consent to application events and app permissions on a schedule, and fold app-consent review into your incident response for any suspicious mailbox activity. Most of it is configuration and routine, not new tooling.

The reason it does not happen is rarely technical. Identity governance, mail telemetry, and app review sit in different corners of the tenant, and nobody owns the whole picture until something quietly reads executive mailboxes for a few weeks. A structured review fixes the ownership problem before an incident does, and our guide to what a Microsoft 365 security audit checks and why shows what that looks like in practice.

The question to put to your team this week: who approved the last ten apps granted access in our tenant, and what can those apps read right now? If nobody can answer inside an hour, that is the finding.

Frequently asked questions

Is an Entra ID OAuth attack the same as credential theft?

No. In a consent-based attack the attacker gains access through app permissions rather than a stolen password, which is why resetting the password does not remove the access. The attacker’s access lives in the consent grant until you revoke it.

Does resetting a password stop a consent attack?

No, not on its own. Microsoft’s remediation guidance confirms that standard steps like password resets and MFA requirements are not effective against illicit consent grants. You have to find the malicious app and revoke its granted permissions.

Where do I check suspicious app consent in Entra ID?

In the Microsoft Entra admin center, under Enterprise apps. Review each app’s permissions in the Admin consent and User consent tabs, and search the audit log for Consent to application activity to see who granted what and when.

Can Microsoft detect malicious OAuth apps automatically?

Partly. Defender for Cloud Apps includes built-in detections for misleading app names, misleading publisher names, and potentially malicious OAuth app consent. You still need a review process behind those alerts, because detections flag candidates rather than make revocation decisions.

What is the safest default for user app consent?

Allow user consent only for apps from verified publishers and only for permissions classified as low risk, which is Microsoft’s recommended configuration. Pair it with the admin consent workflow so legitimate app requests still have a path to approval.

Patrick Sandu, Founder and COO of Falconer Security
Patrick Sandu

Patrick Sandu is a Microsoft-certified security engineer specializing in Microsoft 365 and Azure security for SMBs. He leads security assessments and managed detection services at Falconer Security.

Learn more about our team
The dispatch

New Microsoft security guidance, when it lands.

One email when we publish. Practitioner analysis on detection, response, and hardening. No product pitches, unsubscribe anytime.

This field is for validation purposes and should be left unchanged.
We never share your address.