P2Patch: Exploit-Guided Vulnerability Repair
TL;DR - P2Patch is an adversarial, multi-agent vulnerability-repair system that repeatedly attacks generated patches and turns each new exploit into a permanent repair requirement. This improves robustness beyond one-shot patch validation, which can overfit to the original exploit or test evidence.
- Uses separate exploitation and patching agents, with construction-time proofs of vulnerability isolated from held-out evaluation oracles.
- Found a distinct, confirmed same-vulnerability exploit in 41% of runs after the original exploit had already been blocked.
- Improved held-out fix-closed coverage over single-pass Claude Code repair from 78.1% to 84.7%.
- Raised beyond-upstream coverage from 42.1% to 62.5% across 101 C/C++ and Java CVE subjects.