Journal of Xidian University ›› 2020, Vol. 47 ›› Issue (6): 164-173.doi: 10.19665/j.issn1001-2400.2020.06.023

• Information and Communications Engineering & Cyberspace Security • Previous Articles    

PHP code vulnerability mining technology based on theimproved ASTNN

HU Jianwei1,2(),ZHAO Wei1(),CUI Yanpeng1,2,CUI Junjie1   

  1. 1. School of Network and Information Security, Xidian University, Xi’an 710071, China
    2. Network Behavior Research Center, Xidian University, Xi’an 710071, China
  • Received:2020-01-05 Online:2020-12-20 Published:2021-01-06
  • Contact: Wei ZHAO E-mail:jhost@xidian.edu.cn;15773287001@163.com

Abstract:

In order to solve the problems of low efficiency and high false positives of the traditional PHP vulnerability mining technology, a deep neural network mining method based on the ASTNN is proposed. At the same time, this method is also used to solve the problem of high false positives of the existing neural network model with the token sequence and software metrics as features. First, according to the characteristics of the PHP abstract syntax tree, the rules for dividing statement trees are defined. Second, according to the special structure of the PHP abstract syntax tree, improvements are made to the encoding layer of the traditional ASTNN deep neural network to better preserve the semantic information contained in the abstract syntax tree. Experimental results show that the PHP vulnerability mining method based on the improved ASTNN model has a higher accuracy and recall rate than the traditional method. The improved ASTNN deep neural network model is suitable for PHP vulnerability mining.

Key words: abstract syntax tree, deep learning, recurrent neural network, vulnerability mining

CLC Number: 

  • TP311.5