GCP Vertex AI Safety Filters Set to BLOCK_NONE
Detects Vertex AI GenerateContent requests that set safety_settings.threshold to BLOCK_NONE. That threshold disables category blocking for the listed harm categories when clients explicitly send safetySettings. Attackers and careless apps use BLOCK_NONE to weaken built-in Gemini filters.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2026/10/02"
3integration = ["gcp_vertexai"]
4maturity = "production"
5min_stack_comments = "gcp_vertexai prompt_response_logs requires integration 1.4.0+ (Kibana ^9.2.0)."
6min_stack_version = "9.4.0"
7updated_date = "2026/11/03"
8
9[rule]
10author = ["Elastic"]
11description = """
12Detects Vertex AI GenerateContent requests that set safety_settings.threshold to BLOCK_NONE. That threshold disables
13category blocking for the listed harm categories when clients explicitly send safetySettings. Attackers and careless
14apps use BLOCK_NONE to weaken built-in Gemini filters.
15"""
16false_positives = [
17 """
18 Approved research projects that document BLOCK_NONE for evaluation. Prefer labeled service accounts and exclude
19 those principals.
20 """,
21]
22from = "now-60m"
23interval = "10m"
24language = "esql"
25license = "Elastic License v2"
26name = "GCP Vertex AI Safety Filters Set to BLOCK_NONE"
27note = """## Triage and analysis
28
29### Investigating GCP Vertex AI Safety Filters Set to BLOCK_NONE
30
31The GenerateContent request set `safety_settings.threshold` to `BLOCK_NONE` for one or more harm
32categories. Category blocking is disabled for those categories (the model may still refuse in text,
33but built-in filters will not stop generation for that category). Attackers and misconfigured apps
34use this to weaken Gemini safety controls.
35
36#### Possible investigation steps
37
38- Confirm which categories were set to BLOCK_NONE via
39 `full_request.safety_settings.category` and `threshold` on the alert.
40- Read the prompt text. Look for disallowed content that would normally be blocked.
41- Hunt the same `cloud.project.id` / model for subsequent HIGH/MEDIUM safety ratings or unusual
42 successful completions after filters were weakened.
43- Identify the caller via auditlogs GenerateContent (`source.ip`, `client.user.email`).
44- Check whether org policy or an approved wrapper SDK requires stricter defaults
45 (BLOCK_MEDIUM_AND_ABOVE or higher).
46
47### False positive analysis
48
49- Documented research or red-team projects that intentionally use BLOCK_NONE. Prefer labeled service
50 accounts and exclude those principals.
51
52### Response and remediation
53
54- Require stricter thresholds via org policy, admission control, or application defaults; revoke
55 non-compliant callers.
56- If abuse is confirmed, rotate credentials and review other config changes (including
57 SetPublisherModelConfig) by the same actor.
58"""
59references = [
60 "https://www.elastic.co/docs/reference/integrations/gcp_vertexai",
61 "https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/configure-safety-filters",
62]
63risk_score = 47
64rule_id = "08244b2a-6017-48f2-bfc5-ec4d2d0fe7c5"
65setup = """## Setup
66
67Requires prompt_response_logs with full_request.safety_settings.threshold. The field is only present when the client
68sends safetySettings on the GenerateContent request.
69"""
70severity = "medium"
71tags = [
72 "Domain: GenAI",
73 "Domain: Cloud",
74 "Data Source: GCP Vertex AI",
75 "Data Source: GCP",
76 "Data Source: Google Cloud Platform",
77 "Platform: GCP",
78 "Service: GCP Vertex AI",
79 "Use Case: Threat Detection",
80 "Tactic: Defense Evasion",
81 "Threat: Unauthorized AI Usage",
82 "Mitre Atlas: AML.T0015",
83 "Resources: Investigation Guide",
84 "Rule Type: ES|QL",
85]
86timestamp_override = "event.ingested"
87type = "esql"
88
89query = '''
90from logs-gcp_vertexai.prompt_response_logs-* metadata _id, _version, _index
91| where
92 data_stream.dataset == "gcp_vertexai.prompt_response_logs" and
93 MV_CONTAINS(gcp.vertexai.prompt_response_logs.full_request.safety_settings.threshold, "BLOCK_NONE")
94| keep
95 _id,
96 _version,
97 _index,
98 @timestamp,
99 cloud.project.id,
100 gcp.vertexai.prompt_response_logs.model,
101 gcp.vertexai.prompt_response_logs.api_method,
102 gcp.vertexai.prompt_response_logs.full_request.contents.parts.text,
103 gcp.vertexai.prompt_response_logs.full_request.safety_settings.category,
104 gcp.vertexai.prompt_response_logs.full_request.safety_settings.threshold,
105 gcp.vertexai.prompt_response_logs.full_response.candidates.finish_reason,
106 gcp.vertexai.prompt_response_logs.full_response.candidates.safety_ratings.category,
107 gcp.vertexai.prompt_response_logs.full_response.candidates.safety_ratings.probability
108'''
109
110
111[[rule.threat]]
112framework = "MITRE ATT&CK"
113[[rule.threat.technique]]
114id = "T1562"
115name = "Impair Defenses"
116reference = "https://attack.mitre.org/techniques/T1562/"
117
118
119[rule.threat.tactic]
120id = "TA0005"
121name = "Defense Evasion"
122reference = "https://attack.mitre.org/tactics/TA0005/"
123[[rule.threat_mappings]]
124framework = "MITRE ATLAS"
125version = "2026.08"
126[[rule.threat_mappings.threat]]
127framework = "MITRE ATLAS"
128[[rule.threat_mappings.threat.technique]]
129id = "AML.T0015"
130name = "Evade AI Model"
131reference = "https://atlas.mitre.org/techniques/AML.T0015/"
132
133
134[rule.threat_mappings.threat.tactic]
135id = "AML.TA0007"
136name = "Defense Evasion"
137reference = "https://atlas.mitre.org/tactics/AML.TA0007/"
138
139[rule.investigation_fields]
140field_names = [
141 "gcp.vertexai.prompt_response_logs.model",
142 "gcp.vertexai.prompt_response_logs.api_method",
143 "gcp.vertexai.prompt_response_logs.full_request.safety_settings.category",
144 "gcp.vertexai.prompt_response_logs.full_request.safety_settings.threshold",
145 "gcp.vertexai.prompt_response_logs.full_request.contents.parts.text",
146 "gcp.vertexai.prompt_response_logs.full_response.candidates.finish_reason",
147 "gcp.vertexai.prompt_response_logs.full_response.candidates.safety_ratings.category",
148 "gcp.vertexai.prompt_response_logs.full_response.candidates.safety_ratings.probability",
149]
Triage and analysis
Investigating GCP Vertex AI Safety Filters Set to BLOCK_NONE
The GenerateContent request set safety_settings.threshold to BLOCK_NONE for one or more harm
categories. Category blocking is disabled for those categories (the model may still refuse in text,
but built-in filters will not stop generation for that category). Attackers and misconfigured apps
use this to weaken Gemini safety controls.
Possible investigation steps
- Confirm which categories were set to BLOCK_NONE via
full_request.safety_settings.categoryandthresholdon the alert. - Read the prompt text. Look for disallowed content that would normally be blocked.
- Hunt the same
cloud.project.id/ model for subsequent HIGH/MEDIUM safety ratings or unusual successful completions after filters were weakened. - Identify the caller via auditlogs GenerateContent (
source.ip,client.user.email). - Check whether org policy or an approved wrapper SDK requires stricter defaults (BLOCK_MEDIUM_AND_ABOVE or higher).
False positive analysis
- Documented research or red-team projects that intentionally use BLOCK_NONE. Prefer labeled service accounts and exclude those principals.
Response and remediation
- Require stricter thresholds via org policy, admission control, or application defaults; revoke non-compliant callers.
- If abuse is confirmed, rotate credentials and review other config changes (including SetPublisherModelConfig) by the same actor.
References
Related rules
- GCP Vertex AI Publisher Model Config Modified
- GCP Vertex AI Elevated Safety Rating on Response
- GCP Vertex AI Repeated Assistant Refusals
- GCP Vertex AI Response Blocked by Safety Filters
- GCP Vertex AI High Request and Token Volume