ORACAL: 一种基于因果图增强的鲁棒且可解释的智能合约漏洞检测多模态框架
ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichment
AI总结:
提出ORACAL异构多模态图学习框架,集成控制流图、数据流图和调用图,通过RAG和LLM增强关键子图,并采用因果注意力机制和PGExplainer实现鲁棒且可解释的智能合约漏洞检测。
摘要:
尽管图神经网络(GNN)在智能合约漏洞检测中展现出潜力,但仍面临显著限制。同构图模型无法捕捉控制流与数据依赖之间的相互作用,而异构图方法通常缺乏深层语义理解,使其易受对抗攻击。此外,大多数黑盒模型无法提供可解释证据,阻碍了专业审计的信任。为解决这些挑战,我们提出ORACAL(基于可观测RAG增强的因果推理分析),一种异构多模态图学习框架,集成了控制流图(CFG)、数据流图(DFG)和调用图(CG)。ORACAL选择性地用检索增强生成(RAG)和大语言模型(LLM)的专家级安全上下文增强关键子图,并采用因果注意力机制从虚假相关性中分离真正的漏洞指示。为提升透明度,该框架采用PGExplainer生成子图级解释,识别漏洞触发路径。在大型数据集上的实验表明,ORACAL实现了最先进的性能,在主要基准上以91.28%的峰值宏F1超越MANDO-HGT、MTVHunter、GNN-SC和SCVHunter高达39.6个百分点。ORACAL在分布外数据集上保持强泛化能力,在CGT Weakness和DAppScan上分别达到91.8%和77.1%。在可解释性评估中,PGExplainer针对人工标注的漏洞触发路径实现了32.51%的平均交并比(MIoU)。在对抗攻击下,ORACAL将性能下降限制在约2.35%的F1下降,攻击成功率(ASR)仅为3%,优于ASR在10.91%至18.73%之间的SCVHunter和MANDO-HGT。
英文摘要:
Although Graph Neural Networks (GNNs) have shown promise for smart contract vulnerability detection, they still face significant limitations. Homogeneous graph models fail to capture the interplay between control flow and data dependencies, while heterogeneous graph approaches often lack deep semantic understanding, leaving them susceptible to adversarial attacks. Moreover, most black-box models fail to provide explainable evidence, hindering trust in professional audits. To address these challenges, we propose ORACAL (Observable RAG-enhanced Analysis with CausAL reasoning), a heterogeneous multimodal graph learning framework that integrates Control Flow Graph (CFG), Data Flow Graph (DFG), and Call Graph (CG). ORACAL selectively enriches critical subgraphs with expert-level security context from Retrieval-Augmented Generation (RAG) and Large Language Models (LLMs), and employs a causal attention mechanism to disentangle true vulnerability indicators from spurious correlations. For transparency, the framework adopts PGExplainer to generate subgraph-level explanations identifying vulnerability triggering paths. Experiments on large-scale datasets demonstrate that ORACAL achieves state-of-the-art performance, outperforming MANDO-HGT, MTVHunter, GNN-SC, and SCVHunter by up to 39.6 percentage points, with a peak Macro F1 of 91.28% on the primary benchmark. ORACAL maintains strong generalization on out-of-distribution datasets with 91.8% on CGT Weakness and 77.1% on DAppScan. In explainability evaluation, PGExplainer achieves 32.51% Mean Intersection over Union (MIoU) against manually annotated vulnerability triggering paths. Under adversarial attacks, ORACAL limits performance degradation to approximately 2.35% F1 decrease with an Attack Success Rate (ASR) of only 3%, surpassing SCVHunter and MANDO-HGT which exhibit ASRs ranging from 10.91% to 18.73%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。