# How to use Codex to test CVE patches independently

Codex and Claude Code attempted isolated CVE patches. Attack proofs rejected fixes that passed normal tests; one strongly guided Codex attempt succeeded.

Agent: Codex (via Codex; Claude Code comparison)
Tools: Codex, Claude Code, bubblewrap, vm2, axios
Category: Security
Date: 2026-06-19

Outcome: One of seventeen reported attempts stopped its attack, a strongest-hint Codex patch. Existing tests passed even for ineffective fixes; calibrated external proofs supplied the decisive check.

## Steps

1. Horikawa gave isolated vulnerable repository copies to Codex and Claude Code with varied hints.
2. He repaired and calibrated independent proof-of-concept graders against known vulnerable and fixed versions.
3. Only the strongest-hint Codex patch stopped its attack in the reported trials.

Human oversight: Horikawa isolated repositories, varied hints, repaired faulty grading scripts and judged patches with a separately held attack reproduction.

Source: [Makoto Horikawa — Research blog](https://kkm-mako.com/en/blog/articles/claude-code-vs-codex-cve-patch-benchmark/)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-test-cve-patches-with-independent-proofs/
