计算机科学
脆弱性(计算)
编码(集合论)
嵌入
图形
脆弱性评估
代表(政治)
人工智能
机器学习
理论计算机科学
计算机安全
程序设计语言
心理学
集合(抽象数据类型)
心理弹性
政治
政治学
法学
心理治疗师
作者
Bolun Wu,Futai Zou,Ping Yi,Yue Wu,Liang Zhang
标识
DOI:10.1016/j.cose.2023.103469
摘要
Machine learning-based fine-grained vulnerability detection is an important technique for locating vulnerable statements, which assists engineers in efficiently analyzing and fixing the vulnerabilities. However, due to insufficient code representations, code embeddings, and neural network design, current methods suffer low vulnerability localization performance. In this paper, we propose to address these shortcomings by presenting SlicedLocator, a novel fine-grained code vulnerability detection model that is trained in a dual-grained manner and can predict both program-level and statement-level vulnerabilities. We design the sliced dependence graph, a new code representation that not only preserves rich interprocedural relations but also eliminates vulnerability-irrelevant statements. We create attention-based code embedding networks that are trained with the entire model to extract vulnerability-aware code features. In addition, we present a new LSTM-GNN model as a fusion of semantic modeling and structural modeling. Experiment results on a large-scale C/C++ vulnerability dataset reveal that SlicedLocator outperforms state-of-the-art machine learning-based vulnerability detectors, especially in terms of localization metrics.
科研通智能强力驱动
Strongly Powered by AbleSci AI