OpenAI ChatGPT Enterprise Codex Security Scan Configuration Changed
Description
Detects ChatGPT Enterprise Codex security-log events that create or update a repository scan configuration. Changing scan scope, lookback, or notification rules can weaken secrets scanning coverage or redirect findings.
Query · esql
from logs-openai_chatgpt_enterprise.codex_security_log-* metadata _id, _version, _index
| where
data_stream.dataset == "openai_chatgpt_enterprise.codex_security_log" and
event.action in ("scan_configuration_created", "scan_configuration_updated")
| keep
_id, _version, _index, @timestamp, event.action, user.id, user.email,
openai_chatgpt_enterprise.codex_security_log.client_id,
openai_chatgpt_enterprise.codex_security_log.workspace_id,
openai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_id,
openai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_fields.repo_url,
openai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_fields.scan_type,
openai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_fields.state,
openai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_fields.lookback_days,
data_stream.*
Investigation fields
Pivot points the source recommends for triage.
@timestampevent.actionuser.idopenai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_fields.repo_urlopenai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_fields.scan_typeopenai_chatgpt_enterprise.codex_security_log.event_details.scan_configuration_fields.state
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
- Security engineering teams legitimately onboard repositories and tune scan lookback windows.
Analyst notes
Investigating OpenAI ChatGPT Enterprise Codex Security Scan Configuration Changed
A Codex security scan configuration was created or updated. Changes to repository scope, lookback, or notification rules can weaken secrets-scanning coverage or redirect findings.
Escalate when the repository is unexpected, notification targets change, or the actor is not on the security engineering team. Close as a false positive for documented onboarding or tuning of approved repositories.
Possible investigation steps
- Identify the actor and the scan configuration fields on the alert (repository URL, scan type, state, lookback).
- Confirm repository ownership and whether the change matches an approved security-engineering request.
- Review related Codex security findings or follow-on activity after the configuration change.
- Compare with other admin or security-configuration changes by the same actor.
False positive analysis
- Security engineering teams legitimately onboard repositories and tune scan lookback windows during rollout.
Response and remediation
- Revert unauthorized scan configuration changes and review related findings.
- If coverage was reduced, restore the prior configuration and investigate why it was changed.