Token / OAuth GoogleWorkspace-token

6 operations, identified by eventName in the audit log.

eventNameDescription
anySource-only rules that filter on applicationName 'token' without specifying an eventName attribute here.
authorizeA user or service authorized an OAuth token for a third-party application.
revokeAn OAuth token granted to a third-party application was revoked.
activityAn OAuth-authorized application performed an API activity.
denyAn OAuth token authorization request was denied.
requestAn OAuth token authorization was requested by a third-party application.

any: Token / OAuth (any event)

#
Application
GoogleWorkspace-token

Description

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

Fields #

NameDescription
applicationNameReports API applicationName value identifying the GWS service (e.g. admin, login, drive).
eventNameThe specific action within this application.
actor.emailEmail address of the user or administrator who performed the action.
actor.profileIdUnique Google Workspace profile ID of the actor.
ipAddressIP address of the actor at the time of the event.
parametersArray of event-specific key-value parameters documenting affected resources.

References #

authorize: Authorize OAuth Token

#
Application
GoogleWorkspace-token

Description

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

Fields #

NameDescription
applicationNameReports API applicationName value identifying the GWS service (e.g. admin, login, drive).
eventNameThe specific action within this application.
actor.emailEmail address of the user or administrator who performed the action.
actor.profileIdUnique Google Workspace profile ID of the actor.
ipAddressIP address of the actor at the time of the event.
parametersArray of event-specific key-value parameters documenting affected resources.

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
EventTypeeqauthorize3 ruleselastic
EventTypeeqcopy1 ruleelastic
gws::token_client_idends_withapps.googleusercontent.com2 ruleselastic
gws::device_account_stateeqREGISTERED1 ruleelastic
source.as.numberin2049571 ruleelastic
source.as.numberin2155401 ruleelastic
source.as.numberin298021 ruleelastic
source.as.numberin3950921 ruleelastic
source.as.numberin451021 ruleelastic
source.as.numberin622401 ruleelastic
source.as.numberin90091 ruleelastic
source.as.numberis_not_null1 ruleelastic
user.emailis_not_null1 ruleelastic

Detection Rules #

View all rules referencing this event →

Elastic #

  • First Time Seen Google Workspace OAuth Login from Third-Party Application source medium: Detects the first time a third-party application logs in and authenticated with OAuth. OAuth is used to grant permissions to specific resources and services in Google Workspace. Compromised credentials or service accounts could allow an adversary to authenticate to Google Workspace as a valid user and inherit their privileges.
  • 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.
  • 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.
Show 1 more (4 total)
  • Google Workspace Object Copied to External Drive with App Consent source medium: Detects when a user copies a Google spreadsheet, form, document or script from an external drive. Sequence logic has been added to also detect when a user grants a custom Google application permission via OAuth shortly after. An adversary may send a phishing email to the victim with a Drive object link where "copy" is included in the URI, thus copying the object to the victim's drive. If a container-bound script exists within the object, execution will require permission access via OAuth in which the user has to accept.

References #

revoke: Revoke OAuth Token

#
Application
GoogleWorkspace-token

Description

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

Fields #

NameDescription
applicationNameReports API applicationName value identifying the GWS service (e.g. admin, login, drive).
eventNameThe specific action within this application.
actor.emailEmail address of the user or administrator who performed the action.
actor.profileIdUnique Google Workspace profile ID of the actor.
ipAddressIP address of the actor at the time of the event.
parametersArray of event-specific key-value parameters documenting affected resources.

References #

activity: Token Activity

#
Application
GoogleWorkspace-token

Description

An OAuth-authorized application performed an API activity.

Fields #

NameDescription
applicationNameReports API applicationName value identifying the GWS service (e.g. admin, login, drive).
eventNameThe specific action within this application.
actor.emailEmail address of the user or administrator who performed the action.
actor.profileIdUnique Google Workspace profile ID of the actor.
ipAddressIP address of the actor at the time of the event.
parametersArray of event-specific key-value parameters documenting affected resources.

References #

deny: Deny OAuth Token

#
Application
GoogleWorkspace-token

Description

An OAuth token authorization request was denied.

Fields #

NameDescription
applicationNameReports API applicationName value identifying the GWS service (e.g. admin, login, drive).
eventNameThe specific action within this application.
actor.emailEmail address of the user or administrator who performed the action.
actor.profileIdUnique Google Workspace profile ID of the actor.
ipAddressIP address of the actor at the time of the event.
parametersArray of event-specific key-value parameters documenting affected resources.

References #

request: Request OAuth Token

#
Application
GoogleWorkspace-token

Description

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

Fields #

NameDescription
applicationNameReports API applicationName value identifying the GWS service (e.g. admin, login, drive).
eventNameThe specific action within this application.
actor.emailEmail address of the user or administrator who performed the action.
actor.profileIdUnique Google Workspace profile ID of the actor.
ipAddressIP address of the actor at the time of the event.
parametersArray of event-specific key-value parameters documenting affected resources.

References #