IRC-CLVul: Cross-Programming-Language Vulnerability Detection with Intermediate Representations and Combined Features

Tianwei Lei, Jingfeng Xue, Yong Wang, Zhenyan Liu*

*此作品的通讯作者

科研成果: 期刊稿件文章同行评审

摘要

The most severe problem in cross-programming languages is feature extraction due to different tokens in different programming languages. To solve this problem, we propose a cross-programming-language vulnerability detection method in this paper, IRC-CLVul, based on intermediate representation and combined features. Specifically, we first converted programs in different programming languages into a unified LLVM intermediate representation (LLVM-IR) to provide a classification basis for different programming languages. Afterwards, we extracted the code sequences and control flow graphs of the samples, used the semantic model to extract the program semantic information and graph structure information, and concatenated them into semantic vectors. Finally, we used Random Forest to learn the concatenated semantic vectors and obtained the classification results. We conducted experiments on 85,811 samples from the Juliet test suite in C, C++, and Java. The results show that our method improved the accuracy by 7% compared with the two baseline algorithms, and the F1 score showed a 12% increase.

源语言英语
文章编号3067
期刊Electronics (Switzerland)
12
14
DOI
出版状态已出版 - 7月 2023

指纹

探究 'IRC-CLVul: Cross-Programming-Language Vulnerability Detection with Intermediate Representations and Combined Features' 的科研主题。它们共同构成独一无二的指纹。

引用此