Google Workspace Device Registration Burst for Single User
Detects bursts of Google Workspace device registration events for a single user exceeding three distinct device registrations within one minute, indicative of AiTM phishing or stolen OAuth token replay attacks.
This detection identifies anomalous Google Workspace device registration activity indicative of adversary-in-the-middle (AiTM) phishing or stolen OAuth token replay attacks. The rule focuses on bursts of DEVICE_REGISTER_UNREGISTER_EVENT logs where a single user registers three or more distinct device IDs within a one-minute window. While legitimate session/sync registrations can trigger this event, a high-cardinality burst is rare and suggests malicious activity, such as a phishing kit relaying user sign-ins or token-replay tooling driving multiple sessions against a stolen OAuth refresh token. This activity can lead to account compromise, data exfiltration, and unauthorized access to Google Workspace resources. The rule leverages Google Workspace device logs.
Attack Chain
- The attacker initiates a phishing campaign targeting Google Workspace users (T1566).
- The victim clicks a malicious link, leading to an AiTM phishing kit or a credential harvesting page (T1566.001).
- The attacker relays the victim’s credentials to Google, successfully authenticating and bypassing multi-factor authentication (MFA) if present (T1557).
- The attacker’s relay or stolen OAuth token replay tooling registers multiple device contexts in rapid succession, generating multiple
DEVICE_REGISTER_UNREGISTER_EVENTlogs with distinctgoogle_workspace.device.idvalues (T1098.005). - The attacker leverages the newly registered devices or replayed tokens to gain persistent access to the victim’s Google Workspace account (T1078.004).
- The attacker performs unauthorized actions, such as accessing sensitive data, modifying account settings, or sending malicious emails (T1530).
Impact
Successful exploitation can lead to account compromise, unauthorized access to sensitive data within Google Workspace, and potential business email compromise (BEC). The attacker could exfiltrate data, modify account settings, or use the compromised account to further propagate attacks within the organization. The impact is magnified if the compromised user has elevated privileges or access to critical resources.
Recommendation
- Deploy the provided Sigma rule
Detect Google Workspace Device Registration Burst for Single Userto detect suspicious bursts of device registrations (Log Source: Google Workspace Device Logs). - Investigate users triggering the rule, focusing on device fingerprint consistency and preceding login events, as described in the rule’s
notesection. - Cross-reference
logs-google_workspace.loginevents for successful logins preceding the burst, examiningsource.geo.country_name,source.as.organization.name, anduser_agent.originalfor anomalies. - Revoke OAuth tokens for affected users (
DELETE /admin/directory/v1/users/<email>/tokens/<clientId>) if compromise is suspected, as mentioned in the rule’snotesection.
Detection coverage 1
Detect Google Workspace Device Registration Burst for Single User
mediumDetects a burst of Google Workspace device registration events for a single user, indicating potential AiTM phishing or token replay attacks.
Detection queries are available on the platform. Get full rules →