Skip to content
Threat Feed
medium advisory

Detection of Out-of-Domain Email Forwarding in Google Workspace

Detects automatic email forwarding to external domains in Google Workspace, which may indicate data leakage or misuse by malicious insiders or compromised accounts.

This brief focuses on detecting unauthorized email forwarding to external domains within Google Workspace environments. The primary concern is the potential for data exfiltration or misuse by malicious insiders or threat actors who have compromised user accounts. The activity is logged by Google Workspace and can be monitored using the Google Workspace Admin Reports API. The event name associated with this activity is email_forwarding_out_of_domain, which is generated when a user configures automatic email forwarding to an address outside the organization’s domain. Successful exploitation of this technique can lead to the leakage of sensitive information, intellectual property theft, or compliance violations.

Attack Chain

  1. An attacker gains unauthorized access to a Google Workspace user account, potentially through phishing, credential stuffing, or other methods.
  2. The attacker navigates to the Gmail settings for the compromised account.
  3. The attacker configures automatic email forwarding to an external email address controlled by the attacker (e.g., a Gmail, Outlook, or ProtonMail address).
  4. The attacker sets up filters to forward specific types of emails, such as those containing sensitive keywords or originating from key personnel.
  5. Legitimate emails are received by the compromised user and automatically forwarded to the external address.
  6. The attacker collects the forwarded emails, extracting sensitive data or using it for further malicious activities.
  7. The attacker covers their tracks by deleting audit logs or modifying forwarding rules.

Impact

Successful exploitation of unauthorized email forwarding can lead to significant data breaches, intellectual property theft, and compliance violations. The impact can range from exposure of sensitive customer data to the loss of competitive advantage due to stolen trade secrets. Depending on the volume and nature of the data exfiltrated, organizations may face legal and regulatory penalties, as well as reputational damage.

Recommendation

  • Deploy the provided Sigma rule to your SIEM to detect email_forwarding_out_of_domain events in Google Workspace logs (logsource: gcp, service: google_workspace.login).
  • Investigate any alerts generated by the Sigma rule to determine the legitimacy of the email forwarding configuration.
  • Implement multi-factor authentication (MFA) for all Google Workspace accounts to reduce the risk of account compromise.
  • Regularly review and audit email forwarding rules to identify and remove any unauthorized configurations.
  • Train users to recognize and report phishing attempts to prevent account compromise.

Detection coverage 2

Google Workspace Out Of Domain Email Forwarding

medium

Detects automatic email forwarding to external domains in Google Workspace, which may indicate data leakage or misuse.

sigma tactics: collection techniques: T1114.003 sources: google_workspace, gcp, google_workspace.login

Google Workspace Potential Account Compromise via Email Forwarding Creation

high

Detects potential account compromise activity when email forwarding rules are created to external domains.

sigma tactics: collection, initial_access techniques: T1078, T1114.003 sources: google_workspace, gcp, google_workspace.login

Detection queries are kept inside the platform. Get full rules →