OpenAI ChatGPT Enterprise Multiple Authentication Failures
Detects multiple failed ChatGPT Enterprise login attempts for the same user email within a short window. Password spraying or credential stuffing against enterprise accounts often precedes a successful compromise.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2026/10/06"
3integration = ["openai_chatgpt_enterprise"]
4maturity = "production"
5updated_date = "2026/10/06"
6
7[rule]
8author = ["Elastic"]
9description = """
10Detects multiple failed ChatGPT Enterprise login attempts for the same user email within a short window. Password
11spraying or credential stuffing against enterprise accounts often precedes a successful compromise.
12"""
13false_positives = [
14 "Users mistype passwords repeatedly or SSO misconfiguration can generate clusters of failed logins.",
15]
16from = "now-1h"
17interval = "15m"
18language = "esql"
19license = "Elastic License v2"
20name = "OpenAI ChatGPT Enterprise Multiple Authentication Failures"
21note = """## Triage and analysis
22
23### Investigating OpenAI ChatGPT Enterprise Multiple Authentication Failures
24
25One email produced a burst of failed ChatGPT Enterprise login attempts. That pattern can indicate password spraying, credential stuffing, or repeated guessing before a successful compromise.
26
27Escalate when many distinct source IPs are involved, failures precede a successful login from an unfamiliar IP or user agent, or privileged activity follows. Close as a false positive for repeated typos or SSO misconfiguration from a single client.
28
29#### Possible investigation steps
30
31- Review `Esql.event_count`, `Esql.source_ip_values`, and geo values on the alert.
32- Low IP diversity usually indicates one device or egress. High diversity suggests distributed automation.
33- Search for successful logins for the same email immediately after the failure burst.
34- Correlate with role changes, invites, or data-access events if a successful login follows.
35
36### False positive analysis
37
38- Users mistyping passwords or temporary SSO misconfiguration can generate short clusters of failures from one IP and user agent.
39
40### Response and remediation
41
42- If compromise is suspected, lock or reset the account, revoke sessions, and review subsequent successful authentication and audit activity.
43"""
44references = [
45 "https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise",
46 "https://platform.openai.com/docs/compliance",
47]
48risk_score = 47
49rule_id = "9330b47d-75df-4e55-85e9-409244c6f3b6"
50setup = """## Setup
51
52This rule requires the OpenAI ChatGPT Enterprise integration to collect compliance logs into Elasticsearch.
53
54https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise
55"""
56severity = "medium"
57tags = [
58 "Domain: GenAI",
59 "Platform: OpenAI",
60 "Data Source: OpenAI ChatGPT Enterprise",
61 "Service: OpenAI ChatGPT Enterprise",
62 "Use Case: Threat Detection",
63 "Resources: Investigation Guide",
64 "Rule Type: ES|QL",
65 "Domain: Identity",
66 "Use Case: Identity and Access Audit",
67 "Tactic: Credential Access",
68]
69timestamp_override = "event.ingested"
70type = "esql"
71
72query = '''
73from logs-openai_chatgpt_enterprise.auth_log-*
74| where
75 data_stream.dataset == "openai_chatgpt_enterprise.auth_log" and
76 event.action == "login_failed" and
77 user.email is not null
78| stats
79 Esql.event_count = count(*),
80 Esql.source_ip_values = values(source.ip),
81 Esql.source_geo_country_iso_code_values = values(source.geo.country_iso_code),
82 Esql.user_agent_original_values = values(user_agent.original),
83 Esql.timestamp_first_seen = min(@timestamp),
84 Esql.timestamp_last_seen = max(@timestamp)
85 by user.email
86| where Esql.event_count >= 10
87| keep user.email, Esql.*
88'''
89
90
91[[rule.threat]]
92framework = "MITRE ATT&CK"
93[[rule.threat.technique]]
94id = "T1110"
95name = "Brute Force"
96reference = "https://attack.mitre.org/techniques/T1110/"
97[rule.threat.tactic]
98id = "TA0006"
99name = "Credential Access"
100reference = "https://attack.mitre.org/tactics/TA0006/"
101
102[[rule.threat_mappings]]
103framework = "MITRE ATLAS"
104version = "2026.08"
105[[rule.threat_mappings.threat]]
106framework = "MITRE ATLAS"
107
108[rule.threat_mappings.threat.tactic]
109id = "AML.TA0013"
110name = "Credential Access"
111reference = "https://atlas.mitre.org/tactics/AML.TA0013/"
112
113[rule.alert_suppression]
114group_by = ["user.email"]
115missing_fields_strategy = "suppress"
116
117[rule.alert_suppression.duration]
118unit = "h"
119value = 1
120
121[rule.investigation_fields]
122field_names = [
123 "user.email",
124 "Esql.event_count",
125 "Esql.source_ip_values",
126 "Esql.source_geo_country_iso_code_values",
127 "Esql.timestamp_first_seen",
128 "Esql.timestamp_last_seen",
129]
Triage and analysis
Investigating OpenAI ChatGPT Enterprise Multiple Authentication Failures
One email produced a burst of failed ChatGPT Enterprise login attempts. That pattern can indicate password spraying, credential stuffing, or repeated guessing before a successful compromise.
Escalate when many distinct source IPs are involved, failures precede a successful login from an unfamiliar IP or user agent, or privileged activity follows. Close as a false positive for repeated typos or SSO misconfiguration from a single client.
Possible investigation steps
- Review
Esql.event_count,Esql.source_ip_values, and geo values on the alert. - Low IP diversity usually indicates one device or egress. High diversity suggests distributed automation.
- Search for successful logins for the same email immediately after the failure burst.
- Correlate with role changes, invites, or data-access events if a successful login follows.
False positive analysis
- Users mistyping passwords or temporary SSO misconfiguration can generate short clusters of failures from one IP and user agent.
Response and remediation
- If compromise is suspected, lock or reset the account, revoke sessions, and review subsequent successful authentication and audit activity.
References
Related rules
- OpenAI ChatGPT Enterprise User Activity From High Number of Countries
- OpenAI ChatGPT Enterprise Account Owner Role Assigned
- OpenAI ChatGPT Enterprise Domain Created
- OpenAI ChatGPT Enterprise Impossible Travel Login
- OpenAI ChatGPT Enterprise User Invite Sent