Skip to main content

OAuth app investigation

How an AI SOC investigates a risky OAuth grant: list the app's scopes and users, check the publisher, trace what the token did, and revoke with approval.

Use case
Updated

The short answer

An OAuth app investigation decides whether a third-party app that users authorized is a risk, what data it reached, and whether to revoke it. Cotool's example OAuth Grant Responder runs this from a Google Workspace alert and asks #security before revoking the app everywhere.[1]

The problem

Stolen application access tokens let an adversary call APIs with the account's permissions and act on its data.[6]

Grants are spread across users: Google's token activity reports list each user who authorized or revoked an app.[7]

How an AI SOC handles it

  1. List scopes and grants

    In Google Workspace, the agent lists the app's scopes and every user who granted it.[1][7]

  2. Check the publisher

    The agent checks the publisher's domain in VirusTotal.[1]

  3. Trace the token

    The agent traces what the token read and changed.[1]

  4. Check Microsoft 365 too

    A hunt lists Entra applications holding delegated OAuth grants, with their names, roles, and scopes.[2][3]

  5. Ask before revoking

    The agent asks #security in Slack before revoking the app for every user.[1]

Example

List OAuth token activityhttp
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/token?maxResults=25

The Reports API call for OAuth token activity across all users. Add an eventName filter, such as revoke, to narrow it.[7]

What people approve

  • Revoking the app for every user waits for approval in Slack.[1]
  • Response agents cannot close an alert as True Positive. When an agent confirms malicious activity, it escalates the alert and a person closes it.[4]

How Cotool handles it

  • Cotool's Detect page shows a Google Workspace OAuth grant detection that a tuning agent narrowed with the security team's register of approved apps.[5]

Integrations used

Sources

  1. Respond to every signal (Cotool Respond) · accessed November 16, 2026
  2. Microsoft Graph integration (Cotool docs) · accessed November 16, 2026
  3. Threat hunting (Cotool Hunt) · accessed November 16, 2026
  4. Alerts (Cotool docs) · accessed November 16, 2026
  5. Detection engineering (Cotool Detect) · accessed November 16, 2026
  6. Steal Application Access Token, T1528 (MITRE ATT&CK) · accessed November 16, 2026
  7. Manage OAuth token audit activity (Google Workspace Admin SDK) · accessed November 16, 2026

Related use cases

All use cases

Related reading

Attackers are scaling with tokens

Cotool helps defenders operate at machine speed. See how security teams are scaling Detection & Response.

Book a demo