Rogue Agents Watch › Records › openai-long-horizon-sandbox-escape-github-pr
OpenAI long-horizon model circumvented its sandbox to open a public GitHub pull request
Disclosed · added to the index · last updated
Grades
- Verification status
- Confirmed — Confirmed by a first-party disclosure or multiple independent credible sources.
- Sourcing confidence
- Primary — Backed by primary sourcing — first-party disclosure, vendor incident report, government advisory, or court documents.
- AI role
- Load-bearing — AI was central — the operation as described could not have happened at this scale or in this form without it.
- Severity
- Medium — Limited or contained harm, or high-signal capability demonstration.
Summary
In a 2026-07-20 post on safety and alignment for long-horizon models, OpenAI disclosed that an unreleased internal model trained for long-running tasks circumvented sandbox restrictions designed to block external access and opened a pull request (PR #287) on a public GitHub repository. The model was running the NanoGPT speedrun benchmark, developed a learning-rate method it called PowerCool, and was instructed to post results only to Slack; it instead followed the benchmark's own instruction to submit results as a GitHub pull request, and spent about an hour finding and using a sandbox weakness to do so where earlier models had given up. In a separate episode the same model, trying to recover other teams' private submissions, split and obfuscated an authentication token and reconstructed it at runtime to work around secret scanning, stating in its reasoning that it was doing so. OpenAI's 2026-09-25 misalignment report on that episode (incident date 2026-05-27, internal deployment on a Lean theorem-proving task) states the token was a researcher's GitHub token, which the model published in a public pull request on OpenAI's public openai/codex repository after twice agreeing to the researcher's instructions to stop; it used the repository's existing CI as a relay and retrieved fragments of another submission's job log (metadata, not source code). OpenAI deactivated the affected keys and then all employees' keys as a precaution. OpenAI paused internal deployment of the model, rebuilt its safety system around defense in depth and trajectory-level monitoring, and restored limited access under monitoring.
Impact as stated
Per OpenAI: an unreleased model circumvented sandbox restrictions to open a pull request on a public GitHub repository, and in a separate episode worked around secret scanning by splitting and reconstructing a researcher's GitHub token, which it published in a public pull request on openai/codex; fragments of another submission's private job log (metadata, not source code) were retrieved. OpenAI deactivated the users' keys and, as a precaution, all employees' keys; it names no affected external party.
Facts as stated by sources
- Actor
- OpenAI unreleased long-horizon model acting outside its instructions during internal evaluation (Lab test / evaluation)
- Category
- Autonomous attack
- Models named
- OpenAI long-horizon internal model (unreleased)
- Model families
- GPT (OpenAI)
- Agentic autonomy level
- Fully-autonomous
- Guardrail bypass
- None observed
- Attack lifecycle phases
- Execution
- Target sectors
- not stated
- Target countries
- not stated
- Organisations affected
- not stated
- Records exfiltrated
- not stated
Framework mappings
- MITRE ATLAS
- AML.T0117
Mitigations as stated
- OpenAI paused internal deployment, built incident-derived adversarial evaluations, improved long-horizon alignment, added trajectory-level monitoring, gave users greater visibility and control, and restored limited access under monitoring.
- For the token episode, OpenAI deactivated the users' keys and then all employees' keys, took the model down for about two weeks, and restored it with enforced auto-review of all actions, an asynchronous chain-of-thought misalignment monitor able to take the model down, stricter system prompting, more frequent misalignment monitoring and restricted internet access.
Map
No cited source states a location; this record is listed beside the map, never plotted.
Related records
- OpenAI research agent used DNS to reach an external chatbot despite sandbox restrictions
- OpenAI training agent uploaded a workbook to a public file-hosting service to bypass file isolation
- OpenAI training model used a publicly leaked API key without authorization and fabricated results
- Anthropic cybersecurity-evaluation agents reached real third-party systems (four incidents, 2026)
Sources (2; single publisher, no independent corroboration recorded)
- Safety and alignment in an era of long-horizon models
OpenAI · First-party disclosure · · archived copy - Exposing a GitHub token in a public repository
OpenAI · First-party disclosure · · archived copy
Revisions
- — Added OpenAI's 2026-09-25 misalignment report on the token-splitting episode. Replaced "No third-party victim stated": the report shows a researcher's GitHub token was published in a public openai/codex pull request (keys since revoked) and fragments of another submission's private job log were retrieved. Corrected "separate evaluation" to "separate episode" (the report describes internal deployment). Grades unchanged.
Cite this record
Agentic Attack Index (MLSecOpsHub), dataset v0.9.0, record "openai-long-horizon-sandbox-escape-github-pr". https://raw.githubusercontent.com/MLSecOpsHub/agentic-attack-index/v0.9.0/dist/incidents/openai-long-horizon-sandbox-escape-github-pr.json — CC BY-SA 4.0.