← 研踪 PaperTrailarXiv:2612.03700 · v1
Secure-Miner: Improving Secure Code Generation for LLMs by Mining Secure Coding Practices
首次提交 2026-12-02 20:05
版本更新 2026-12-02 20:05
雷达观测 2026-12-03 12:51
摘要
Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs). Our methodology utilizes a multi-agent system consisting of: (1) a RegEx Agent that dynamically formulates security-related patterns based on CWE descriptions, optimized through an iterative feedback loop; (2) a Verification Agent that precisely identifies genuine secure functions from open-source repositories; and (3) a Refinement Agent that isolates core secure patterns by simplifying external dependencies to compile a high-quality dataset.
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v1 · 2026-12-02 20:05 · 最新观测版本
Secure-Miner: Improving Secure Code Generation for LLMs by Mining Secure Coding Practices
Most existing research on secure code generation for Large Language Models (LLMs) heavily relies on disclosed vulnerability reports or synthetic datasets for fine-tuning. This approach frequently overlooks the diverse, secure coding practices that emerge naturally during real-world software development. This paper bridges this gap by proposing a novel framework to automatically extract and leverage secure practices observed in the wild to enhance secure code generation, with a particular focus on low-resource Common Weakness Enumerations (CWEs). Our methodology utilizes a multi-agent system consisting of: (1) a RegEx Agent that dynamically formulates security-related patterns based on CWE descriptions, optimized through an iterative feedback loop; (2) a Verification Agent that precisely identifies genuine secure functions from open-source repositories; and (3) a Refinement Agent that isolates core secure patterns by simplifying external dependencies to compile a high-quality dataset.
查看此版本解读 →查看此版本原文 ↗