Machine Learning Methods for Software Vulnerability Detection

被引:44
作者
Chernis, Boris [1 ]
Verma, Rakesh [1 ]
机构
[1] Univ Houston, Houston, TX 77004 USA
来源
IWSPA '18: PROCEEDINGS OF THE FOURTH ACM INTERNATIONAL WORKSHOP ON SECURITY AND PRIVACY ANALYTICS | 2018年
基金
美国国家科学基金会;
关键词
static analysis; buffer overflow; vulnerability detection; n-grams; suffix trees; software metrics; machine learning; PREDICTING FAULTS;
D O I
10.1145/3180445.3180453
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Software vulnerabilities are a primary concern in the IT security industry, as malicious hackers who discover these vulnerabilities can often exploit them for nefarious purposes. However, complex programs, particularly those written in a relatively low-level language like C, are difficult to fully scan for bugs, even when both manual and automated techniques are used. Since analyzing code and making sure it is securely written is proven to be a non-trivial task, both static analysis and dynamic analysis techniques have been heavily investigated, and this work focuses on the former. The contribution of this paper is a demonstration of how it is possible to catch a large percentage of bugs by extracting text features from functions in C source code and analyzing them with a machine learning classifier. Relatively simple features (character count, character diversity, entropy, maximum nesting depth, arrow count, "if" count, "if" complexity, "while" count, and "for" count) were extracted from these functions, and so were complex features (character n-grams, word n-grams, and suffix trees). The simple features performed unexpectedly better compared to the complex features (74% accuracy compared to 69% accuracy).
引用
收藏
页码:31 / 39
页数:9
相关论文
共 50 条
[41]   Software Effort Prediction using Statistical and Machine Learning Methods [J].
Malhotra, Ruchika ;
Jain, Ankita .
INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2011, 2 (01) :145-152
[42]   Machine learning based methods for software fault prediction: A survey [J].
Pandey, Sushant Kumar ;
Mishra, Ravi Bhushan ;
Tripathi, Anil Kumar .
EXPERT SYSTEMS WITH APPLICATIONS, 2021, 172
[43]   Automation of Software Code Analysis Using Machine Learning Methods [J].
V. S. Moshkin ;
A. A. Dyrnochkin ;
N. G. Yarushkina .
Pattern Recognition and Image Analysis, 2023, 33 :417-424
[44]   Comparison of Machine Learning Methods for Software Project Effort Estimation [J].
Yurdakurban, Vehbi ;
Erdogan, Nadia .
2018 26TH SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE (SIU), 2018,
[45]   An experimental study for software quality prediction with machine learning methods [J].
Ceran, A. Ayberk ;
Tanriover, O. Ozgur .
2ND INTERNATIONAL CONGRESS ON HUMAN-COMPUTER INTERACTION, OPTIMIZATION AND ROBOTIC APPLICATIONS (HORA 2020), 2020, :93-96
[46]   An Empirical Study of High-Impact Factors for Machine Learning-Based Vulnerability Detection [J].
Zheng, Wei ;
Gao, Jialiang ;
Wu, Xiaoxue ;
Xun, Yuxing ;
Liu, Guoliang ;
Chen, Xiang .
PROCEEDINGS OF THE 2020 IEEE 2ND INTERNATIONAL WORKSHOP ON INTELLIGENT BUG FIXING (IBF '20), 2020, :26-34
[47]   The application of neural network for software vulnerability detection: a review [J].
Zhu, Yuhui ;
Lin, Guanjun ;
Song, Lipeng ;
Zhang, Jun .
NEURAL COMPUTING & APPLICATIONS, 2023, 35 (02) :1279-1301
[48]   Rule-based system for vulnerability detection of software [J].
Cho, Sung-Hoon ;
Jang, Chang-Bok ;
Lee, Moo-Hun ;
Choi, Eui-In .
Advances in Computational Methods in Sciences and Engineering 2005, Vols 4 A & 4 B, 2005, 4A-4B :1630-1633
[49]   The application of neural network for software vulnerability detection: a review [J].
Yuhui Zhu ;
Guanjun Lin ;
Lipeng Song ;
Jun Zhang .
Neural Computing and Applications, 2023, 35 :1279-1301
[50]   VULNERABILITY DETECTION IN CYBER-PHYSICAL SYSTEM USING MACHINE LEARNING [J].
Bharathi, V ;
Kumar, C. N. S. Vinoth .
SCALABLE COMPUTING-PRACTICE AND EXPERIENCE, 2024, 25 (01) :577-592