Persistence (TA0003)(external, opens in a new tab or window)
Initial Access (TA0001)(external, opens in a new tab or window)
text code block:sequence by user.name with maxspan=30s [iam where data_stream.dataset == "google_workspace.token" and event.action == "authorize" and google_workspace.token.client.id == "77185425430.apps.googleusercontent.com" and source.as.number in (9009, 45102, 215540, 29802, 62240, 204957, 395092)] [any where data_stream.dataset == "google_workspace.device" and google_workspace.device.account_state == "REGISTERED"]
Install detection rules in Elastic Security
Detect Google Workspace Device Registration After OAuth from Suspicious ASN in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).