The Defensive Line Shorts are ten-minute episodes from The Defensive Line, each taking one security control or one historic breach and turning it into practical defensive action.
🤖 This briefing is drafted and read by AI, but reviewed and edited by humans.
ConsentFix turns a perfectly genuine Microsoft sign-in into a stolen account. The victim signs in to a trusted Microsoft app, completes MFA, and then gets talked into copying a URL that contains an authorisation code. In this Short, Carter and Lizzie explain why MFA, Conditional Access and even passkeys don’t help, and the quick Entra change that stops it at step one.
Key takeaways
* The sign-in is real. ConsentFix abuses Microsoft first-party apps that are pre-consented in every tenant, so MFA and Conditional Access all pass.
* Make those apps require assignment. Start with the big five (Azure CLI, Azure PowerShell, Visual Studio, VS Code, Teams PowerShell). No assignment means no code is issued.
* Scope access from your sign-in logs. Usually only a small group of developers and IT staff need these tools.
* If it happens, revoke tokens and sessions. A password reset alone won’t evict the attacker.
Primary sources
* MSEndpointMgr: ConsentFix — the QuickFix
* NVISO: ConsentFix (a.k.a. AuthCodeFix): detecting OAuth2 authorization code phishing
* EntraScopes: Browse vulnerable first-party apps
Further reading
* Medium (Tasos Chatziefstratiou): Beyond Graph API: exploring ConsentFix through the Exchange REST API lens
* sentinel.blog: ConsentFix: securing your tenant against OAuth authorisation code theft
* AdminDroid: How to mitigate ConsentFix attacks in Microsoft 365
From The Defensive Line
* Subscribe to The Defensive Line Weekly for the weekly threat roundup.