OAuth consent phishing and token theft
Attacks that skip the password: illicit consent grants to malicious apps, attacker-in-the-middle phishing that steals session cookies after MFA, device code phishing, and abuse of app credentials, with the log evidence for each and the remediation that actually removes access.
01Why tokens and consents matter
- Investigate an illicit consent grant and remove it properly
- Recognise attacker-in-the-middle token theft in sign-in logs
- Spot device code phishing and app credential abuse
- Know what revoking sessions does and does not invalidate
Modern identity attacks often never need the password again, or never need it at all. Once a user has authenticated, access is carried by tokens: short-lived access tokens presented to APIs, longer-lived refresh tokens that obtain new access tokens, and browser session cookies. An app that has been granted consent can obtain tokens for the user on its own. Steal or obtain any of these, and MFA has already been satisfied.
- ACTOR
- EDGE
- SERVICE
- DATA
- Live flow
- Lookup / async
| Attack | What the attacker gets | Survives a password reset? |
|---|---|---|
| Consent phishing (malicious multi-tenant app) | Delegated permissions such as Mail.Read with offline_access: tokens on demand | Yes, until the grant is removed |
| AiTM phishing (Evilginx-style reverse proxy) | The session cookie issued after real MFA | Yes, until sessions are revoked |
| Device code phishing | Tokens issued to the attacker's device after the user enters a code | Not after sessions are revoked; registered devices may persist |
| App credential abuse | A secret or certificate added to an existing privileged app | Yes: app credentials are independent of any user |
This is an advanced module
Cloud & identity incident response is part of the Pro pass. 4 more sections — the deep dives, the final design, follow-ups and the test — unlock with it.
Already a cyart.io or studio.cyart.io member? Your pass code is in your Studio account.
Related lessons
- Business email compromise investigationsAnalyst · Incident handling & reportingPro
- Cloud containment and evidence preservationAnalyst · Cloud & identity incident responsePro
- Windows and identity logsAnalyst · Investigation & threat huntingPro
- Design an account takeover detection systemHLD · Design problems: fraud & abuseFree