arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.04397cs.CRcs.AIcs.SE
收藏

MulVuln: 利用共享知识与语言特定知识增强预训练语言模型以实现多语言漏洞检测

MulVuln: Enhancing Pre-trained LMs with Shared and Language-Specific Knowledge for Multilingual Vulnerability Detection

Monash University(墨尔本大学);CSIRO’s Data61(澳大利亚联邦科学与工业研究组织数据61分部);The University of Melbourne(墨尔本大学)

Van Nguyen, Surya Nepal, Xingliang Yuan, Tingmin Wu, Fengchao Chen, Carsten Rudolph

AI总结:

针对现有软件漏洞检测方法多局限于单语言、难以兼顾代码共享与语言特定知识的问题,提出多语言漏洞检测方法MULVULN,在多语言数据集上较基线方法F1值最高提升23.59%。

摘要:

软件漏洞(SVs)对安全关键系统构成严重威胁,推动了机器学习、深度学习等基于人工智能的方法在软件漏洞检测中的应用。尽管这些方法取得了可观的成果,但大多数现有方法仅局限于单一编程语言。鉴于现代软件通常结构复杂且采用多种语言编写,具备多语言属性,这一局限性存在很大问题。现有方法往往难以同时捕捉源代码的共享知识与语言特定知识,这会限制其在不同编程语言和真实代码库上的性能。为填补这一空白,我们提出了MULVULN——一种新型多语言漏洞检测方法,可从多语言源代码中学习。MULVULN既能捕捉跨语言通用的共享知识,也能捕捉反映独特编码规范的语言特定知识。通过整合这两方面内容,它能在真实的多语言软件系统中实现更稳健、更有效的漏洞检测。我们在真实且多样化的REEF数据集上开展了严谨且广泛的实验,该数据集包含7种编程语言的4466个CVE及30987个补丁。实验结果表明,MULVULN的性能优于13种有效的当前最优基线方法。值得注意的是,MULVULN取得了大幅提升的F1值,与基线方法相比,提升幅度在1.45%到23.59%之间。

英文摘要:

Software vulnerabilities (SVs) pose a critical threat to safety-critical systems, driving the adoption of AI-based approaches such as machine learning and deep learning for software vulnerability detection. Despite promising results, most existing methods are limited to a single programming language. This is problematic given the multilingual nature of modern software, which is often complex and written in multiple languages. Current approaches often face challenges in capturing both shared and language-specific knowledge of source code, which can limit their performance on diverse programming languages and real-world codebases. To address this gap, we propose MULVULN, a novel multilingual vulnerability detection approach that learns from source code across multiple languages. MULVULN captures both the shared knowledge that generalizes across languages and the language-specific knowledge that reflects unique coding conventions. By integrating these aspects, it achieves more robust and effective detection of vulnerabilities in real-world multilingual software systems. The rigorous and extensive experiments on the real-world and diverse REEF dataset, consisting of 4,466 CVEs with 30,987 patches across seven programming languages, demonstrate the superiority of MULVULN over thirteen effective and state-of-the-art baselines. Notably, MULVULN achieves substantially higher F1-score, with improvements ranging from 1.45% to 23.59% compared to the baseline methods.

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

↑