First Time GCP Vertex AI Inference by Caller from Source ASN

Detects the first time in 14 days that a Vertex AI caller (user or service account) runs model inference (GenerateContent, StreamGenerateContent, Predict, or RawPredict) from a source autonomous system (ASN). Stolen Google Cloud credentials, including exported service account keys and OAuth tokens, are used for LLMjacking from attacker infrastructure, which shows up as the victim identity calling models from a hosting provider, VPN, or residential proxy network it has never used before.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2026/10/23"
  3integration = ["gcp_vertexai"]
  4maturity = "production"
  5updated_date = "2026/10/23"
  6
  7[rule]
  8author = ["Elastic"]
  9description = """
 10Detects the first time in 14 days that a Vertex AI caller (user or service account) runs model inference
 11(GenerateContent, StreamGenerateContent, Predict, or RawPredict) from a source autonomous system (ASN). Stolen Google
 12Cloud credentials, including exported service account keys and OAuth tokens, are used for LLMjacking from attacker
 13infrastructure, which shows up as the victim identity calling models from a hosting provider, VPN, or residential proxy
 14network it has never used before.
 15"""
 16false_positives = [
 17    """
 18    Users working from a new network such as travel, a new ISP, or a mobile hotspot. Confirm the location with the user.
 19    """,
 20    """
 21    Service accounts whose workloads move between cloud providers, regions, or CI runners on different networks. Exclude
 22    these service accounts or pin their workloads to known networks.
 23    """,
 24]
 25from = "now-60m"
 26index = ["logs-gcp_vertexai.auditlogs-*"]
 27interval = "10m"
 28language = "kuery"
 29license = "Elastic License v2"
 30name = "First Time GCP Vertex AI Inference by Caller from Source ASN"
 31note = """## Triage and analysis
 32
 33### Investigating First Time GCP Vertex AI Inference by Caller from Source ASN
 34
 35A Vertex AI caller (`client.user.email`) made a successful inference call from a source ASN (`source.as.number`) that
 36it has not used for inference in the last 14 days. For a stolen credential this is often the first visible sign of
 37abuse, because the attacker calls models from their own infrastructure.
 38
 39### Possible investigation steps
 40
 41- Review `source.as.organization.name`, `source.ip`, and `source.geo.country_name`. Hosting providers, VPN services,
 42  and residential proxy networks are more suspicious than a known corporate or home ISP.
 43- Determine whether `client.user.email` is a human user or a service account (`*.gserviceaccount.com`). A service
 44  account normally runs from a fixed set of networks, so a new ASN is a stronger signal.
 45- Compare `user_agent.original` with the caller's previous inference activity. A switch from the Google SDK or console
 46  to a generic HTTP client is a common LLMjacking pattern.
 47- Check `gcp.vertexai.audit.resource_name` for the model being called, and look for a jump in request volume from the
 48  new ASN using GCP Vertex AI High Request and Token Volume or the integration's metrics.
 49- Review GCP audit logs for service account key creation, key download, or IAM changes for the caller shortly before
 50  this event.
 51
 52### False positive analysis
 53
 54- Users on new networks. Confirm with the user before acting.
 55- Workloads that legitimately move between networks. Exclude these service accounts by email.
 56
 57### Response and remediation
 58
 59- If the activity is not authorized, disable or delete the service account key, revoke the user's sessions and OAuth
 60  tokens, and review IAM bindings that grant `aiplatform.endpoints.predict`.
 61- Review Vertex AI usage and billing for the project and set quotas or budgets to limit abuse.
 62"""
 63references = [
 64    "https://cloud.google.com/vertex-ai/docs/general/audit-logging",
 65    "https://www.elastic.co/docs/reference/integrations/gcp_vertexai",
 66]
 67risk_score = 21
 68rule_id = "73b8ad81-a14b-4deb-8700-7e64cf9045ea"
 69setup = """## Setup
 70
 71Requires GCP Vertex AI `auditlogs` with Data Access audit logs enabled for `aiplatform.googleapis.com`, and with
 72`client.user.email` and `source.as.number` populated by the integration.
 73"""
 74severity = "low"
 75tags = [
 76    "Domain: GenAI",
 77    "Domain: Cloud",
 78    "Data Source: GCP Vertex AI",
 79    "Data Source: GCP",
 80    "Data Source: Google Cloud Platform",
 81    "Platform: GCP",
 82    "Service: GCP Vertex AI",
 83    "Use Case: Threat Detection",
 84    "Tactic: Initial Access",
 85    "Threat: LLMjacking",
 86    "Threat: Unauthorized AI Usage",
 87    "Mitre Atlas: AML.T0012",
 88    "Resources: Investigation Guide",
 89    "Rule Type: New Terms",
 90]
 91timestamp_override = "event.ingested"
 92type = "new_terms"
 93
 94query = '''
 95data_stream.dataset:gcp_vertexai.auditlogs and event.action:(*PredictionService.GenerateContent* or *PredictionService.StreamGenerateContent* or *PredictionService.Predict* or *PredictionService.RawPredict*) and gcp.vertexai.audit.service_name:aiplatform.googleapis.com and client.user.email:* and source.as.number:* and gcp.vertexai.audit.status.code:(0 or not *)
 96'''
 97
 98
 99[[rule.threat]]
100framework = "MITRE ATT&CK"
101[[rule.threat.technique]]
102id = "T1078"
103name = "Valid Accounts"
104reference = "https://attack.mitre.org/techniques/T1078/"
105[[rule.threat.technique.subtechnique]]
106id = "T1078.004"
107name = "Cloud Accounts"
108reference = "https://attack.mitre.org/techniques/T1078/004/"
109
110
111
112[rule.threat.tactic]
113id = "TA0001"
114name = "Initial Access"
115reference = "https://attack.mitre.org/tactics/TA0001/"
116[[rule.threat_mappings]]
117framework = "MITRE ATLAS"
118version = "2026.09"
119[[rule.threat_mappings.threat]]
120framework = "MITRE ATLAS"
121[[rule.threat_mappings.threat.technique]]
122id = "AML.T0012"
123name = "Valid Accounts"
124reference = "https://atlas.mitre.org/techniques/AML.T0012/"
125
126
127[rule.threat_mappings.threat.tactic]
128id = "AML.TA0004"
129name = "Initial Access"
130reference = "https://atlas.mitre.org/tactics/AML.TA0004/"
131
132[rule.investigation_fields]
133field_names = [
134    "client.user.email",
135    "source.as.number",
136    "source.as.organization.name",
137    "source.ip",
138    "source.geo.country_name",
139    "gcp.vertexai.audit.resource_name",
140    "user_agent.original",
141    "event.action",
142]
143
144[rule.new_terms]
145field = "new_terms_fields"
146value = ["client.user.email", "source.as.number"]
147[[rule.new_terms.history_window_start]]
148field = "history_window_start"
149value = "now-14d"

Triage and analysis

Investigating First Time GCP Vertex AI Inference by Caller from Source ASN

A Vertex AI caller (client.user.email) made a successful inference call from a source ASN (source.as.number) that it has not used for inference in the last 14 days. For a stolen credential this is often the first visible sign of abuse, because the attacker calls models from their own infrastructure.

Possible investigation steps

  • Review source.as.organization.name, source.ip, and source.geo.country_name. Hosting providers, VPN services, and residential proxy networks are more suspicious than a known corporate or home ISP.
  • Determine whether client.user.email is a human user or a service account (*.gserviceaccount.com). A service account normally runs from a fixed set of networks, so a new ASN is a stronger signal.
  • Compare user_agent.original with the caller's previous inference activity. A switch from the Google SDK or console to a generic HTTP client is a common LLMjacking pattern.
  • Check gcp.vertexai.audit.resource_name for the model being called, and look for a jump in request volume from the new ASN using GCP Vertex AI High Request and Token Volume or the integration's metrics.
  • Review GCP audit logs for service account key creation, key download, or IAM changes for the caller shortly before this event.

False positive analysis

  • Users on new networks. Confirm with the user before acting.
  • Workloads that legitimately move between networks. Exclude these service accounts by email.

Response and remediation

  • If the activity is not authorized, disable or delete the service account key, revoke the user's sessions and OAuth tokens, and review IAM bindings that grant aiplatform.endpoints.predict.
  • Review Vertex AI usage and billing for the project and set quotas or budgets to limit abuse.

References

Related rules

to-top