CyberForge: Verified Vulnerability Injection at Repository Level for Cybersecurity Agent Training
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Despite recent advances, frontier large language model (LLM) agents remain limited in discovering and patching complex vulnerabilities in real-world software. Generally available agents can already aid attackers, who only need to find one exploitable weakness, while defenders must continuously identify and patch all vulnerabilities across fast-growing codebases. Stronger defensive agents would help close this gap, yet the scarcity of security training data with reproducible build and execution environments remains a bottleneck. We present CyberForge, a framework that synthesizes executable, repository-level security training data by injecting vulnerabilities into real C/C++ projects. It validates each instance dynamically: the injected build must pass the project's unit tests, and generated proof-of-vulnerability (PoV) must trigger on the injected build and not on the clean one. CyberForge is not limited by the availability of disclosed vulnerabilities, therefore it can scale in comparison to data augmentation techniques which rely on historic CVE data. The resulting corpus holds 1034 validated vulnerabilities across 80 projects and 63 weakness categories, with edit locality similar to real CVE patches under a real-versus-real noise floor. Fine-tuning on trajectories collected over this corpus improves SEC-bench patch repair by +3.3 to +14.7 points, in all six configurations of three model scales and two teachers, with the 31B student reaching its GPT-5.4-mini teacher, 72.7% against 74.0%. These gains generalize out of distribution to PatchEval, a corpus containing other programming languages, where every configuration also improves and the 31B student passes its teacher.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 13 of its 29 references that are in the map. First posted on arXiv 6 Aug 2026.
Builds on
13 of 29 references.
Closest ancestors · 3
Same direction, newest first
- 2025From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEs1 Sep
- 2025Cyber-Zero: Training Cybersecurity Agents without Runtime29 Jul
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks13 Jun
Other references · 10
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 78
- 2019When Deep Learning Met Code Searchcited by 46
- 2024Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detectioncited by 28
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignmentcited by 25
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2023VGX: Large-Scale Sample Generation for Boosting Learning-Based Software Vulnerability Analysescited by 9
- 2026To Defend Against Cyber Attacks, We Must Teach AI Agents to Hackcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CyberFactory: Scaling Cyber Security Capabilities with Instances from the Wild
- 2026SecureForge: Finding and Preventing Vulnerabilities in LLM-Generated Code via Prompt Optimization
- 2025Automated Vulnerability Validation and Verification: A Large Language Model Approach
- 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale
- 2026ZeroDayBench: Evaluating LLM Agents on Unseen Zero-Day Vulnerabilities for Cyberdefense
- 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilities
- 2025LLM Agents for Automated Web Vulnerability Reproduction: Are We There Yet?
- 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection