Google Workspace Suspicious Login Activity
Detect Google Workspace login activity that Google has classified as suspicious, potentially indicating initial access, privilege escalation, defense evasion, or persistence attempts.
This brief focuses on detecting suspicious login activity within Google Workspace environments, as flagged by Google’s internal risk assessment mechanisms. Google Workspace logs login events and classifies them based on various risk factors, including the use of less secure applications, programmatic logins, and other anomalies. This detection capability is crucial for identifying potential compromises, unauthorized access attempts, and malicious activities within the Google Workspace ecosystem. Analyzing these flagged events allows security teams to proactively respond to threats before they escalate, preventing data breaches and maintaining the integrity of sensitive information. This alert focuses on logins classified as ‘suspicious_login_less_secure_app’, ‘suspicious_login’, and ‘suspicious_programmatic_login’.
Attack Chain
- Initial Access: An attacker gains initial access using compromised credentials or brute-force techniques targeting Google Workspace accounts.
- Login Attempt: The attacker attempts to log in to a Google Workspace account using a less secure application (e.g., an older email client without modern authentication) or via programmatic login.
- Suspicious Activity Detection: Google’s internal systems analyze the login attempt and flag it as suspicious based on various risk factors, such as unusual location, time of day, or login method.
- Event Logging: Google Workspace logs the suspicious login event, including the reason for the classification (e.g., ‘suspicious_login_less_secure_app’).
- Potential Privilege Escalation: Upon successful login, the attacker may attempt to escalate privileges within the Google Workspace environment to gain broader access.
- Defense Evasion: The attacker might use techniques to evade detection, such as disabling security features or modifying audit logs.
- Persistence: The attacker establishes persistence by creating new accounts, modifying existing ones, or installing malicious apps.
- Data Exfiltration/Malicious Activity: The attacker uses the compromised account to exfiltrate sensitive data or perform other malicious activities, such as sending phishing emails.
Impact
Successful exploitation can lead to unauthorized access to sensitive data stored within Google Workspace, including emails, documents, and other files. This can result in data breaches, financial loss, and reputational damage. The number of affected users depends on the scope of the compromised account and the attacker’s ability to escalate privileges. Targeted sectors are broad, affecting any organization relying on Google Workspace for collaboration and data storage.
Recommendation
- Deploy the provided Sigma rule to your SIEM to detect suspicious login activity classified by Google Workspace (logsource:
gcp, service:google_workspace.login). - Investigate any alerts generated by the Sigma rule to determine the legitimacy of the login attempt and take appropriate action, such as resetting passwords or disabling compromised accounts.
- Enforce multi-factor authentication (MFA) for all Google Workspace accounts to mitigate the risk of credential compromise.
- Disable or restrict the use of less secure apps within Google Workspace to reduce the attack surface.
- Monitor Google Workspace audit logs for other suspicious activities, such as unusual file access or data exfiltration attempts.
Detection coverage 3
Gworkspace Suspicious Login Less Secure App
mediumDetects Google Workspace login activity classified as suspicious due to the use of less secure app.
Gworkspace Suspicious Programmatic Login
mediumDetects Google Workspace login activity classified as suspicious programmatic login.
Gworkspace Suspicious Login
mediumDetects Google Workspace login activity classified as suspicious login.
Detection queries are kept inside the platform. Get full rules →