Source Code Vulnerability Detection Method with Multidimensional Representation

Yang, Hongyu and Ying, Leyi and Zhang, Liang (2022) Source Code Vulnerability Detection Method with Multidimensional Representation. In: Security and Privacy in New Computing Environments. 4th EAI International Conference, SPNCE 2021, Virtual Event, December 10-11, 2021, Proceedings.

[thumbnail of 74167.pdf] PDF
74167.pdf

Download (109kB)

Abstract

At present, most of the source code vulnerability detection methods only rely on the source code text information for representation, and the single dimension of representation leads to low efficiency. This paper presents a source code vulnerability detection method based on multidimensional representation. Firstly, the structured text information of the source code is obtained through the abstract syntax tree of the source code; Then the source code is measured to obtain the code metrics; Finally, a deep neural network is used for feature learning to construct the source code vulnerability detection model, and the structured text features and code metrics of the source code to be detected are input into the vulnerability detection model to obtain the vulnerability detection results. The results of the comparison experiment show that the method has a good detection effect. In comparison experiments, 11 source code samples with different types of vulnerabilities were tested for vulnerability detection. The average detection accuracy of this method is 97.96%. Compared with existing vulnerability detection methods based on a single characterization, the detection accuracy of this method is improved by 4.89%–12.21%. At the same time, the miss and false-positive rates of this method are kept within 10%.

Item Type: Conference or Workshop Item (UNSPECIFIED)
Uncontrolled Keywords: Vulnerability detection, Structured representation, Abstract syntax tree, Code metrics, Deep neural network
Date Deposited: 04 Mar 2026 18:59
Last Modified: 20 Nov 2026 13:21
URI: https://eprints.eai.eu/id/eprint/54823

Actions (login required)

View Item
View Item