← Back to Explore
elastichighTTP
OpenAI ChatGPT Enterprise Repeated Assistant Refusals
Detects three or more ChatGPT Enterprise assistant messages for the same user whose text matches common policy-refusal phrases (cannot assist, cannot help, cannot fulfill, unable to assist, against my guidelines, and similar) within the lookback window. A refusal burst can indicate jailbreak probing, policy-bypass attempts, or automated unsafe prompting intended to evade model safety controls.
Detection Query
from logs-openai_chatgpt_enterprise.conversation_message-*
| where
data_stream.dataset == "openai_chatgpt_enterprise.conversation_message" and
openai_chatgpt_enterprise.conversation_message.message.author.type == "assistant" and
message is not null and
user.email is not null
| eval Esql.message_text = to_lower(message)
| where
Esql.message_text like "*i can't assist*" or
Esql.message_text like "*i can't help*" or
Esql.message_text like "*i cannot fulfill*" or
Esql.message_text like "*i cannot help*" or
Esql.message_text like "*i cannot provide*" or
Esql.message_text like "*i can't provide*" or
Esql.message_text like "*i will not provide*" or
Esql.message_text like "*i won't provide*" or
Esql.message_text like "*i cannot answer*" or
Esql.message_text like "*i can't answer*" or
Esql.message_text like "*unable to assist*" or
Esql.message_text like "*against my guidelines*"
| stats
Esql.event_count = count(*),
Esql.conversation_id_count_distinct = count_distinct(openai_chatgpt_enterprise.conversation_message.conversation.id),
Esql.message_values = values(message),
Esql.timestamp_first_seen = min(@timestamp),
Esql.timestamp_last_seen = max(@timestamp)
by
user.email,
organization.id
| where Esql.event_count >= 3
| keep
user.email,
organization.id,
Esql.event_count,
Esql.conversation_id_count_distinct,
Esql.message_values,
Esql.timestamp_first_seen,
Esql.timestamp_last_seen
Author
Elastic
Created
2026/10/08
Data Sources
OpenAI ChatGPT Enterprise
References
Tags
Domain: GenAIPlatform: OpenAIData Source: OpenAI ChatGPT EnterpriseService: OpenAI ChatGPT EnterpriseUse Case: Policy ViolationUse Case: Threat DetectionResources: Investigation GuideRule Type: ES|QLTactic: Defense EvasionMitre Atlas: AML.T0051Mitre Atlas: AML.T0054
Raw Content
[metadata]
creation_date = "2026/10/08"
integration = ["openai_chatgpt_enterprise"]
maturity = "production"
updated_date = "2026/10/09"
[rule]
author = ["Elastic"]
description = """
Detects three or more ChatGPT Enterprise assistant messages for the same user whose text matches common policy-refusal
phrases (cannot assist, cannot help, cannot fulfill, unable to assist, against my guidelines, and similar) within the
lookback window. A refusal burst can indicate jailbreak probing, policy-bypass attempts, or automated unsafe prompting
intended to evade model safety controls.
"""
false_positives = [
"""
Approved red-team or prompt-security evaluations that intentionally elicit refusals. Exclude those users or raise
the count threshold.
""",
"""
Long helpful answers that incidentally include phrases such as "I can't help with X, but I can help with Y." Read
the sampled messages before treating the alert as a hard refusal campaign.
""",
]
from = "now-60m"
interval = "10m"
language = "esql"
license = "Elastic License v2"
name = "OpenAI ChatGPT Enterprise Repeated Assistant Refusals"
note = """## Triage and analysis
### Investigating OpenAI ChatGPT Enterprise Repeated Assistant Refusals
One user received three or more assistant replies whose text matches common refusal phrasing in the lookback window.
That pattern can indicate jailbreak probing, attempts to elicit disallowed content, or scripted unsafe prompting.
Escalate when the sampled messages are clear hard refusals, nearby prompts look adversarial, or the same user also
triggers credential-exposure or unusual Codex MCP activity. Close as a false positive for approved security evaluations
or partial phrases inside otherwise helpful answers.
#### Possible investigation steps
- Review `Esql.message_values`, `Esql.event_count`, and `Esql.conversation_id_count_distinct` on the alert.
- Pull surrounding user messages in the same conversation IDs for jailbreak or malware-request themes.
- Correlate with credential-in-conversation, Codex MCP, share, and download activity from the same `user.email`.
- Confirm whether the account is used for approved prompt-security testing.
### False positive analysis
- Approved red-team or model-evaluation traffic that intentionally elicits refusals.
- Soft refusals embedded in longer helpful answers (for example, declining malware assistance while offering defensive
guidance).
### Response and remediation
- If probing is unauthorized, restrict the account, review recent conversations, and hunt for successful bypasses after
the refusal burst.
- Use confirmed jailbreak prompts to improve prompt-security controls and user awareness where appropriate.
"""
references = [
"https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise",
"https://platform.openai.com/docs/compliance",
]
risk_score = 73
rule_id = "1a2bb7a5-6172-4649-bb1e-bcd423cace52"
setup = """## Setup
This rule requires the OpenAI ChatGPT Enterprise integration to collect conversation message compliance logs into
Elasticsearch.
https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise
"""
severity = "high"
tags = [
"Domain: GenAI",
"Platform: OpenAI",
"Data Source: OpenAI ChatGPT Enterprise",
"Service: OpenAI ChatGPT Enterprise",
"Use Case: Policy Violation",
"Use Case: Threat Detection",
"Resources: Investigation Guide",
"Rule Type: ES|QL",
"Tactic: Defense Evasion",
"Mitre Atlas: AML.T0051",
"Mitre Atlas: AML.T0054",
]
timestamp_override = "event.ingested"
type = "esql"
query = '''
from logs-openai_chatgpt_enterprise.conversation_message-*
| where
data_stream.dataset == "openai_chatgpt_enterprise.conversation_message" and
openai_chatgpt_enterprise.conversation_message.message.author.type == "assistant" and
message is not null and
user.email is not null
| eval Esql.message_text = to_lower(message)
| where
Esql.message_text like "*i can't assist*" or
Esql.message_text like "*i can't help*" or
Esql.message_text like "*i cannot fulfill*" or
Esql.message_text like "*i cannot help*" or
Esql.message_text like "*i cannot provide*" or
Esql.message_text like "*i can't provide*" or
Esql.message_text like "*i will not provide*" or
Esql.message_text like "*i won't provide*" or
Esql.message_text like "*i cannot answer*" or
Esql.message_text like "*i can't answer*" or
Esql.message_text like "*unable to assist*" or
Esql.message_text like "*against my guidelines*"
| stats
Esql.event_count = count(*),
Esql.conversation_id_count_distinct = count_distinct(openai_chatgpt_enterprise.conversation_message.conversation.id),
Esql.message_values = values(message),
Esql.timestamp_first_seen = min(@timestamp),
Esql.timestamp_last_seen = max(@timestamp)
by
user.email,
organization.id
| where Esql.event_count >= 3
| keep
user.email,
organization.id,
Esql.event_count,
Esql.conversation_id_count_distinct,
Esql.message_values,
Esql.timestamp_first_seen,
Esql.timestamp_last_seen
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1562"
name = "Impair Defenses"
reference = "https://attack.mitre.org/techniques/T1562/"
[rule.threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"
[[rule.threat_mappings]]
framework = "MITRE ATLAS"
version = "2026.08"
[[rule.threat_mappings.threat]]
framework = "MITRE ATLAS"
[[rule.threat_mappings.threat.technique]]
id = "AML.T0051"
name = "LLM Prompt Injection"
reference = "https://atlas.mitre.org/techniques/AML.T0051/"
[rule.threat_mappings.threat.tactic]
id = "AML.TA0005"
name = "Execution"
reference = "https://atlas.mitre.org/tactics/AML.TA0005/"
[[rule.threat_mappings.threat]]
framework = "MITRE ATLAS"
[[rule.threat_mappings.threat.technique]]
id = "AML.T0054"
name = "LLM Jailbreak"
reference = "https://atlas.mitre.org/techniques/AML.T0054/"
[rule.threat_mappings.threat.tactic]
id = "AML.TA0007"
name = "Defense Evasion"
reference = "https://atlas.mitre.org/tactics/AML.TA0007/"
[rule.alert_suppression]
group_by = ["user.email", "organization.id"]
missing_fields_strategy = "suppress"
[rule.investigation_fields]
field_names = [
"user.email",
"organization.id",
"Esql.event_count",
"Esql.conversation_id_count_distinct",
"Esql.message_values",
"Esql.timestamp_first_seen",
"Esql.timestamp_last_seen",
]
[rule.alert_suppression.duration]
unit = "h"
value = 1