GCP Vertex AI High GenerateContent Volume From Single IP

Last updated 2 months ago on 2026-10-02
Created 2 months ago on 2026-10-02

About

Detects a single source IP making a high number of Vertex AI GenerateContent (or StreamGenerateContent) audit calls against the same model resource in the lookback window. That pattern fits model extraction, automated scraping, or a compromised caller burning prediction quota.
Tags
Domain: GenAIDomain: CloudData Source: GCP Vertex AIData Source: GCPData Source: Google Cloud PlatformPlatform: GCPService: GCP Vertex AIUse Case: Model TheftUse Case: Threat DetectionTactic: CollectionThreat: LLMjackingThreat: Unauthorized AI UsageMitre Atlas: AML.T0024Mitre Atlas: AML.T0024.002Mitre Atlas: AML.T0029Rule Type: ES|QLLanguage: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Collection (TA0009)(external, opens in a new tab or window)

False Positive Examples
Approved batch evaluation clients or shared NAT egress. Raise the threshold or exclude known source IP prefixes.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

gcp_vertexai(external, opens in a new tab or window)

Query
text code block:
from logs-gcp_vertexai.auditlogs-* | where data_stream.dataset == "gcp_vertexai.auditlogs" and source.ip is not null and ( event.action like "*PredictionService.GenerateContent*" or event.action like "*PredictionService.StreamGenerateContent*" ) and (gcp.vertexai.audit.status.code is null or gcp.vertexai.audit.status.code == 0) | stats Esql.event_count = count(*), Esql.timestamp_first_seen = min(@timestamp), Esql.timestamp_last_seen = max(@timestamp), Esql.event_action_values = values(event.action) by source.ip, gcp.vertexai.audit.resource_name, cloud.project.id | where Esql.event_count >= 100 | keep source.ip, gcp.vertexai.audit.resource_name, cloud.project.id, Esql.event_count, Esql.timestamp_first_seen, Esql.timestamp_last_seen, Esql.event_action_values

Install detection rules in Elastic Security

Detect GCP Vertex AI High GenerateContent Volume From Single IP in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).