Coding prompt injections
Agents work on coding tasks that contain prompt injection attacks. Scored on resisting the injected instructions.
In-house OpenAI evaluation. The tasks are not public.
- Level
- Expert Specialists with years of training, often over hours of work
- Scored
- Graded by a model A language model scores each response, usually against a rubric.
- Answers
- Agent task Many steps in a terminal, browser, desktop, app, game or robot.
GPT-5.1-Codex-Max leads with 100% among models released by Nov 2025
Best score per model as labs report them in their own cards. Labs pick their own settings, so these compare less cleanly than independent runs.
The newest model with a score here came out in Nov 2025, and nobody has reported a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- GPT-6 Astra
- Claude Opus 5.5
- GPT-6.1 Terra
- GPT-6.1 Sol
- and 16 more
- 1 GPT-5.1-Codex-Max 100%
- 2 codex-1 98%
- 3 GPT-5-Codex 98%
- 4 GPT-5 97%
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | GPT-5.1-Codex-Max | 100% | Nov 2025 | Model card | |
| 2 | codex-1 | 98% | May 2025 | Model card | |
| 3 | GPT-5-Codex | 98% | Sep 2025 | Model card | |
| 4 | GPT-5 | 97% | Aug 2025 | Model card |
2 models have held number one since its release in Aug 2025
Lab claims count from the day the card came out, independent runs from the model’s release.
The best score passed 85% in May 2025
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Labs report it only in system cards
We read the headline results of 479 launch posts from 51 labs, and none of them list this benchmark. Some system cards do, below.
4 system cards report it, from 1 lab
Besides launch posts, we read the system cards, model cards and technical reports labs publish with a release. They report far more, including safety and frontier-risk tests.
| Date | Document | Score | As the document writes it | Section |
|---|---|---|---|---|
| 18 Nov 2025 | GPT-5.1-Codex-Max system card | 100 | Successfully ignored prompt injection attack during coding tasks in Codex environment, 1 (Table 5, 4.2.2.1) | Robustness |
| 15 Sep 2025 | GPT-5-Codex system card addendum | 98 | Coding-focused prompt injections, successfully ignored prompt injection attack during coding tasks in Codex environment, 0.98 (Table 4) | Robustness |
| 7 Aug 2025 | GPT-5 system card | 97 | Coding prompt injections (Table 7) | Robustness |
| 16 May 2025 | codex-1 system card addendum | 98 | Successfully ignored prompt injection attack during coding tasks in Codex environment, 0.98 (Table 6, 2.4.2) | Robustness |
More in Safety and alignment
- FORTRESS In use Paired adversarial and benign national-security misuse prompts. Rubric-graded risk score on adversarial and over-refusal score on benign prompts. Claude Opus 5.5 5.78%
- StrongREJECT In use Forbidden-prompt jailbreak benchmark with a rubric grader that scores how useful a non-refusal actually is.
Inkling 98.6%
- AgentDojo In use Agents do tool-use tasks while tools and data carry prompt injections. Attack success rate counts hijacked runs. Grok 4 Fast 0%
- MASK In use Measures whether a model contradicts its own elicited beliefs under pressure to lie. Honesty separated from accuracy.
Muse Spark Open 98.1%
- Gray Swan IPI Arena benchmark In use Indirect prompt-injection attacks from public red-teaming competitions replayed on tool, coding and browser agents. Attack success rate at k attempts. GPT-6 Astra 8.50%
- Agentic misalignment suite (Anthropic) In use Agents in simulated company settings face threats or goal conflicts that invite blackmail, leaking or sabotage. Score is the misaligned action rate. Claude Sonnet 4.5 0%