Journal on Communications ›› 2023, Vol. 44 ›› Issue (9): 149-160.doi: 10.11959/j.issn.1000-436x.2023184

• Papers • Previous Articles    

mVulSniffer: a multi-type source code vulnerability sniffer method

Xuejun ZHANG1, Fenghe ZHANG1, Jiyang GAI1, Xiaogang DU2, Wenjie ZHOU1, Teli CAI1, Bo ZHAO3   

  1. 1 School of Electronic and Information Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
    2 School of Electronic and Information and Artificial Intelligence, Shaanxi University of Science and Technology, Xi’an 710021, China
    3 State Grid Gansu Electric Power Company, Lanzhou 730000, China
  • Revised:2023-06-28 Online:2023-09-01 Published:2023-09-01
  • Supported by:
    The National Natural Science Foundation of China(61762058);The Natural Science Foundation of Gansu Province(21JR7RA282);The Industrial Support Project of Gansu Provincial Department of Education(2022CYZC-38);The State Grid Science and Technology Project(W32KJ2722010);The State Grid Science and Technology Project(522722220013)

Abstract:

Given the problem that the code slice used by existing deep learning-based vulnerability sniffer methods could not comprehensively encompass the subtle characteristics between vulnerability classes, and a single deep learning sniffer model had insufficient ability to learn long context-dependent information between cross-file and cross-function code statements, a multi-type source code vulnerability sniffer method was proposed.Firstly, fine-grained two-level slices containing the types of vulnerabilities were extracted based on the control dependency and data dependency information in program dependency graph.Secondly, the two-level slices were transformed into initial feature vector.Finally, a fusion model of deep learning vulnerability sniffer suitable for two-level slices was constructed to achieve accurate vulnerability detection of multi-type source code.The experimental results on multiple synthetic datasets and two real datasets show that the proposed method outperforms the existing multi-type source code vulnerability sniffer methods.

Key words: multi-type vulnerabilities sniffer, deep learning, attention mechanism, data dependency, control dependency

CLC Number: 

No Suggested Reading articles found!