GCP - User Investigation

This playbook performs an investigation on a specific user in GCP environments, using queries and logs from G Suite Auditor, and GCP Logging to locate the following activities performed by the user: - Failed login attempt - Suspicious API usage by the user - Anomalous network traffic by the user - Unusual and suspicious login attempt - User's password leaked

GCP Enrichment and Remediation · 24 tasks · 3 inputs · 8 outputs

Inputs

  • Username — The username to investigate.
  • GcpProjectName — The GCP project name. This is a mandatory field for GCP queries.
  • GcpTimeSearchFrom — The Search Time for the `GetTime` task used by the GCP Logging search query. This value represents the number of days to include in the search. Default value: 1. (1 Day)

Outputs

  • GcpAnomalousNetworkTraffic — Determines whether there are events of anomalous network traffic performed by the user in the GCP environment. Possible values: True/False.
  • GcpSuspiciousApiUsage — Determines whether there are events of suspicious API usage by the user in the GCP environment. Possible values: True/False.
  • GcpFailLogonCount — The number of failed logins by the user in the GCP environment.
  • GsuiteFailLogonCount — The number of failed logins by the user in the G Suite environment.
  • GsuiteUnusualLoginAllowedCount — The number of unusual logins performed by the user and allowed in the G Suite environment.
  • GsuiteUnusualLoginBlockedCount — The number of unusual logins performed by the user and blocked in the G Suite environment.
  • GsuiteSuspiciousLoginCount — The number of suspicious logons performed by the user in the G Suite environment.
  • GsuiteUserPasswordLeaked — Determines whether the user's password was leaked in the G Suite environment. Possible values: True/False.

Commands used

gcp-logging-log-entries-list gsuite-activity-search

Flowchart

yes yes Start Start Is Google Cloud Logging enabled and the user name is defined? Is Google Cloud Logging e... Is G Suite Auditor enabled and the user name is defined? Is G Suite Auditor enable... Done Done Failed login - gsuite-activity-search Failed login gsuite-activity-search A count of login failure - Set A count of login failure Set G Suite Auditor G Suite Auditor Google Cloud Logging Google Cloud Logging Multiple failed login attempts by the service account - gcp-logging-log-entries-list Multiple failed login att... gcp-logging-log-entries-list An unusual login was performed by the user - gsuite-activity-search An unusual login was perf... gsuite-activity-search An unusual login attempt was performed by the user and blocked - gsuite-activity-search An unusual login attempt ... gsuite-activity-search Suspicious login was performed by the user - gsuite-activity-search Suspicious login was perf... gsuite-activity-search The user disabled and the user's password leaked - gsuite-activity-search The user disabled and the... gsuite-activity-search A count of Suspicious login performed by the user - Set A count of Suspicious log... Set A count of unusual logins attempts performed by the user and blocked - Set A count of unusual logins... Set A count of unusual logins performed by the user - Set A count of unusual logins... Set Set If User's password was leaked - Set Set If User's password wa... Set Suspicious API usage by the service account - gcp-logging-log-entries-list Suspicious API usage by ... gcp-logging-log-entries-list Anomalous network traffic by the service account - gcp-logging-log-entries-list Anomalous network traffic... gcp-logging-log-entries-list Get Time for a search - GetTime Get Time for a search GetTime Get TimeNow for a search - GetTime Get TimeNow for a search GetTime Count of login failure by the service account - Set Count of login failure b... Set Set If there suspicious API usage by the service account - Set Set If there suspicious ... Set Set If there is anomalous network traffic by the service account - Set Set If there is anomalous... Set