Netinfo Security ›› 2022, Vol. 22 ›› Issue (10): 59-68.doi: 10.3969/j.issn.1671-1122.2022.10.009

Previous Articles     Next Articles

Detection Method for C Language Family Based on Graph Neural Network and Generic Vulnerability Analysis Framework

ZHU Lina1, MA Mingrui2,3,4(), ZHU Dongzhao5   

  1. 1. Department of Network Information Security, Guangdong Police College, Guangzhou 510442, China
    2. School of Cyber Science and Engineering, Huazhong University of Science and Technology, Wuhan 430074, China
    3. Hubei Key Laboratory of Distributed System Security, Wuhan 430074, China
    4. Hubei Engineering Research Center on Big Data Security, Wuhan 430074, China
    5. Heilongjiang Branch of China Mobile Information Technology Co., Ltd., Harbin 150001, China
  • Received:2022-07-01 Online:2022-10-10 Published:2022-11-15
  • Contact: MA Mingrui E-mail:jkpathfinder@126.com

Abstract:

Most of the existing automated vulnerability mining tools have poor generalization ability and high false positive and false negative rale. In this paper, a static detection model called CSVDM was proposed for multi-class vulnerabilities in C language family. CSVDM used code similarity detection and generic vulnerability analysis framework module to perform vulnerability mining at the source code level. The similarity detection module integrated longest common subsequence(LCS) algorithm and graph neural network to implement code cloning and homology detection, generating the vulnerability similarity list according to a preset threshold. The generic vulnerability analysis framework module performed context-dependent data flow and controled flow analysis of the source code to be tested to compensate for the the similarity detection module’s high false negatives in detecting vulnerabilities not caused by code cloning, and generated the vulnerability analysis list. CSVDM combined the vulnerability similarity list and the vulnerability analysis list to generate the final vulnerability detection report. The experimental results show that CSVDM has a substantial improvement in evaluation metrics compared to other vulnerability mining tools such as checkmarx.

Key words: generic vulnerability analysis framework, LCS algorithm, Skip-Gram model, graph neural network, graph attention mechanism

CLC Number: