GCP Password Spraying Attack Detection
A single source IP failing to authenticate into more than 20 unique Google Workspace user accounts within a 5-minute window indicates a password spraying attack targeting GCP.
Triage facts
Revision 2- Evidence
- Unknown
- Severity
- High
- Sources
- 4 public sources
- Freshness
- Revision 2Jan 3, 14:30 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
This analytic detects password spraying attacks against Google Workspace accounts. It identifies a single source IP address that fails to authenticate to more than 20 unique Google Workspace user accounts within a 5-minute window. This activity is based on Google Workspace login failure events and is crucial for defenders because successful password spraying can lead to unauthorized access to sensitive resources, data breaches, or further exploitation within the Google Cloud Platform. This type of attack is typically conducted by adversaries attempting to gain initial access or elevate privileges. The Splunk Add-on for Google Workspace is required to collect the necessary log data for this detection.
Attack Chain
- The attacker identifies a list of valid Google Workspace usernames.
- The attacker crafts login requests with common or default passwords for each username.
- The attacker sends these login requests from a single source IP address to avoid account lockouts.
- Google Workspace records failed login attempts for each user in its logs.
- Splunk ingests the Google Workspace logs via the Google Workspace API and the Splunk Add-on for Google Workspace.
- The detection analytic identifies source IPs with more than 20 unique user authentication failures within a 5-minute window.
- Security analysts investigate the flagged IP address and user accounts for further malicious activity.
- If successful, the attacker gains unauthorized access to user accounts, potentially leading to data exfiltration or further lateral movement within the GCP environment.
Impact
A successful password spraying attack can result in unauthorized access to multiple Google Workspace accounts. Depending on the permissions associated with these accounts, the attacker may be able to access sensitive data, modify configurations, or pivot to other resources within the Google Cloud Platform. This can lead to data breaches, financial losses, and reputational damage. The number of affected accounts can vary significantly depending on the attacker's persistence and the effectiveness of password policies.
Recommendation
- Deploy the Sigma rule
GCP Multiple Users Failing Authentication From Single IPto your SIEM and tune the threshold (unique_accounts > 20) according to your environment. - Enable and monitor Google Workspace login events via the Splunk Add-on for Google Workspace to ensure the required data source is available for detection.
- Investigate any alerts generated by the
GCP Multiple Users Failing Authentication From Single IPSigma rule to determine if a password spraying attack is in progress. - Review and enforce strong password policies within Google Workspace to mitigate the risk of successful password spraying attacks.
- Consider implementing multi-factor authentication (MFA) for all Google Workspace users to further reduce the risk of account compromise.
Detection coverage 2
GCP Multiple Users Failing Authentication From Single IP
highDetects a single source IP failing to authenticate to multiple Google Workspace accounts, indicating a potential password spraying attack.
GCP Single User Multiple Failed Logins From Different IPs
highDetects multiple failed logins from different source IPs to single Google Workspace accounts, indicating a potential password spraying attack.
Detection queries are available on the platform. Get full rules →