Remediating a phishing campaign that stole OAuth tokens

OAuth token theft turns a convincing email into an identity-security incident, not merely a spam clean-up. A phishing campaign that stole OAuth tokens can gain authorised access to cloud mail, files and collaboration tools without asking the victim for a new password. A response that stops at password resets and mailbox rules can leave the intruder active.

The critical clue is often a consent screen, device code or redirect that the victim did not recognise. Attackers may steal a short-lived access token, a longer-lived refresh token or the session created after consent. Each has a different revocation path, so responders need to establish what was captured, which application received it, and whether the cloud provider still considers the associated grant valid.

Australian organisations add geographic and regulatory complexity to this work. A Sydney worker can approve a suspicious prompt from home while a Melbourne administrator resets an account, and a Brisbane branch may use a separate identity tenant or managed service account. Personal information affected may also fall under the Privacy Act and the OAIC’s Notifiable Data Breaches scheme, while security controls should remain consistent with the ASD Essential Eight.

The local market is equally relevant: many Australian mid-market buyers purchase vendor technology through Exclusive Networks’ reseller network, with managed service providers and cyber-insurance requirements shaping the operating model. CARM Security, developed by Exclusive Networks, integrates multiple security technologies for post-breach attack remediation and mitigation, giving organisations a way to coordinate containment and response across a fragmented toolset.

Control question Password-led compromise OAuth-token compromise
What was stolen? Password, MFA response or session Access token, refresh token, device code or consent grant
Where did it work? Account login and active sessions Identity provider, OAuth application, API and connected SaaS services
What must be revoked? Credentials and sessions Tokens, grants, consent and any associated session
What must be investigated? Sign-in and endpoint activity Token issuance, app permissions, mailbox rules and service principals
What confirms recovery? New credentials and verified MFA No surviving token, grant, session or unauthorised application access

Why OAuth theft changes the response

OAuth changes the order of operations. With a stolen password, the immediate concern is the account and its active sessions. With a stolen token, the token, delegated grant and device session are separate objects. Resetting credentials helps if the phishing page also captured a password, but it does not revoke a token already issued to the attacker.

Establish where that token was accepted. It may work against a mailbox, a document repository, a ticketing platform or an API. Check identity-provider logs for token issuance and consent, then use mailbox, file-sharing and audit records to identify access performed through the delegated identity. A token that appears short-lived can still be exchanged for a refresh token or used while its session remains active.

Containment must also be staged so that revocation does not destroy useful evidence or break legitimate business processes. Capture relevant logs before removing consent, disabling an application or terminating sessions. Clear ownership prevents a common delay: one team may believe a token is revoked while another still treats it as active. The responsibility model in vulnerability disclosure guidance is relevant because remediation, notification and disclosure require named owners, deadlines and a shared evidence base.

Contain the token and active sessions

Preserve the incident timeline before making irreversible changes. Record token IDs, consent events, application IDs, client details, user agents and affected service accounts. Export relevant identity, mail, endpoint and cloud audit records, and take snapshots of suspicious consent grants where the platform permits it. The aim is to distinguish the phishing victim’s activity from attacker activity before access is removed.

Revoke at every applicable layer. Invalidate the access and refresh tokens at the issuing provider, remove suspicious OAuth grants, terminate active user and device sessions, and disable any application or service principal tied to the compromise. A refresh-token revocation may not cancel an access token that has already been issued, so organisations must confirm both token invalidation and session termination. Reset the user’s password and review registered MFA methods if the same phishing page may also have captured credentials.

Run a properly coordinated war room, as Australian security teams commonly do, with one incident commander linking identity, email, endpoint, cloud and legal owners. The Sydney operations lead should not assume Melbourne has invalidated the tenant-wide session, while a Brisbane administrator should not assume the account reset covered delegated API access. Include service desks and managed service providers because contractors may retain privileged access, and document every revocation with a timestamp, owner and verification result.

Hunt for persistence and lateral movement

Removing the stolen token establishes a boundary, not a clean environment. Hunt across endpoints and browsers for malicious extensions, credential captures, downloaded installers and scripts associated with the phishing chain. Review identity telemetry for new device registrations, unusual OAuth consent, impossible travel, token replay and access from unfamiliar IP addresses. Compare mailbox and file activity against each user’s normal working pattern rather than relying only on failed sign-in alerts.

Attackers frequently establish several ways back in. They may create inbox forwarding rules, retain refresh tokens, register a malicious application, alter application permissions, add MFA methods or obtain credentials for a service principal. New OAuth consent is especially significant when it requests mail, files, user administration or directory access. That wider view is reflected in Exclusive Networks’ account of coordinated threat response, where containment in one control can expose activity in another.

Use the identity provider, email tenant, endpoint platform and SaaS audit trails as one investigation. Search for the phishing sender, redirect domains, application client IDs and indicators shared by affected users. Avoid deleting an unfamiliar inbox rule or application before collecting its configuration and related logs. Record whether each object is confirmed malicious, benign or still uncertain, then continuously review for re-creation after the first wave of remediation.

Close the gaps across people and platforms

The delivery path must be closed as well as the stolen access. Block the sender infrastructure, malicious redirects and associated domains across email and web controls, then search for other recipients who interacted with the same campaign. Apply relevant controls under the ASD Essential Eight, including MFA, application control, patching and centralised logging. For Australian organisations managing hybrid work, test whether remote sessions face the same access policies and monitoring as office-based users.

Govern OAuth applications rather than treating every consent grant as an isolated event. Restrict who can publish and approve applications, review delegated permissions, require stronger controls for high-risk scopes and remove unused grants. Where a compromised application possessed an application password or client secret, rotate that secret and review role assignments. CARM Security can support this multi-vendor view by bringing specialised controls into a shared remediation workflow rather than leaving each exposure with a separate tool owner.

Prepare notification decisions alongside the technical response. Determine whether personal information was accessed, whether records were exfiltrated and which individuals are at risk of serious harm. The Privacy Act, OAIC notification guidance, contractual duties and cyber-insurer instructions may impose different notification paths and timeframes. Keep a factual record of what is known, what remains unverified and why each decision was made, without waiting for perfect certainty before initiating the required process.

Verify recovery and prepare for recurrence

Recovery requires evidence that the attacker cannot resume the same chain. Confirm that access and refresh tokens are invalid, active sessions have ended, suspicious consent and forwarding rules are absent, application credentials have rotated and affected accounts are protected by the intended MFA method. Monitor identity, mail and cloud activity for at least the period covered by the investigation, with heightened checks for token reuse and newly registered devices.

Turn the findings into a repeatable coordinated response. Record which signals detected the compromise, which controls stopped access and where manual work delayed containment. Include the identity administrator, service desk, communications team, MSP and legal adviser in exercises rather than waiting for another breach. Track time to revoke sessions, time to identify affected grants, consent-review coverage and the proportion of applications using least-privilege scopes. These measures show whether the organisation is reducing exposure or merely responding faster each time.

The concrete next step is a two-hour identity-containment sprint on the next business day, assigning one owner each for token revocation, session invalidation, consent review, evidence retention and affected-service validation, with results recorded in a single incident log.