arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.05587cs.CRcs.AI

HogVul: 针对基于语言模型的漏洞检测器的黑盒对抗代码生成框架

HogVul: Black-box Adversarial Code Generation Framework Against LM-based Vulnerability Detectors

Jingxiao Yang, Ping He, Tianyu Du, Sun Bing, Xuhong Zhang

AI总结:

HogVul通过整合词汇和语法扰动,利用粒子群优化策略提升对抗攻击效果,实验显示其在漏洞检测器攻击成功率上提升26.05%。

摘要:

最近软件漏洞检测的进步主要由基于语言模型(LM)的方法推动。然而,这些模型仍然容易受到利用词汇和语法扰动的对抗攻击,使关键漏洞能够逃避检测。现有的针对基于语言模型的漏洞检测器的黑盒攻击主要依赖于孤立的扰动策略,限制了其有效探索对抗代码空间以找到最优扰动的能力。为弥合这一差距,我们提出了HogVul,一个整合了词汇和语法扰动的黑盒对抗代码生成框架,采用由粒子群优化(PSO)驱动的统一双通道优化策略。通过系统协调两级扰动,HogVul有效扩展了对抗示例的搜索空间,提高了攻击效果。在四个基准数据集上的广泛实验表明,HogVul在平均攻击成功率方面比最先进的基线方法提高了26.05%。这些发现突显了混合优化策略在暴露模型漏洞方面的潜力。

英文摘要:

Recent advances in software vulnerability detection have been driven by Language Model (LM)-based approaches. However, these models remain vulnerable to adversarial attacks that exploit lexical and syntax perturbations, allowing critical flaws to evade detection. Existing black-box attacks on LM-based vulnerability detectors primarily rely on isolated perturbation strategies, limiting their ability to efficiently explore the adversarial code space for optimal perturbations. To bridge this gap, we propose HogVul, a black-box adversarial code generation framework that integrates both lexical and syntax perturbations under a unified dual-channel optimization strategy driven by Particle Swarm Optimization (PSO). By systematically coordinating two-level perturbations, HogVul effectively expands the search space for adversarial examples, enhancing the attack efficacy. Extensive experiments on four benchmark datasets demonstrate that HogVul achieves an average attack success rate improvement of 26.05\% over state-of-the-art baseline methods. These findings highlight the potential of hybrid optimization strategies in exposing model vulnerabilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑