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 条
[31]   The impact factors on the performance of machine learning-based vulnerability detection: A comparative study [J].
Zheng, Wei ;
Gao, Jialiang ;
Wu, Xiaoxue ;
Liu, Fengyu ;
Xun, Yuxing ;
Liu, Guoliang ;
Chen, Xiang .
JOURNAL OF SYSTEMS AND SOFTWARE, 2020, 168
[32]   Detection of Malicious Software by Analyzing Distinct Artifacts Using Machine Learning and Deep Learning Algorithms [J].
Ashik, Mathew ;
Jyothish, A. ;
Anandaram, S. ;
Vinod, P. ;
Mercaldo, Francesco ;
Martinelli, Fabio ;
Santone, Antonella .
ELECTRONICS, 2021, 10 (14)
[33]   Software Vulnerability Assessment and Classification Using Machine Learning, Deep Learning and Feature Selection Techniques [J].
Hussein, Ali ;
Azmi, Azri ;
Abas, Hafiza .
Informatica (Slovenia), 2025, 49 (17) :95-104
[34]   Predicting software vulnerability based on software metrics: a deep learning approach [J].
Francis Kwadzo Agbenyegah ;
Micheal Asante ;
Jinfu Chen ;
Ernest Akpaku .
Iran Journal of Computer Science, 2024, 7 (4) :801-812
[35]   ANALYSIS OF MACHINE LEARNING METHODS ON MALWARE DETECTION [J].
Aydogan, Emre ;
Sen, Sevil .
2014 22ND SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE (SIU), 2014, :2066-2069
[36]   Geological Fractures Detection by Methods of Machine Learning [J].
M. V. Muratov ;
V. A. Biryukov ;
I. B. Petrov .
Lobachevskii Journal of Mathematics, 2020, 41 :533-537
[37]   Machine Learning Methods for Automatic Gender Detection [J].
Morales Sanchez, Damian ;
Moreno, Antonio ;
Jimenez Lopez, M. Dolores .
INTERNATIONAL JOURNAL ON ARTIFICIAL INTELLIGENCE TOOLS, 2022, 31 (03)
[38]   Geological Fractures Detection by Methods of Machine Learning [J].
Muratov, M. V. ;
Biryukov, V. A. ;
Petrov, I. B. .
LOBACHEVSKII JOURNAL OF MATHEMATICS, 2020, 41 (04) :533-537
[39]   A Machine Learning Methods: Outlier detection in WSN [J].
Ayadi, Hayfa ;
Zouinkhi, Ahmed ;
Boussaid, Boumedyen ;
Abdelkrim, M. Naceur .
2015 16TH INTERNATIONAL CONFERENCE ON SCIENCES AND TECHNIQUES OF AUTOMATIC CONTROL AND COMPUTER ENGINEERING (STA), 2015, :722-727
[40]   Automation of Software Code Analysis Using Machine Learning Methods [J].
Moshkin, V. S. ;
Dyrnochkin, A. A. ;
Yarushkina, N. G. .
PATTERN RECOGNITION AND IMAGE ANALYSIS, 2023, 33 (03) :417-424