Elastic high stable eql
Google Workspace Device Registration After OAuth from Suspicious ASN
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.
Detection Logic
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"] False Positives
- ⚠ Users on VPNs, carrier NAT, or cloud egress that map to flagged ASNs may match. Legitimate bulk enrollment or scripted onboarding that uses the same OAuth client can also produce the sequence. Baseline `source.as.organization.name` and successful registration sources before adding exclusions.
Field Validations
Loading…
Comments (0)
Loading comments...