arXiv cs.AI· Tue Le, Anh Nguyen Hoang, Gabriel Sasseville, Doseok Jang, Pierre-Luc Bacon, Nghi D. Q. Bui·· 12 小时前AI 评分34
FALCON:用反例反馈实现安全的智能体编码
Secure Agentic Coding through Counterexample-Grounded Feedback
AI 导读
FALCON 是一个反例驱动的验证框架,将攻击探索与行为验证分离,并通过被测程序的执行轨迹把两者连接起来。在测试时修复中,它在安全代码生成基准上的留出功能-安全增益显著强于其他安全信号,同时保持或提升功能;作为 RL 奖励,它在留出功能-安全上也优于静态分析和学习型奖励。与任一代理奖励结合还能进一步提升留出性能,表明执行驱动的反馈可缓解奖励过度优化。
正文 · 原文
Abstract:As coding models and agent harnesses become more capable, reliable security verification is becoming a central bottleneck. Improving secure code generation requires a signal whose reported progress remains aligned with actual program behavior under optimization; otherwise, an optimizer can improve the signal's verdict without removing the underlying vulnerability. Existing model-based approaches require models to either infer program behavior from source code or specify correct outcomes for adversarial tests, placing substantial reasoning demands on the security signal. We introduce \falcon{}, a counterexample-grounded verification framework that separates attack exploration from behavioral verification and connects them through execution traces of the program under test. In test-time repair, \falcon{} yields substantially stronger held-out functional-security gains than alternative security signals across secure code generation benchmarks, while preserving or improving functionality. As an RL reward, \falcon{} also outperforms static-analysis and learned rewards on held-out functional-security, even when all policies successfully optimize their respective training rewards. Combining \falcon{} with either proxy reward further improves held-out performance, suggesting that execution-grounded feedback can mitigate reward overoptimization while preserving useful guidance from existing security signals.
| Subjects: | Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.25916 [cs.CR] |
| (or arXiv:2610.25916v2 [cs.CR] for this version) | |
| https://doi.org/10.48550/arXiv.2610.25916 arXiv-issued DOI via DataCite |
Submission history
From: Tue Le [view email]
[v1]
Mon, 19 Oct 2026 07:18:34 UTC (3,371 KB)
[v2]
Tue, 20 Oct 2026 03:21:13 UTC (3,381 KB)
来源:arXiv cs.AI · arxiv.org