DCVD:双通道跨模态融合用于联合漏洞检测与定位
DCVD: Dual-Channel Cross-Modal Fusion for Joint Vulnerability Detection and Localization
AI总结:
本文提出DCVD框架,通过双通道融合实现功能级检测与语句级定位的联合优化,有效解决单一信息源和缺乏显式监督的问题。
摘要:
软件漏洞检测在确保系统安全中起关键作用,实际审计需确定函数是否易受攻击并定位具体行。现有方法要么依赖单一信息源,要么将语句级定位视为功能级检测的副产品。为解决这些问题,本文提出DCVD框架,通过双通道提取控制依赖和语义特征,并通过对比对齐和双向交叉注意力进行融合,有效弥合跨模态表示差距。引入显式监督信号,实现功能级和语句级的协同优化。在大规模真实世界漏洞基准上的实验表明,DCVD在功能级检测和语句级定位上均优于现有方法。代码可在https://github.com/vinsontang1/DCVD获取。
英文摘要:
Software vulnerability detection plays a critical role in ensuring system security, where real-world auditing requires not only determining whether a function is vulnerable but also pinpointing the specific lines responsible. However, existing approaches either rely on a single information source -- sequential, structural, or semantic -- failing to jointly exploit the complementary strengths across modalities, or treat statement-level localization merely as a byproduct of function-level detection without explicit line-level supervision. To address these limitations, we propose DCVD (Dual-Channel Cross-Modal Vulnerability Detection), a unified framework that performs joint function-level detection and statement-level localization. DCVD extracts control-dependency and semantic features through two parallel branches and integrates them via contrastive alignment coupled with bidirectional cross-attention, effectively bridging the cross-modal representation gap. It further introduces explicit supervision signals at both the function and statement levels, enabling collaborative optimization across the two granularities. Extensive experiments on a large-scale real-world vulnerability benchmark demonstrate that DCVD consistently outperforms state-of-the-art methods on both function-level detection and statement-level localization. Our code is available at https://github.com/vinsontang1/DCVD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。