OpenAI ChatGPT Enterprise Workspace Log File Deleted
Description
Detects ChatGPT Enterprise audit events where a workspace compliance log file is deleted (delete_workspace_log_file).
Adversaries with privileged access may delete exported audit or conversation log archives to remove evidence from
compliance workflows and hinder investigation.
Query · esql
from logs-openai_chatgpt_enterprise.audit_log-* metadata _id, _version, _index
| where
data_stream.dataset == "openai_chatgpt_enterprise.audit_log" and
event.action == "delete_workspace_log_file" and
openai_chatgpt_enterprise.audit_log.actor.type == "ACCOUNT_USER"
| keep
_id, _version, _index, @timestamp, event.action, user.id, user.email, source.ip,
openai_chatgpt_enterprise.audit_log.action_data.event_type,
openai_chatgpt_enterprise.audit_log.action_data.log_file_id,
openai_chatgpt_enterprise.audit_log.action_privilege,
openai_chatgpt_enterprise.audit_log.actor.type, data_stream.*
Investigation fields
Pivot points the source recommends for triage.
@timestampevent.actionuser.iduser.emailopenai_chatgpt_enterprise.audit_log.action_data.event_typeopenai_chatgpt_enterprise.audit_log.action_data.log_file_idopenai_chatgpt_enterprise.audit_log.action_privilegeopenai_chatgpt_enterprise.audit_log.actor.typesource.ip
Implementation guide
This rule requires the OpenAI ChatGPT Enterprise integration to collect compliance logs into Elasticsearch.
https://www.elastic.co/docs/reference/integrations/openai_chatgpt_enterprise
Known false positives
- Administrators deleting expired workspace log archives under an approved retention policy.
Analyst notes
Investigating OpenAI ChatGPT Enterprise Workspace Log File Deleted
A workspace compliance log archive was deleted. That can remove investigator access to authentication, conversation, or Codex exports and may be used to cover tracks after misuse.
Escalate when the actor is unexpected, deletions follow downloads or privileged changes, or there is no retention-policy ticket. Close as a false positive for documented retention cleanup by approved admins.
Possible investigation steps
- Identify the actor (
user.id,user.email) and source IP. - Note
openai_chatgpt_enterprise.audit_log.action_data.log_file_idand related event type fields. - Correlate with nearby
list_workspace_log_filesordownload_workspace_log_fileactivity from the same actor. - Confirm whether the deletion matches an approved retention or purge job.
- Review other privileged audit activity by the same actor, such as role changes, invites, or feature toggles.
False positive analysis
- Retention policies may delete aged workspace log archives on a schedule using approved admin accounts.
Response and remediation
- Preserve remaining exports, review the actor's recent privileged activity, and tighten who can delete workspace logs.
- If the deletion appears unauthorized, inventory other exports or deletions by the same actor and revoke sessions or admin access as appropriate.