GCP Vertex AI High Request and Token Volume

Last updated 18 days ago on 2026-11-03
Created 2 months ago on 2026-10-02

About

Detects a high number of Vertex AI prompt-response log rows and high total token usage for one model in the lookback window. Totals use provider usage_metadata.total_token_count (includes thinking tokens when billed). High request and token volume can indicate model extraction, quota abuse, or a compromised caller. Tune thresholds for your baseline.
Tags
Domain: GenAIDomain: CloudData Source: GCP Vertex AIData Source: GCPData Source: Google Cloud PlatformPlatform: GCPService: GCP Vertex AIUse Case: Potential OverloadUse Case: Threat DetectionTactic: ImpactThreat: LLMjackingThreat: Unauthorized AI UsageMitre Atlas: AML.T0029Mitre Atlas: AML.T0034Rule Type: ES|QLLanguage: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Impact (TA0040)(external, opens in a new tab or window)

False Positive Examples
Approved batch evaluation or high-traffic applications. Raise thresholds above the normal peak per model.
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.prompt_response_logs-* | where data_stream.dataset == "gcp_vertexai.prompt_response_logs" and gcp.vertexai.prompt_response_logs.full_response.usage_metadata.prompt_token_count > 0 | stats Esql.event_count = count(*), Esql.prompt_tokens_sum = sum(gcp.vertexai.prompt_response_logs.full_response.usage_metadata.prompt_token_count), Esql.candidates_tokens_sum = sum(gcp.vertexai.prompt_response_logs.full_response.usage_metadata.candidates_token_count), Esql.total_tokens_sum = sum(gcp.vertexai.prompt_response_logs.full_response.usage_metadata.total_token_count), Esql.timestamp_first_seen = min(@timestamp), Esql.timestamp_last_seen = max(@timestamp) by gcp.vertexai.prompt_response_logs.model, cloud.project.id | where Esql.event_count >= 100 and Esql.total_tokens_sum >= 10000 | keep gcp.vertexai.prompt_response_logs.model, cloud.project.id, Esql.event_count, Esql.prompt_tokens_sum, Esql.candidates_tokens_sum, Esql.total_tokens_sum, Esql.timestamp_first_seen, Esql.timestamp_last_seen

Install detection rules in Elastic Security

Detect GCP Vertex AI High Request and Token Volume 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).