Learning to Detect Memory-related Vulnerabilities

Author:

Cao Sicong1ORCID,Sun Xiaobing1ORCID,Bo Lili1ORCID,Wu Rongxin2ORCID,Li Bin1ORCID,Wu Xiaoxue1ORCID,Tao Chuanqi3ORCID,Zhang Tao4ORCID,Liu Wei1ORCID

Affiliation:

1. School of Information Engineering, Yangzhou University, China

2. School of Informatics, Xiamen University, China

3. College of Computer Science and Technology/College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics, China

4. School of Computer Science and Engineering, Macau University of Science and Technology, China

Abstract

Memory-related vulnerabilities can result in performance degradation or even program crashes, constituting severe threats to the security of modern software. Despite the promising results of deep learning (DL)-based vulnerability detectors, there exist three main limitations: (1) rich contextual program semantics related to vulnerabilities have not yet been fully modeled; (2) multi-granularity vulnerability features in hierarchical code structure are still hard to be captured; and (3) heterogeneous flow information is not well utilized. To address these limitations, in this article, we propose a novel DL-based approach, called MVD+ , to detect memory-related vulnerabilities at the statement-level. Specifically, it conducts both intraprocedural and interprocedural analysis to model vulnerability features, and adopts a hierarchical representation learning strategy, which performs syntax-aware neural embedding within statements and captures structured context information across statements based on a novel Flow-Sensitive Graph Neural Networks, to learn both syntactic and semantic features of vulnerable code. To demonstrate the performance, we conducted extensive experiments against eight state-of-the-art DL-based approaches as well as five well-known static analyzers on our constructed dataset with 6,879 vulnerabilities in 12 popular C/C++ applications. The experimental results confirmed that MVD+ can significantly outperform current state-of-the-art baselines and make a great trade-off between effectiveness and efficiency.

Funder

National Natural Science Foundation of China

Six Talent Peaks Project in Jiangsu Province

Jiangsu “333” Project and Yangzhou University Top-level Talents Support Program

Postgraduate Research & Practice Innovation Program of Jiangsu Province

Macao Science and Technology Development Fund

Open Funds of State Key Laboratory for Novel Software Technology of Nanjing University

China Scholarship Council Foundation

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference101 articles.

1. Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. 2018. Learning to represent programs with graphs. In Proceedings of the 6th International Conference on Learning Representations (ICLR’18).

2. Uri Alon and Eran Yahav. 2021. On the bottleneck of graph neural networks and its practical implications. In Proceedings of the 9th International Conference on Learning Representations (ICLR’21).

3. code2vec: learning distributed representations of code

4. SinkFinder: harvesting hundreds of unknown interesting function pairs with just one seed

5. VulLoc: vulnerability localization based on inducing commits and fixing commits

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3