Identity attacks

Illicit consent grant: when a fake app gets into your mailbox

An illicit consent grant gives an attacker's app lasting access to mail and files with one click on Accept. How consent phishing works in Microsoft 365, why MFA doesn't stop it, and how to find and remove a bad grant.

Most account takeovers start with a stolen password. This one doesn’t need a password at all.

An email asks a manager to “review the shared invoice” or “enable the new AI assistant”. The link opens a real Microsoft sign-in page. The manager signs in as normal, MFA and all, and then sees a familiar box: This app would like to read your mail, read your files, and maintain access to data you have given it access to. They click Accept.

That click is an illicit consent grant. The attacker never saw the password and never had to beat MFA. Their app now holds its own access to that mailbox, and it keeps that access after the password is reset.

In Microsoft 365 and Google Workspace, apps don’t sign in as you. They ask for permission to act for you. You see a consent screen, you agree, and the app gets a token that lets it read mail, files or calendars through the official APIs. That is how legitimate tools such as schedulers, e-signature apps and AI note-takers work. Each of these permissions is an OAuth grant.

Microsoft describes an illicit consent grant as an attacker getting a user to grant an app access through phishing, or registering an app that looks legitimate, and then using that consent to reach the user’s data (Microsoft Learn, App consent grant investigation). Microsoft also calls the phishing version consent phishing: the target is tricked into giving a malicious app permissions instead of giving away a password (Microsoft Learn, Protect against consent phishing).

Why MFA and password resets don’t stop it

The person really did sign in, with their real MFA, on Microsoft’s real page. Nothing about the sign-in looks wrong. What went wrong came after the sign-in, when they agreed to give an app access.

Three things make this attack hard to undo:

  • The app has its own access. Resetting the user’s password does not remove a grant they already gave.
  • It’s quiet. The app reads mail through the API. No strange sign-ins, no new devices, often no inbox rules.
  • It lasts. Permissions such as “maintain access to data you have given it access to” let the app keep refreshing its access until someone removes the grant.

In 2026 this went mainstream. The Cloud Security Alliance reported in May 2026 that a toolkit called ConsentFix v3 was being sold on a criminal forum from late April. It automates OAuth consent and code theft against Microsoft Entra ID and gets past MFA, including phishing-resistant methods, because the victim hands over the authorisation themselves (Cloud Security Alliance, research note on ConsentFix v3, 4 May 2026). Security researchers first named the technique ConsentFix in December 2025.

A worked example

A 60-person architecture firm. Their MSP looks after Microsoft 365.

  1. Tuesday 10:12. The office manager gets an email that looks like it’s from a supplier: “Updated invoice shared with you.” The link opens a Microsoft sign-in page.
  2. 10:13. She signs in and approves the MFA prompt on her phone. A consent box asks for “Read your mail”, “Read your files” and “Maintain access”. The app is called “Invoice Viewer”. She clicks Accept.
  3. 10:14 onwards. The app reads her mailbox through the API. It finds supplier threads and payment details.
  4. Thursday. A supplier gets an email from the attacker, sent from a look-alike domain and copying details from the real thread, with new bank details. Nobody at the firm notices, because nothing happened in the office manager’s account that she could see.
  5. Following week. The supplier chases a missing payment. The MSP resets the office manager’s password. The app keeps reading her mail, because nobody removed the grant.

The fix in step 5 was the wrong one. The password was never the problem.

How to spot a bad grant

SignWhat it looks likeWhere to check
New app with broad mail or file accessMail.Read, Files.Read.All, or “access to all your mail”Entra admin center > Enterprise applications > Permissions; Google Admin > Security > API controls
Publisher not verifiedNo blue “verified” badge, or a publisher name that doesn’t match the appThe app’s properties in Entra
Grant soon after a suspicious emailConsent minutes after a “shared document” or “invoice” messageAudit log: “Consent to application” events
Offline access”Maintain access to data you have given it access to”The permissions list on the grant
App used from odd placesAPI activity from hosting providers or other countriesSign-in logs for service principals
One user, unusual appOnly one person uses it and nobody in IT has heard of itEnterprise applications, sorted by date created

Checklist: stop it before it starts

  • Limit who can say yes. In Entra ID, allow users to consent only to apps from verified publishers, and only for low-impact permissions, or turn user consent off (Microsoft Learn, Configure how users consent to applications).
  • Turn on the admin consent workflow, so people can ask IT for an app instead of being blocked with no route.
  • Review existing grants every quarter. Remove apps nobody uses, apps with no owner, and apps with mail or file access that don’t need it.
  • Watch consent events, not just sign-ins. A new grant with broad permissions should reach someone the same day.
  • Train people on the consent screen. “If a document link asks for access to your mail, stop and ask IT.”
  • Include AI apps. AI assistants and note-takers ask for the same broad mail and file access. Treat each one as a grant with an owner.

If you find a bad grant

  1. Remove the app’s permissions and delete the grant (enterprise application > Permissions, or remove the service principal).
  2. Block the app for the whole tenant so nobody else can consent to it.
  3. Revoke the user’s sessions and refresh tokens.
  4. Check what the app touched: mailbox audit, file access, and any mail sent.
  5. Look for the same app in other tenants if you’re an MSP. Attackers reuse apps.
  6. Warn anyone who might get a payment request built from the stolen mail.

For the full first-hour steps after a takeover, see Microsoft 365 account compromised: what to do in the first hour.

Grants don’t have to be malicious to be a risk. An AI tool someone tried once can keep its access for months: see ghost tokens.

Where Centeye fits

Centeye Gatewatch watches every sign-in across Microsoft 365 and Google Workspace and flags risky app consent, alongside stolen sessions, password sprays and MFA fatigue. It ties the consent to the AI apps the person connected and the sessions around it, and shuts the attacker out at the setting you choose. For MSPs, it does that across every client tenant from one screen.

Centeye Lumen keeps a register of the AI apps people connect to mail and files. When a new AI app with full mailbox access appears from a vendor nobody has seen, minutes after a suspicious email, Lumen can revoke the grant and block the app for the company.

Want to see the grants already in a tenant? The free identity evaluation lists the apps with access to mail and files, alongside admins, accounts without MFA and risky sign-ins.

FAQ

Is an illicit consent grant the same as a stolen password? No. The attacker never gets the password. They get an app the user approved, and the app has its own access to the user’s data.

Does phishing-resistant MFA stop consent phishing? No. The user signs in properly, so MFA works as designed. The harm comes from the consent that follows. Limiting who can grant consent is what stops it.

Will resetting the password remove the attacker? No. Remove the app’s grant, block the app, and revoke sessions and refresh tokens as well.

Should we turn off user consent completely? It’s the safest setting, but it creates work for IT. Many businesses allow consent only for verified publishers and low-impact permissions, and send everything else through an admin approval workflow.

Does this happen in Google Workspace too? Yes. Google Workspace apps use OAuth in the same way. In the Google Admin console, use API controls to restrict which third-party apps can access Workspace data.

See one attack, end to end.

A 30-minute intro call on sample data, or a free evaluation on your own tenant.