Detection rules for Google Cloud Data sources. Every rule contains its MITRE ATT&CK mapping, an impact rating, and details on what it identifies.

This category lists 34 detection rules.

RuleCategoryTechniqueImpact (C/I/A)
Anthos Security Policy ViolationsSecurity Control BypassT1562 - Impair DefensesC:3 / I:3 / A:2
Binary Authorization Bypass DetectionDefense EvasionT1553 - Subvert Trust ControlsC:3 / I:3 / A:2
Cloud Identity Suspicious Sign-ins DetectionInitial AccessT1078 - Valid AccountsC:3 / I:2 / A:1
GCP 2-step verification disabledDefense EvasionT1562 - Impair DefensesC:1 / I:2 / A:3
GCP Audit Log Disabling or TamperingDefense EvasionT1562.008 - Impair Defenses: Disable Cloud LogsC:3 / I:3 / A:2
GCP BigQuery Data Exfiltration DetectionData ExfiltrationT1567 - Exfiltration Over Web ServiceC:3 / I:1 / A:1
GCP Break-Glass Container Workload DeployedDefense EvasionT1548 - Abuse Elevation Control MechanismC:3 / I:3 / A:2
GCP Cloud Function and Cloud Run AbusePersistenceT1059 - Command and Scripting InterpreterC:2 / I:2 / A:1
GCP Cloud Storage Data ExfiltrationData ExfiltrationT1530 - Data from Cloud Storage ObjectC:3 / I:1 / A:1
GCP Cryptomining Instance Launch DetectionResource HijackingT1496 - Resource HijackingC:1 / I:2 / A:3
GCP Custom Role with Overly Permissive PermissionsPrivilege EscalationT1098 - Account ManipulationC:3 / I:3 / A:1
GCP DLP Re-Identification API CallCollectionT1565 - Data ManipulationC:3 / I:2 / A:0
GCP Domain-Wide API Access GrantedPrivilege EscalationT1098 - Account ManipulationC:3 / I:3 / A:2
GCP KMS Key Destruction or DisablingImpactT1552 - Unsecured CredentialsC:1 / I:3 / A:3
GCP Network Packet Capture ConfigurationCredential AccessT1040 - Network SniffingC:3 / I:1 / A:1
GCP Project Manipulation and Shadow ProjectsAccount ManipulationT1578 - Modify Cloud Compute InfrastructureC:2 / I:3 / A:3
GCP Secret Manager Bulk Access DetectionCredential AccessT1552 - Unsecured CredentialsC:3 / I:1 / A:1
GCP Service Account Impersonation DetectionCredential AccessT1550.001 - Use Alternate Authentication Material: Application Access TokenC:3 / I:3 / A:1
GCP Workload Identity Federation AbuseCredential AccessT1078 - Valid AccountsC:3 / I:3 / A:1
GCP account is probably used for spammingInitial AccessT1566 - PhishingC:1 / I:2 / A:3
GCP detected account with password leakInitial AccessT1078 - Valid AccountsC:3 / I:3 / A:2
GCP probable Defense Evasion, Logging Sink DeletionDefense EvasionT1562 - Impair DefensesC:1 / I:2 / A:3
GCP probable Exfiltration, Logging Sink ModificationExfiltrationT1537 - Transfer Data to Cloud AccountC:3 / I:2 / A:2
GCP probable Government-backed attackCollectionT1560 - Archive Collected DataC:3 / I:3 / A:2
GCP probable Impact, Storage Bucket DeletedImpactT1485 - Data DestructionC:1 / I:2 / A:3
GCP probable Password GuessingCredential AccessT1110.001 - Brute Force: Password GuessingC:3 / I:3 / A:2
GCP probable Privilege Escalation, Kubernetes role bindings created or patchedPrivilege EscalationT1548 - Abuse Elevation Control MechanismC:1 / I:2 / A:3
GCP probable hijacked accountCollectionT1560 - Archive Collected DataC:3 / I:3 / A:2
GCP suspicious login blockedInitial AccessT1078 - Valid AccountsC:1 / I:2 / A:3
GCP suspicious login from less secure appInitial AccessT1190 - Exploit Public-Facing ApplicationC:1 / I:2 / A:3
GCP suspicious programmatic loginCredential AccessT1110 - Brute ForceC:1 / I:2 / A:3
GKE Kubernetes Admission Webhook ModifiedPersistenceT1078.004 - Valid Accounts: Cloud AccountsC:3 / I:3 / A:2
Google Cloud Service Account Key Creation SpikeCredential AccessAccount ManipulationC:3 / I:3 / A:2
Google Workspace MFA Enforcement DisabledDefense EvasionT1556 - Modify Authentication ProcessC:3 / I:3 / A:1

Rule Example

Below is an example of a rule definition for Anthos Security Policy Violations (view in repository):

# Rule version v1.0.0

dataTypes:
  - google
name: Anthos Security Policy Violations
impact:
  confidentiality: 3
  integrity: 3
  availability: 2
category: Security Control Bypass
technique: "T1562 - Impair Defenses"
adversary: origin
references:
  - https://cloud.google.com/anthos/docs/concepts/overview
  - https://attack.mitre.org/techniques/T1562/
description: |
  Detects security-related events in Google Anthos environments including policy violations, authentication failures, and suspicious container activities. Monitors Anthos Service Mesh, Config Management, and Policy Controller events.
  
  Next Steps:
  - Review the specific policy violation details in the event logs
  - Verify if the violation was authorized or represents a legitimate security concern
  - Check the source IP and user account associated with the violation
  - Examine recent configuration changes to Anthos security policies
  - Validate that security controls are properly configured and enforced
  - Consider implementing additional monitoring for the affected resources
where: |
  (
    oneOf("log.protoPayload.serviceName", ["anthos.googleapis.com", "anthospolicycontroller.googleapis.com", "anthosservicemesh.googleapis.com"]) ||
    oneOf("log.resourceType", ["k8s_cluster", "gke_cluster"])
  ) && 
  (
    contains("log.protoPayload.methodName", "Policy") ||
    oneOf("log.jsonPayload.type", ["admission.k8s.io/violation", "policy.violation", "security.alert"]) ||
    oneOf("log.severity", ["ERROR", "WARNING"])
  ) &&
  (
    equals("log.protoPayload.response.status", "PERMISSION_DENIED") ||
    contains("log.protoPayload.status.message", "violation") ||
    contains("log.protoPayload.status.message", "denied") ||
    contains("log.jsonPayload.details", "policy")
  )
groupBy:
  - lastEvent.log.protoPayload.resourceName
  - lastEvent.log.resource.labels.project_id

Rule Details

Anthos Security Policy Violations

Identifies security events across Google Anthos environments, such as policy breaches, failed authentication, and unusual container behavior. Tracks events from Anthos Service Mesh, Config Management, and Policy Controller.

Binary Authorization Bypass Detection

Identifies efforts to circumvent Binary Authorization controls, such as breakglass deployments, policy breaches, and unapproved container deployments. Such events may signal attempts to deploy untrusted or malicious container images.

Cloud Identity Suspicious Sign-ins Detection

Identifies suspicious login attempts to Google Cloud Identity, such as sign-ins from unknown locations, atypical IP addresses, or following repeated failures. These may point to compromised credentials or unauthorized access efforts.

GCP 2-step verification disabled

Google Cloud has detected that 2-step verification was disabled for the organization or a user

GCP Audit Log Disabling or Tampering

Identifies efforts to turn off GCP audit logging, such as deleting sinks, creating log exclusion filters, and changing audit configurations. Attackers may tamper with logging infrastructure to conceal their actions from security monitoring.

GCP BigQuery Data Exfiltration Detection

Identifies BigQuery activities that may signal data exfiltration, such as large exports, table copies to outside projects, and extract jobs writing to external storage. Attackers may leverage BigQuery to query and export large datasets from compromised projects.

GCP Break-Glass Container Workload Deployed

Identifies container workload deployments that use the break-glass mechanism to circumvent Binary Authorization policy. Although valid in emergencies, this bypasses security controls and may be exploited to deploy malicious or untrusted container images.

GCP Cloud Function and Cloud Run Abuse

Identifies the creation or alteration of Cloud Functions and Cloud Run services, which may be used for persistence, backdoor access, or command execution. Attackers may deploy serverless functions with high-privilege service accounts to retain access or exfiltrate data.

GCP Cloud Storage Data Exfiltration

Detects activity in GCP Cloud Storage that could point to data exfiltration, including making buckets publicly accessible, changing IAM policies so allUsers has access, or downloading objects in bulk. Such behavior may indicate an attacker is trying to exfiltrate data from cloud storage.

GCP Cryptomining Instance Launch Detection

Identifies the creation of GPU-accelerated or high-compute GCP instances often used for cryptomining. Attackers with compromised GCP credentials frequently launch costly GPU instances (a2, g2) or compute-optimized instances in unusual regions for cryptocurrency mining.

GCP Custom Role with Overly Permissive Permissions

Identifies the creation or modification of GCP custom IAM roles that may contain overly permissive permissions for privilege escalation. Attackers may create custom roles with broad permissions such as iam.serviceAccountKeys.create, iam.serviceAccounts.actAs, or compute.instances.setMetadata to escalate privileges.

GCP DLP Re-Identification API Call

Detects requests to the DLP re-identification API, which undoes data de-identification. This sensitive action can reveal PII, financial data, or health records that were previously protected. Use without authorization may indicate possible data exfiltration efforts.

GCP Domain-Wide API Access Granted

Identifies when domain-wide delegation is granted to a service account in Google Workspace. This permits the service account to impersonate any user in the domain and access their data, making it a high-impact privilege escalation vector.

GCP KMS Key Destruction or Disabling

Identifies the destruction or disabling of Cloud KMS key versions, which could render encrypted data unrecoverable. Attackers may destroy encryption keys as part of a destructive attack to prevent data recovery or disrupt operations that depend on encrypted resources.

GCP Network Packet Capture Configuration

Identifies the creation or modification of Packet Mirroring configurations in GCP. Attackers leverage packet mirroring to capture network traffic for credential theft, data exfiltration, or reconnaissance.

GCP Project Manipulation and Shadow Projects

Identifies GCP project creation, deletion, and undelete operations that may point to shadow project creation for persistence or project deletion for impact. Attackers may establish new projects outside organizational controls to host malicious workloads.

GCP Secret Manager Bulk Access Detection

Detects large-scale access to secrets in GCP Secret Manager, which can suggest credential harvesting. An attacker with access to a GCP project might list and pull every stored secret to collect API keys, database credentials, and other sensitive information.

GCP Service Account Impersonation Detection

Detects service account impersonation via token generation APIs such as GenerateAccessToken, GenerateIdToken, and SignBlob. Attackers can impersonate service accounts to raise their privileges or reach resources assigned to that service account.

GCP Workload Identity Federation Abuse

Detects when workload identity pools and providers are created or changed to allow external identities to reach GCP resources. Attackers might set up workload identity configurations that give access to identity providers they control, enabling long-term cloud access.

GCP account is probably used for spamming

A user's account was disabled after Google learned that it had been used for spamming. Typically, spamming is used to carry out other attacks such as phishing or spreading malware.

GCP detected account with password leak

A user's account was disabled after google detected a password leak.

GCP probable Defense Evasion, Logging Sink Deletion

Defense Evasion covers methods adversaries employ to remain undetected during a compromise. Such techniques include removing or turning off security tools, as well as making data and scripts unclear or encrypted. Adversaries also take advantage of trusted processes to conceal and disguise their malware. Additional tactics appear here when they offer the extra advantage of undermining defenses. This identifies deletion of a Logging sink in Google Cloud Platform (GCP). Whenever a log entry is received, Logging checks it against the sinks for that resource. Any sink with a matching filter sends a copy of the log entry to its export destination. An adversary might remove a Logging sink to avoid detection.

GCP probable Exfiltration, Logging Sink Modification

Exfiltration covers methods adversaries might use to take data from your network. After collecting data, adversaries frequently bundle it to avoid detection while extracting it. This may involve compression and encryption. Methods for moving data out of a target network usually involve sending it over their command and control channel or another channel, and can also involve limiting transmission size. This identifies a change to a Logging sink in Google Cloud Platform (GCP). Logging evaluates the log entry against the sinks in that resource. Any sink with a matching filter writes a copy of the log entry to its export destination. An adversary might modify a Logging sink to exfiltrate logs to another export destination.

GCP probable Government-backed attack

An account belonging to one of your users may have been targeted by a government-backed attack. Attackers backed by a government are trying to reach the account of one of your users. Fewer than 0.1% of all Google Account users experience such an attack. The alert may be a false alarm. Even so, we believe we have detected activity that government-backed attackers use in attempts to steal passwords or other personal information. This activity includes the user receiving an email with a harmful attachment, links to malicious software downloads, or links to fake websites designed to obtain passwords.

GCP probable Impact, Storage Bucket Deleted

Impact covers methods adversaries use to disrupt availability or compromise integrity by manipulating business and operational processes. Techniques for impact can involve destroying or altering data. At times, business processes may appear normal but could have been changed to serve the adversaries' goals. Adversaries might use these techniques to achieve their final objective or to cover a confidentiality breach. This identifies when a Google Cloud Platform (GCP) storage bucket is deleted. An adversary may delete a storage bucket to disrupt their target's business operations.

GCP probable Password Guessing

Adversaries who lack prior knowledge of valid credentials in a system or environment might guess passwords in an effort to access accounts. With no knowledge of an account's password, an adversary may choose to guess it systematically through a repetitive or iterative process. During an operation, an adversary may guess login credentials without prior knowledge of system or environment passwords by drawing on a list of common passwords. Password guessing might or might not consider the target's password complexity policies or use policies that can lock accounts after a set number of failed attempts.

GCP probable Privilege Escalation, Kubernetes role bindings created or patched

Privilege Escalation refers to techniques adversaries use to gain higher-level permissions on a system or network. Adversaries often can access and navigate a network with unprivileged access, but they require elevated permissions to meet their goals. Typical methods include taking advantage of system weaknesses, misconfigurations, and vulnerabilities. This detects the creation or modification of role bindings that may be malicious. Role bindings and cluster role bindings allow users to assign roles to Kubernetes subjects (users, groups, or service accounts).

GCP probable hijacked account

A user's account has been disabled after Google detected suspicious activity suggesting it may have been compromised. A hijacked account can be used for other attacks, such as data collection and exfiltration.

GCP suspicious login blocked

Google Cloud detected and blocked a suspicious login to a user's account.

GCP suspicious login from less secure app

Less secure apps (LSAs) are non-Google applications that can access your Google account using just a username and password. They leave your account more exposed to hijacking attempts.

GCP suspicious programmatic login

Google Cloud has identified a suspicious programmatic login. Programmatic login can be used to carry out a brute force attack.

GKE Kubernetes Admission Webhook Modified

This detects the creation or modification of admission webhook configurations in Google Kubernetes Engine. Attackers leverage malicious admission controllers to inject sidecar containers, alter workload specs, or intercept secrets.

Google Cloud Service Account Key Creation Spike

This detects spikes in service account key creation, which may signal credential harvesting or preparation for unauthorized access. Service account keys offer long-term credentials that can authenticate as the service account. Several key creations by the same user in a short period may point to malicious activity or preparation for privilege escalation attacks.

Google Workspace MFA Enforcement Disabled

This detects when MFA enforcement is turned off in Google Workspace. Turning off MFA eliminates a critical security control and allows credential-based attacks against every user in the organization.