An account can pass a strong sign-in check and still authorize the wrong application. In an OAuth investigation, the central question is which application can access which resource, under whose authority, and whether that access still works.
OAuth is an authorization framework. A successful sign-in, a consent decision, token issuance, and a resource request are separate events. Treating them as one event leaves gaps in both investigation and containment. The OAuth 2.0 framework defines the roles and flows; the incident record needs to connect them.
Identify the authority behind the request
Start with four objects. An authorization code is a short-lived value exchanged at the token endpoint. An access token is presented to a protected resource. A refresh token, when issued, can obtain new access tokens. A provider's stored consent or permission grant records the application's approved access; it is not the same object as a token. The framework distinguishes authorization codes, access tokens, and refresh tokens, while provider administration determines how grants are represented. RFC 6749 describes those token roles.
Also distinguish delegated access on behalf of a user from application access obtained with the application's own credentials. An investigation centered on one user's sessions may miss a workload identity with its own permission assignments. Record the access model before choosing containment actions.
A bearer token can be used by whoever possesses it; additional sender constraints change that threat model. Keep token values out of tickets, screenshots, and routine logs. Collect identifiers and relevant claims through approved tooling without copying a live credential into the incident narrative. RFC 6750 explains bearer-token risk and protection requirements.
Recognize abuse of a legitimate consent flow
Consent phishing can use a real provider sign-in and consent page. The malicious part is the application and requested authority. A familiar provider domain does not establish that a mailbox-reading application has a legitimate business purpose. Microsoft recommends examining requested permissions, the publisher, and application legitimacy, alongside consent policies and user education. Microsoft's consent-phishing guidance describes this pattern.
For triage, ask what the application is supposed to do and what access that requires. A calendar utility requesting broad file access deserves an explanation. So does a new application with access to many users and no accountable owner. Neither mismatch alone proves compromise; each gives the investigator a concrete question to resolve.
A user approves a fictional document helper. An audit event records a new grant, and resource logs later show the application reading files. The user changes their password. The analyst must still determine whether the grant remains, whether new tokens can be issued, and whether previously issued tokens are accepted. The outcome depends on the provider and the resource.
Avoid the absolute claim that password changes never affect OAuth access. Provider behavior differs. Google, for example, documents password changes as a refresh-token invalidation condition when the token includes Gmail scopes. That exception is a reason to check the actual provider, not a reason to make password reset the entire response. Google's token-expiration guidance lists relevant conditions.
Build an evidence chain the next analyst can follow
Use a small investigation worksheet with separate rows for the grant, issuance activity, and resource operations. Each row should state its source and what it establishes. This is a proposed investigation structure, not a claim that every provider emits the same fields:
- Grant: application and tenant identifiers, consenting actor, target user or organization, permissions, timestamp, and available correlation identifier. Preserve the event before changing the application.
- Application: owners, creation time, publisher information, credentials metadata, and permission assignments. Record changes relevant to the incident window.
- Issuance or sign-in activity: client identity, user or workload identity, resource, result, source context, and the logging coverage available. An interactive login is not a substitute for token-related evidence.
- Resource use: the operations performed, affected objects, response status, and application identity when available. A successful token request establishes less than a successful read or write against a resource.
- Coverage gaps: disabled auditing, retention limits, unavailable fields, and unsynchronized timestamps. State the period that each source actually covers.
Join records using stable identifiers where available, then reconcile timestamps and resource names. A suspicious IP address or an unfamiliar display name is a lead. It becomes more useful when tied to a specific permission change and subsequent behavior. Preserve alternative explanations such as a legitimate integration rollout until the evidence resolves them.
Microsoft's app consent incident-response playbook supplies provider-specific investigation and response paths. Use those paths for the tenant being investigated; adapt the worksheet to the logs that are actually enabled. Missing events cannot establish that no access occurred.
Contain the access and verify the result
Write down the intended effect of each action before executing it. Removing a consent grant, disabling an application, revoking sessions or tokens, and rotating application credentials affect different objects. For an illicit consent grant, Microsoft's remediation guidance explicitly warns against relying on a password reset or MFA alone. Microsoft's illicit-grant guidance provides the relevant administrative steps.
Coordinate containment with the service owner and incident lead. A shared application may support legitimate users, so preserve enough evidence to identify the affected scope while acting at the speed the incident requires. If the application itself is compromised, inspect its credentials and permissions as well as individual user grants.
Do not close the incident on the basis of a successful administrative click. Check three outcomes:
- Authority changed: a fresh administrative read shows the unwanted grant or assignment removed, or the application disabled as intended.
- Renewal stopped: permitted validation and available issuance logs show whether the affected client can still obtain new access. Do not reuse suspected stolen credentials to perform this check.
- Resource access ended: the affected service rejects access when expected, and monitoring covers the relevant expiry or enforcement interval. Document any residual window explicitly.
Revocation behavior is implementation-dependent. RFC 7009 describes token revocation and possible propagation delay. Microsoft also notes that disabling an application can leave already issued access tokens usable until they expire. Use the resource's documented behavior rather than assuming an immediate, universal cutoff. Microsoft's consent-phishing response guidance explains this limitation.
Test the response before an incident
A useful lab uses an approved test application, synthetic data, and explicit authorization. Record a benign consent event, a token exchange, and a harmless read. Apply the intended containment steps, then compare the administrative state and resource behavior. Capture which evidence appeared, how long it took, and what the platform did not expose. The deliverable is a response procedure with observed limits.
For application developers, prevent replay where the platform supports it. The current OAuth security best practice requires public-client refresh tokens to use sender constraint or rotation. Rotation can expose reuse of an invalidated refresh token; its handling can also terminate the legitimate client's active token chain. Treat these as implementation controls to test, not guarantees that remove the need for investigation. RFC 9700, section 4.14 sets out the requirements and tradeoffs.
An adequate case record identifies the authority that was abused, the resources accessed, the evidence gaps, the actions taken, and how the result was checked. That record gives the next responder something more useful than a closed alert and a password-reset timestamp.
Sources
Checked on 2 October 2026. Product access and behavior can change; follow the current documentation for your account and environment.
- RFC 6749 — OAuth 2.0 framework ↗
- RFC 6750 — Bearer token use ↗
- RFC 9700 — OAuth security best practices ↗
- RFC 7009 — Token revocation ↗
- Microsoft — Protect against consent phishing ↗
- Microsoft — App consent incident response ↗
- Microsoft — Illicit consent grant remediation ↗
- Google — OAuth token expiration ↗