Mastermind: Strategy-grounded Learning for Repository-Scale Vulnerability Reproduction
Not on the map. Why?
Abstract (arXiv)
Repository-level vulnerability reproduction is a demanding software engineering (SE) task: an agent must inspect a codebase, infer the input grammar that reaches a vulnerable path, construct a proof-of-conceptv(PoC), and verify that the crash disappears on the patched build. Recent LLM agents can often execute these steps when the approach is correct, yet they still fail by choosing the wrong strategy. This paper argues that strategy, rather than the full action trajectory, is the right learning unit for such SE agents: it is compact enough to optimize, concrete enough to guide execution, and stable enough to store and reuse across attempts. We present Mastermind, a dual-loop framework that separates transferable strategy learning from task-specific experience. A trainable planner learns reusable vulnerability-reproduction strategies through SFT and milestone-based GRPO, while an experience loop maintains task-local strategy records that guide subsequent attempts. The planner is trained independently of the executor, allowing strategy learning to improve multiple frozen executors without modifying their action-generation capability. We evaluate Mastermind on CyberGym using 260 training tasks and 200 held-out evaluation tasks. With GPT-5.5 as the frozen executor, Mastermind achieves an 84.5% pass rate, outperforming open-book PoC context (60.0%), Best-of-8 sampling (63.0%), and iterative improvement (77.0%). The same planner also improves GPT-5.4 mini and GLM~5.1 from 45.0% and 58.5% to 60.0% and 71.0%. These results demonstrate that learning high-level strategies is an effective and transferable mechanism for improving repository-scale SE agents.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 36 of its 47 references that are in the map. First posted on arXiv 2 Jul 2026.
Builds on
36 of 47 references.
References · 36
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 551
- 2015Illuminating search spaces by mapping elitescited by 406
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2025Plan-and-Act: Improving Planning of Agents for Long-Horizon Taskscited by 190
- 2024Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Modelscited by 156
- 2025Beyond Ten Turns: Unlocking Long-Horizon Agentic Search with Large-Scale Asynchronous RLcited by 144
24 more
- 2024NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Securitycited by 90
- 2025Tree Search for LLM Agent Reinforcement Learningcited by 73
- 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 71
- 2020Quality-Diversity Optimization: a novel branch of stochastic optimizationcited by 59
- 2024PentestAgent: Incorporating LLM Agents to Automated Penetration Testingcited by 46
- 2024Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Aheadcited by 41
- 2025MPO: Boosting LLM Agents with Meta Plan Optimizationcited by 36
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
- 2025SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?cited by 33
- 2025Towards Robust and Secure Embodied AI: A Survey on Vulnerabilities and Attackscited by 32
- 2025Turn-PPO: Turn-Level Advantage Estimation with PPO for Improved Multi-Turn RL in Agentic LLMscited by 28
- 2025Cyber-Zero: Training Cybersecurity Agents without Runtimecited by 22
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimizationcited by 14
- 2025PilotRL: Training Language Model Agents via Global Planning-Guided Progressive Reinforcement Learningcited by 11
- 2025CodeArena: A Collective Evaluation Platform for LLM Code Generationcited by 10
- 2024Measuring the Influence of Incorrect Code on Test Generationcited by 9
- 2025Benchmarking LLMs for Unit Test Generation from Real-World Functionscited by 8
- 2026ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Softwarecited by 8
- 2026Expanding LLM Agent Boundaries with Strategy-Guided Explorationcited by 7
- 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Modelscited by 5
- 2026Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Modelcited by 4
- 2025Cybersecurity AI: The World's Top AI Agent for Security Capture-the-Flag (CTF)cited by 2
- 2025CoDA: A Context-Decoupled Hierarchical Agent with Reinforcement Learningcited by 2
- 2026Program Analysis Guided LLM Agent for Proof-of-Concept Generationcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair
- 2026Beyond the Payload: How User Invocation Shapes Coding Agent Vulnerability to Repository Poisoning
- 2026SecProbe: Adaptive Evaluation of Coding Agents on Cybersecurity Vulnerabilities
- 2026A Dual-Loop Agent Framework for Automated Vulnerability Reproduction
- 2026Transferable Self-Evolving Playbooks for Agentic Security Auditing
- 2026ExploitBench: A Capability Ladder Benchmark for LLM Cybersecurity Agents
- 2026Shortcutting the Fix: Identifying and Categorizing Agentic Exploits in Software Engineering Benchmarks
- 2026Multi-Agent End-to-End Vulnerability Management for Mitigating Recurring Vulnerabilities