AuraForge: Scaling Security Supervision for Training Coding Agents

📅 2026-09-30
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the bottleneck of scarce reliable safety supervision data in large-scale training of code agents. To this end, it proposes a training framework that integrates attack-oriented test synthesis, multilingual task expansion, and reward-hacking prevention mechanisms. By automatically generating and verifying executable safety test cases, the approach constructs a cross-lingual reinforcement learning supervision environment, effectively overcoming the data scalability challenge in safety alignment. Experimental results demonstrate that the proposed method triples the volume of generated tests while reducing the false positive rate by 83%, achieving significantly superior code safety compared to human-written testing baselines.
📝 Abstract
Coding agents are now proficient enough to generate complex software applications from a single prompt. As their capabilities have grown, human oversight has increasingly shifted from line-by-line code review toward hands-off evaluation of outcomes. However, recent studies have shown that such a transition exposes a critical risk: functional correctness alone does not guarantee a secure implementation. Despite growing attention to code security, training safer coding agents remains challenging because reliable security supervision is difficult to obtain at scale from real-world repositories. We introduce AuraForge to synthesize and validate executable security tests for training secure coding agents. Our approach combines attack-oriented test synthesis, language-extensible task construction, and safeguards against reward hacking. Using AuraForge, we construct AuraGym, a multi-language and multi-CWE executable training gym: 679 executable feature-implementation tasks from 344 real-world repositories across Python, JavaScript, and TypeScript, covering 177 CWE categories. On the subset with human-written security tests, AuraForge produces about 3 times as many test cases on average and reduces the false-positive rate by 83.23%, allowing alternative secure implementations to receive correct supervision. Training Qwen3.5-4B with synthesized security tests gains larger improvements than human-written security tests (average 19.7 FuncPass and 6.2 SecPass vs. 14.9 FuncPass and 4.4 SecPass) on three languages. These results demonstrate that AuraForge provides more diverse and reliable security supervision to train secure coding agents.
Problem

Research questions and friction points this paper is trying to address.

Coding Agents
Code Security
Security Supervision
Reward Hacking
Innovation

Methods, ideas, or system contributions that make the work stand out.

Security Supervision
Coding Agents
Test Synthesis
Reward Hacking
CWE
🔎 Similar Papers
No similar papers found.