OpenAI ChatGPT Enterprise Gmail Message Sent via Connector
Detects ChatGPT Enterprise Gmail connector send_email responses. Adversaries who abuse a linked Gmail connector after
session compromise can exfiltrate data or perform lateral phishing by sending mail on behalf of the user. Draft-only
activity (create_draft) is excluded.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2026/10/09"
3integration = ["openai_chatgpt_enterprise"]
4maturity = "production"
5min_stack_comments = "field_extract (flattened field support) is available starting in 9.5.0, as a Technical Preview function; GA in 9.6.0."
6min_stack_version = "9.5.0"
7updated_date = "2026/10/09"
8
9[rule]
10author = ["Elastic"]
11description = """
12Detects ChatGPT Enterprise Gmail connector `send_email` responses. Adversaries who abuse a linked Gmail connector after
13session compromise can exfiltrate data or perform lateral phishing by sending mail on behalf of the user. Draft-only
14activity (`create_draft`) is excluded.
15"""
16false_positives = ["Users legitimately asking ChatGPT to send mail through an approved Gmail connector."]
17from = "now-9m"
18language = "esql"
19license = "Elastic License v2"
20name = "OpenAI ChatGPT Enterprise Gmail Message Sent via Connector"
21note = """## Triage and analysis
22
23### Investigating OpenAI ChatGPT Enterprise Gmail Message Sent via Connector
24
25ChatGPT completed a Gmail connector `send_email` call. That can be legitimate assistance or abuse for exfiltration or
26phishing after connector or session compromise.
27
28Escalate when the recipient or content on the paired request is unexpected, the message looks like phishing or data
29staging, or nearby activity shows sensitive Gmail or Drive discovery. Close as a false positive for approved
30send-on-behalf workflows.
31
32#### Possible investigation steps
33
34- Review `user.email`, `Esql.gmail_action`, and `openai_chatgpt_enterprise.app_log.output` (sent message and thread IDs).
35- Correlate with the preceding Gmail `request` from the same user (subject, body, and `to` are on the request event).
36- Correlate with nearby Gmail discovery searches, Google Drive downloads, or unusual authentication activity.
37- Confirm whether Gmail connector use and outbound send are approved for that user.
38
39### False positive analysis
40
41- Users who send calendar notes, status updates, or other approved outbound mail through the Gmail connector will match.
42
43### Response and remediation
44
45- Revoke Gmail connector access if unauthorized, review sent mail, and treat exposed content per your data-incident
46 process.
47- Hunt for additional sends, sensitive Gmail searches, or Drive downloads from the same user in the surrounding window.
48"""
49references = [
50 "https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise",
51 "https://platform.openai.com/docs/compliance",
52]
53risk_score = 47
54rule_id = "7184e35d-5605-4283-badf-435e1974e488"
55setup = """## Setup
56
57This rule requires the OpenAI ChatGPT Enterprise integration to collect Gmail `app_log` response events where
58`openai_chatgpt_enterprise.app_log.output` includes `response.action_name` (for example `send_email`).
59
60https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise
61"""
62severity = "medium"
63tags = [
64 "Domain: GenAI",
65 "Platform: OpenAI",
66 "Data Source: OpenAI ChatGPT Enterprise",
67 "Service: OpenAI ChatGPT Enterprise",
68 "Use Case: Threat Detection",
69 "Resources: Investigation Guide",
70 "Rule Type: ES|QL",
71 "Tactic: Exfiltration",
72 "Tactic: Lateral Movement",
73 "Mitre Atlas: AML.T0053",
74 "Mitre Atlas: AML.T0025",
75]
76timestamp_override = "event.ingested"
77type = "esql"
78
79query = '''
80from logs-openai_chatgpt_enterprise.app_log-* metadata _id, _version, _index
81| where
82 data_stream.dataset == "openai_chatgpt_enterprise.app_log" and
83 openai_chatgpt_enterprise.app_log.app_name == "Gmail" and
84 openai_chatgpt_enterprise.app_log.app_type == "SERVICE" and
85 openai_chatgpt_enterprise.app_log.output is not null
86| eval Esql.gmail_action = field_extract(openai_chatgpt_enterprise.app_log.output, "response.action_name")
87| where Esql.gmail_action == "send_email"
88| keep
89 _id, _version, _index, @timestamp, user.id, user.email,
90 Esql.gmail_action,
91 openai_chatgpt_enterprise.app_log.app_name,
92 openai_chatgpt_enterprise.app_log.app_type,
93 openai_chatgpt_enterprise.app_log.log_type,
94 openai_chatgpt_enterprise.app_log.output,
95 data_stream.*
96'''
97
98
99[[rule.threat]]
100framework = "MITRE ATT&CK"
101[[rule.threat.technique]]
102id = "T1567"
103name = "Exfiltration Over Web Service"
104reference = "https://attack.mitre.org/techniques/T1567/"
105
106
107[rule.threat.tactic]
108id = "TA0010"
109name = "Exfiltration"
110reference = "https://attack.mitre.org/tactics/TA0010/"
111[[rule.threat]]
112framework = "MITRE ATT&CK"
113[[rule.threat.technique]]
114id = "T1534"
115name = "Internal Spearphishing"
116reference = "https://attack.mitre.org/techniques/T1534/"
117
118
119[rule.threat.tactic]
120id = "TA0008"
121name = "Lateral Movement"
122reference = "https://attack.mitre.org/tactics/TA0008/"
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.T0053"
130name = "AI Agent Tool Invocation"
131reference = "https://atlas.mitre.org/techniques/AML.T0053/"
132
133
134[rule.threat_mappings.threat.tactic]
135id = "AML.TA0005"
136name = "Execution"
137reference = "https://atlas.mitre.org/tactics/AML.TA0005/"
138[[rule.threat_mappings.threat]]
139framework = "MITRE ATLAS"
140[[rule.threat_mappings.threat.technique]]
141id = "AML.T0025"
142name = "Exfiltration via Cyber Means"
143reference = "https://atlas.mitre.org/techniques/AML.T0025/"
144
145
146[rule.threat_mappings.threat.tactic]
147id = "AML.TA0010"
148name = "Exfiltration"
149reference = "https://atlas.mitre.org/tactics/AML.TA0010/"
150
151[rule.investigation_fields]
152field_names = [
153 "@timestamp",
154 "user.email",
155 "user.id",
156 "Esql.gmail_action",
157 "openai_chatgpt_enterprise.app_log.input",
158 "openai_chatgpt_enterprise.app_log.app_name",
159]
Triage and analysis
Investigating OpenAI ChatGPT Enterprise Gmail Message Sent via Connector
ChatGPT completed a Gmail connector send_email call. That can be legitimate assistance or abuse for exfiltration or
phishing after connector or session compromise.
Escalate when the recipient or content on the paired request is unexpected, the message looks like phishing or data staging, or nearby activity shows sensitive Gmail or Drive discovery. Close as a false positive for approved send-on-behalf workflows.
Possible investigation steps
- Review
user.email,Esql.gmail_action, andopenai_chatgpt_enterprise.app_log.output(sent message and thread IDs). - Correlate with the preceding Gmail
requestfrom the same user (subject, body, andtoare on the request event). - Correlate with nearby Gmail discovery searches, Google Drive downloads, or unusual authentication activity.
- Confirm whether Gmail connector use and outbound send are approved for that user.
False positive analysis
- Users who send calendar notes, status updates, or other approved outbound mail through the Gmail connector will match.
Response and remediation
- Revoke Gmail connector access if unauthorized, review sent mail, and treat exposed content per your data-incident process.
- Hunt for additional sends, sensitive Gmail searches, or Drive downloads from the same user in the surrounding window.
References
Related rules
- OpenAI ChatGPT Enterprise Google Drive Download Burst
- OpenAI ChatGPT Enterprise Conversation Shared
- OpenAI ChatGPT Enterprise High File Download Activity
- OpenAI ChatGPT Enterprise Resources Sharing Updated
- OpenAI ChatGPT Enterprise Google Drive Sensitive Query Burst