OpenAI ChatGPT Enterprise Google Drive Download Burst

Detects a ChatGPT Enterprise user downloading five or more distinct Google Drive files through the Drive connector within a one-hour window. Adversaries who abuse a linked Drive connector after session compromise often stage bulk file retrieval before sharing, forwarding, or other exfiltration.

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 a ChatGPT Enterprise user downloading five or more distinct Google Drive files through the Drive connector
 13within a one-hour window. Adversaries who abuse a linked Drive connector after session compromise often stage bulk file
 14retrieval before sharing, forwarding, or other exfiltration.
 15"""
 16false_positives = [
 17    """
 18    Users exporting or reviewing many Drive files through ChatGPT during approved research, eDiscovery, or migration
 19    work.
 20    """,
 21]
 22from = "now-2h"
 23interval = "15m"
 24language = "esql"
 25license = "Elastic License v2"
 26name = "OpenAI ChatGPT Enterprise Google Drive Download Burst"
 27note = """## Triage and analysis
 28
 29### Investigating OpenAI ChatGPT Enterprise Google Drive Download Burst
 30
 31One user retrieved five or more distinct Google Drive files through ChatGPT in an hour. That pattern can indicate bulk
 32collection via the Drive connector ahead of exfiltration.
 33
 34Escalate when downloads follow sensitive Drive searches, Gmail discovery or sends, or unusual authentication activity.
 35Close as a false positive for approved bulk export or research projects.
 36
 37#### Possible investigation steps
 38
 39- Review `Esql.download_count`, `Esql.download_url_values`, and the time bucket on the alert.
 40- Correlate with nearby Google Drive sensitive query bursts or Gmail connector activity from the same user.
 41- Confirm whether Drive connector downloads are approved for that user and volume.
 42- Check subsequent conversation shares or external forwarding of the retrieved content.
 43
 44### False positive analysis
 45
 46- Migration, eDiscovery, or research workflows may download many Drive files in a short window through an approved
 47  connector.
 48
 49### Response and remediation
 50
 51- Revoke Drive connector access if unauthorized and inventory downloaded files for data exposure.
 52- Hunt for follow-on shares, Gmail sends, or additional downloads from the same user in the surrounding window.
 53"""
 54references = [
 55    "https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise",
 56    "https://platform.openai.com/docs/compliance",
 57]
 58risk_score = 47
 59rule_id = "0930e461-a831-4510-a180-4f5e3861ed51"
 60setup = """## Setup
 61
 62This rule requires the OpenAI ChatGPT Enterprise integration to collect `app_log` events for Google Drive, including
 63request logs with flattened `openai_chatgpt_enterprise.app_log.input` fields `download_raw_file` and `url`.
 64
 65https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise
 66"""
 67severity = "medium"
 68tags = [
 69    "Domain: GenAI",
 70    "Platform: OpenAI",
 71    "Data Source: OpenAI ChatGPT Enterprise",
 72    "Service: OpenAI ChatGPT Enterprise",
 73    "Use Case: Threat Detection",
 74    "Resources: Investigation Guide",
 75    "Rule Type: ES|QL",
 76    "Tactic: Exfiltration",
 77    "Tactic: Collection",
 78    "Mitre Atlas: AML.T0053",
 79    "Mitre Atlas: AML.T0025",
 80]
 81timestamp_override = "event.ingested"
 82type = "esql"
 83
 84query = '''
 85from logs-openai_chatgpt_enterprise.app_log-*
 86| where
 87    data_stream.dataset == "openai_chatgpt_enterprise.app_log" and
 88    openai_chatgpt_enterprise.app_log.app_name == "Google Drive" and
 89    openai_chatgpt_enterprise.app_log.log_type == "request" and
 90    openai_chatgpt_enterprise.app_log.input is not null and
 91    user.email is not null
 92| eval
 93    Esql.download_raw_file = to_lower(field_extract(openai_chatgpt_enterprise.app_log.input, "download_raw_file")),
 94    Esql.download_url = field_extract(openai_chatgpt_enterprise.app_log.input, "url"),
 95    Esql.time_bucket = date_trunc(1 hour, @timestamp)
 96| where Esql.download_raw_file == "true"
 97| stats
 98    Esql.download_count = count_distinct(Esql.download_url),
 99    Esql.download_url_values = values(Esql.download_url),
100    Esql.timestamp_first_seen = min(@timestamp),
101    Esql.timestamp_last_seen = max(@timestamp)
102  by user.email, Esql.time_bucket
103| where Esql.download_count >= 5
104| keep
105    user.email,
106    Esql.time_bucket,
107    Esql.download_count,
108    Esql.download_url_values,
109    Esql.timestamp_first_seen,
110    Esql.timestamp_last_seen
111'''
112
113
114[[rule.threat]]
115framework = "MITRE ATT&CK"
116[[rule.threat.technique]]
117id = "T1567"
118name = "Exfiltration Over Web Service"
119reference = "https://attack.mitre.org/techniques/T1567/"
120
121
122[rule.threat.tactic]
123id = "TA0010"
124name = "Exfiltration"
125reference = "https://attack.mitre.org/tactics/TA0010/"
126[[rule.threat]]
127framework = "MITRE ATT&CK"
128[[rule.threat.technique]]
129id = "T1213"
130name = "Data from Information Repositories"
131reference = "https://attack.mitre.org/techniques/T1213/"
132
133
134[rule.threat.tactic]
135id = "TA0009"
136name = "Collection"
137reference = "https://attack.mitre.org/tactics/TA0009/"
138[[rule.threat_mappings]]
139framework = "MITRE ATLAS"
140version = "2026.08"
141[[rule.threat_mappings.threat]]
142framework = "MITRE ATLAS"
143[[rule.threat_mappings.threat.technique]]
144id = "AML.T0053"
145name = "AI Agent Tool Invocation"
146reference = "https://atlas.mitre.org/techniques/AML.T0053/"
147
148
149[rule.threat_mappings.threat.tactic]
150id = "AML.TA0005"
151name = "Execution"
152reference = "https://atlas.mitre.org/tactics/AML.TA0005/"
153[[rule.threat_mappings.threat]]
154framework = "MITRE ATLAS"
155[[rule.threat_mappings.threat.technique]]
156id = "AML.T0025"
157name = "Exfiltration via Cyber Means"
158reference = "https://atlas.mitre.org/techniques/AML.T0025/"
159
160
161[rule.threat_mappings.threat.tactic]
162id = "AML.TA0010"
163name = "Exfiltration"
164reference = "https://atlas.mitre.org/tactics/AML.TA0010/"
165
166[rule.alert_suppression]
167group_by = ["user.email", "Esql.time_bucket"]
168missing_fields_strategy = "suppress"
169
170[rule.investigation_fields]
171field_names = [
172    "user.email",
173    "Esql.time_bucket",
174    "Esql.download_count",
175    "Esql.download_url_values",
176    "Esql.timestamp_first_seen",
177    "Esql.timestamp_last_seen",
178]
179
180[rule.alert_suppression.duration]
181unit = "h"
182value = 1

Triage and analysis

Investigating OpenAI ChatGPT Enterprise Google Drive Download Burst

One user retrieved five or more distinct Google Drive files through ChatGPT in an hour. That pattern can indicate bulk collection via the Drive connector ahead of exfiltration.

Escalate when downloads follow sensitive Drive searches, Gmail discovery or sends, or unusual authentication activity. Close as a false positive for approved bulk export or research projects.

Possible investigation steps

  • Review Esql.download_count, Esql.download_url_values, and the time bucket on the alert.
  • Correlate with nearby Google Drive sensitive query bursts or Gmail connector activity from the same user.
  • Confirm whether Drive connector downloads are approved for that user and volume.
  • Check subsequent conversation shares or external forwarding of the retrieved content.

False positive analysis

  • Migration, eDiscovery, or research workflows may download many Drive files in a short window through an approved connector.

Response and remediation

  • Revoke Drive connector access if unauthorized and inventory downloaded files for data exposure.
  • Hunt for follow-on shares, Gmail sends, or additional downloads from the same user in the surrounding window.

References

Related rules

to-top