← Back to Explore
elasticmediumTTP
OpenAI ChatGPT Enterprise Custom Agent Trigger Changed
Detects ChatGPT Enterprise custom-agent events that create or update a trigger. Triggers can schedule or event-drive agent runs without interactive user presence, enabling persistence and automation abuse.
Detection Query
from logs-openai_chatgpt_enterprise.custom_agents_log-* metadata _id, _version, _index
| where
data_stream.dataset == "openai_chatgpt_enterprise.custom_agents_log" and
event.action in ("trigger_created", "trigger_updated")
| keep
_id, _version, _index, @timestamp, event.action, user.id, user.email,
gen_ai.agent.id,
openai_chatgpt_enterprise.custom_agents_log.client_id,
openai_chatgpt_enterprise.custom_agents_log.event_details.trigger_fields.required_actions,
data_stream.*
Author
Elastic
Created
2026/10/06
Data Sources
OpenAI ChatGPT Enterprise
References
Tags
Domain: GenAIPlatform: OpenAIData Source: OpenAI ChatGPT EnterpriseService: OpenAI ChatGPT EnterpriseUse Case: Threat DetectionResources: Investigation GuideRule Type: ES|QLTactic: PersistenceMitre Atlas: AML.T0081
Raw Content
[metadata]
creation_date = "2026/10/06"
integration = ["openai_chatgpt_enterprise"]
maturity = "production"
updated_date = "2026/10/06"
[rule]
author = ["Elastic"]
description = """
Detects ChatGPT Enterprise custom-agent events that create or update a trigger. Triggers can schedule or event-drive
agent runs without interactive user presence, enabling persistence and automation abuse.
"""
false_positives = [
"Operations teams create approved triggers for recurring agent workflows.",
]
from = "now-9m"
language = "esql"
license = "Elastic License v2"
name = "OpenAI ChatGPT Enterprise Custom Agent Trigger Changed"
note = """## Triage and analysis
### Investigating OpenAI ChatGPT Enterprise Custom Agent Trigger Changed
An agent trigger was created or updated. Triggers can schedule or event-drive agent runs without interactive user presence.
Escalate when the schedule or event scope is overly broad, required actions are sensitive, or the actor is unauthorized. Close as a false positive for approved recurring operational workflows.
#### Possible investigation steps
- Identify the actor, agent, and trigger configuration on the alert.
- Confirm schedule or event scope and the actions the trigger can invoke.
- Review recent agent runs associated with the trigger or agent.
- Correlate with agent publish or connector-link events from the same actor.
### False positive analysis
- Operations teams create approved triggers for recurring agent workflows.
### Response and remediation
- Delete unauthorized triggers and review recent agent runs for unexpected automation.
"""
references = [
"https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise",
"https://platform.openai.com/docs/compliance",
]
risk_score = 47
rule_id = "a801600e-6010-420f-92ba-c83c1904ebf9"
setup = """## Setup
This rule requires the OpenAI ChatGPT Enterprise integration to collect compliance logs into Elasticsearch.
https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise
"""
severity = "medium"
tags = [
"Domain: GenAI",
"Platform: OpenAI",
"Data Source: OpenAI ChatGPT Enterprise",
"Service: OpenAI ChatGPT Enterprise",
"Use Case: Threat Detection",
"Resources: Investigation Guide",
"Rule Type: ES|QL",
"Tactic: Persistence",
"Mitre Atlas: AML.T0081",
]
timestamp_override = "event.ingested"
type = "esql"
query = '''
from logs-openai_chatgpt_enterprise.custom_agents_log-* metadata _id, _version, _index
| where
data_stream.dataset == "openai_chatgpt_enterprise.custom_agents_log" and
event.action in ("trigger_created", "trigger_updated")
| keep
_id, _version, _index, @timestamp, event.action, user.id, user.email,
gen_ai.agent.id,
openai_chatgpt_enterprise.custom_agents_log.client_id,
openai_chatgpt_enterprise.custom_agents_log.event_details.trigger_fields.required_actions,
data_stream.*
'''
[[rule.threat]]
framework = "MITRE ATT&CK"
[[rule.threat.technique]]
id = "T1053"
name = "Scheduled Task/Job"
reference = "https://attack.mitre.org/techniques/T1053/"
[rule.threat.tactic]
id = "TA0003"
name = "Persistence"
reference = "https://attack.mitre.org/tactics/TA0003/"
[[rule.threat_mappings]]
framework = "MITRE ATLAS"
version = "2026.08"
[[rule.threat_mappings.threat]]
framework = "MITRE ATLAS"
[[rule.threat_mappings.threat.technique]]
id = "AML.T0081"
name = "Modify AI Agent Configuration"
reference = "https://atlas.mitre.org/techniques/AML.T0081/"
[rule.threat_mappings.threat.tactic]
id = "AML.TA0006"
name = "Persistence"
reference = "https://atlas.mitre.org/tactics/AML.TA0006/"
[rule.investigation_fields]
field_names = [
"@timestamp",
"event.action",
"user.id",
"gen_ai.agent.id",
"openai_chatgpt_enterprise.custom_agents_log.event_details.trigger_fields.required_actions",
]