Token / OAuth

eventNameDescriptionSampleRule
authorizeA user or service authorized an OAuth token for a third-party application.YY
revokeAn OAuth token granted to a third-party application was revoked.YN
activityAn OAuth-authorized application performed an API activity.NN
denyAn OAuth token authorization request was denied.NN
requestAn OAuth token authorization was requested by a third-party application.NN

authorize: Authorize OAuth Token

#
ApplicationName
token

Description

A user or service authorized an OAuth token for a third-party application.

Detection Fields #

Fields referenced by at least one attached detection rule. This view counts distinct rules and is not a complete schema for this catalog entry.

NameRulesVendors
event.action4 detection rulesElastic
google_workspace.token.client.id (GWS)3 detection rulesElastic
id:applicationName2 detection rulesPanther
ipAddress2 detection rulesPanther
name2 detection rulesPanther
source.as.number2 detection rulesElastic
google_workspace.token.scope.value1 detection ruleElastic
user.email1 detection ruleElastic

Example Audit Activity #

{
  "kind": "admin#reports#activity",
  "id": {
    "time": "2022-08-15T22:14:10.462Z",
    "uniqueQualifier": "4654910872918186338",
    "applicationName": "token",
    "customerId": "C00mpaiwz"
  },
  "etag": "\"_ZVRqe-BUDYcYeOIPo-gm6Eh1QaGne4ACjHHI6qsr6A/YK5RMkLvGA4EbrRlIo0Mc7MN7BY\"",
  "actor": {
    "email": "admin@cloud-response.com",
    "profileId": "111440584475724055600"
  },
  "ipAddress": "209.94.244.98",
  "events": [
    {
      "name": "authorize",
      "parameters": [
        {
          "name": "client_id",
          "value": "509322733035-mfu29pqjjs2ocvnnb1hifk2ggm9l4jj4.apps.googleusercontent.com"
        },
        {
          "name": "app_name",
          "value": "Data exfil"
        },
        {
          "name": "client_type",
          "value": "WEB"
        },
        {
          "name": "scope_data",
          "multiMessageValue": [
            {
              "parameter": [
                {
                  "name": "scope_name",
                  "value": "https://www.googleapis.com/auth/admin.reports.audit.readonly"
                },
                {
                  "name": "product_bucket",
                  "multiValue": [
                    "GSUITE_ADMIN"
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "scope",
          "multiValue": [
            "https://www.googleapis.com/auth/admin.reports.audit.readonly"
          ]
        }
      ]
    }
  ]
}

Common Indicators #

Positive field/value combinations most frequently checked by detection rules attached to this catalog entry, derived from cross-vendor predicate analysis. This is separate from Fields accounting, which also includes exclusions and counts distinct attached rules.

FieldKindValueRulesVendors
google_workspace.token.client.id (GWS)ends_with*apps.googleusercontent.com2 ruleselastic
google_workspace.device.account_state (GWS)eqREGISTERED1 ruleelastic
user.email (elastic rule field)is_not_null1 ruleelastic

Detection Rules #

Full rule details for this catalog entry, including ATT&CK technique mappings and native queries →

Elastic #

  • First Time Seen Google Workspace OAuth Login from Third-Party Application source medium: Detects the first time a user authorizes a third-party Google OAuth application that requests identity or sign-in scopes. Adversaries may abuse compromised credentials or phishing-linked consent flows to register novel OAuth clients, obtain refresh tokens, and authenticate as valid users while evading password-only detections.T1078, T1078.004, T1550, T1550.001
  • Google Workspace Device Registration After OAuth from Suspicious ASN source high: Detects when a Google Workspace account completes OAuth authorization for a specific Google OAuth client from a high-risk autonomous system number (ASN), followed within 30 seconds by a device registration event with account state REGISTERED. This sequence can indicate device enrollment or join flows initiated from attacker-controlled or residential-proxy infrastructure after a user authorizes a sensitive client.T1098, T1098.005, T1566, T1566.002
  • Google Workspace User Login with Unusual ASN source low: Detects the first time a Google Workspace user successfully signs in from a given source ASN within a 14-day historical window. Most users have a stable set of egress ASNs (home ISP, corporate VPN, mobile carrier). A new ASN for a user is a meaningful anomaly as it surfaces ISP changes and travel, but also catches AiTM phishing-kit relays whose egress ASN was never previously associated with the user.T1078, T1078.004, T1528, T1557

Panther #

References #

revoke: Revoke OAuth Token

#
ApplicationName
token

Description

An OAuth token granted to a third-party application was revoked.

Example Audit Activity #

{
  "kind": "admin#reports#activity",
  "id": {
    "time": "2022-08-15T09:43:51.994Z",
    "uniqueQualifier": "-3118896930141663172",
    "applicationName": "token",
    "customerId": "C00mpaiwz"
  },
  "etag": "\"_ZVRqe-BUDYcYeOIPo-gm6Eh1QaGne4ACjHHI6qsr6A/uiM7zuJ9pZ4SKEqjFr_ANLNvdWU\"",
  "actor": {
    "email": "admin@cloud-response.com",
    "profileId": "111440584475724055600"
  },
  "events": [
    {
      "name": "revoke",
      "parameters": [
        {
          "name": "client_id",
          "value": "77185425430.apps.googleusercontent.com"
        },
        {
          "name": "app_name",
          "value": "Google Chrome"
        },
        {
          "name": "client_type",
          "value": "NATIVE_DESKTOP"
        },
        {
          "name": "scope_data",
          "multiMessageValue": [
            {
              "parameter": [
                {
                  "name": "scope_name",
                  "value": "https://www.google.com/accounts/OAuthLogin"
                },
                {
                  "name": "product_bucket",
                  "multiValue": [
                    "IDENTITY"
                  ]
                }
              ]
            }
          ]
        },
        {
          "name": "scope",
          "multiValue": [
            "https://www.google.com/accounts/OAuthLogin"
          ]
        }
      ]
    }
  ]
}

References #

activity: Token Activity

#
ApplicationName
token

Description

An OAuth-authorized application performed an API activity.

References #

deny: Deny OAuth Token

#
ApplicationName
token

Description

An OAuth token authorization request was denied.

References #

request: Request OAuth Token

#
ApplicationName
token

Description

An OAuth token authorization was requested by a third-party application.

References #

any: Token / OAuth (any event)

#

Scope grouping: This repository-authored catalog entry represents a broad attribution scope, not a distinct emitted event or operation. Any sample below is a representative record from that scope; attached rules, if any, are listed separately.

ApplicationName
token

Description

Source-only rules that filter on applicationName 'token' without specifying an eventName attribute here.

References #