journal article·2020-11-10Open access

PreNNsem: A Heterogeneous Ensemble Learning Framework for Vulnerability Detection in Software

Lu Wang, Xin Li, Ruiheng Wang, Yang Xin, Mingcheng Gao, Yulin Chen

Applied Sciences· Volume 10· Issue 22

Abstract

Automated vulnerability detection is one of the critical issues in the realm of software security. Existing solutions to this problem are mostly based on features that are defined by human experts and directly lead to missed potential vulnerability. Deep learning is an effective method for automating the extraction of vulnerability characteristics. Our paper proposes intelligent and automated vulnerability detection while using deep representation learning and heterogeneous ensemble learning. Firstly, we transform sample data from source code by removing segments that are unrelated to the vulnerability in order to reduce code analysis and improve detection efficiency in our experiments. Secondly, we represent the sample data as real vectors by pre-training on the corpus and maintaining its semantic information. Thirdly, the vectors are fed to a deep learning model to obtain the features of vulnerability. Lastly, we train a heterogeneous ensemble classifier. We analyze the effectiveness and resource consumption of different network models, pre-training methods, classifiers, and vulnerabilities separately in order to evaluate the detection method. We also compare our approach with some well-known vulnerability detection commercial tools and academic methods. The experimental results show that our proposed method provides improvements in false positive rate, false negative rate, precision, recall, and F1 score.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Malware Detection Techniques · Software Engineering Research · Web Application Security Vulnerabilities

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Cyberspace Security, Beijing University of Posts and Telecommunications, Beijing 100876, China

Guizhou Provincial Key Laboratory of Public Big Data, Guizhou University, Guiyang 550025, China

National Engineering Laboratory for Disaster Backup Recovery, Beijing 100876, China

Funding

Major Scientific and Technological Special Project of Guizhou Province · Foundation of Guizhou Provincial Key Laboratory of Public Big Data · National statistical scientific research project of China

References (50)

Show source-provided references
1. (2020, March 01). CVE. Available online: http://cve.mitre.org.
2. (2020, March 01). Flawfinder. Available online: https://dwheeler.com/flawfinder/.
3. (2020, March 01). RIPS. Available online: http://rips-scanner.sourceforge.net.
4. (2020, March 01). Cppcheck. Available online: https://sourceforge.net/projects/cppcheck.
5. (2020, March 01). Coverity. Available online: http://www.coverity.com/index.html.
6. (2020, March 01). Fortify SCA. Available online: http://www.fortify.com/.
7. (2020, March 01). Ounec5.0. Available online: http://www.ouncelabs.com/.
8. (2020, March 01). Cobra. Available online: https://github.com/WhaleShark-Team/cobra.
9. (2020, March 01). mygcc. Available online: http://mygcc.free.fr.
10. (2020, March 01). Uno. Available online: http://spinroot.com/uno/.
11. Yamaguchi, F., Maier, A., Gascon, H., and Rieck, K. (2015, January 17–21). Automatic inference of search patterns for taint- style vulnerabilities. Proceedings of the 36th IEEE Symposium on Security and Privacy, San Jose, CA, USA.10.1109/SP.2015.54 ↗
12. Pang, Y., Xue, X., and Namin, A.S. (2015, January 9–11). Predicting vulnerable software components through N-gram analysis and statistical feature selection. Proceedings of the 14th International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA.10.1109/ICMLA.2015.99 ↗
13. Li, Z., Zou, D., Xu, S., Ou, X., Jin, H., Wang, S., Deng, Z., and Zhong, Y. (2018, January 18–21). Vuldeepecker: A deep learning-based system for vulnerability detection. Proceedings of the 25th Annual Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA.10.14722/ndss.2018.23158 ↗
14. Zhou, Y., Liu, S., Siow, J., Du, X., and Liu, Y. (2019, January 8–14). Devign: Effective vulnerability identification by learning comprehensive program semantics via graph neural networks. Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada.
15. Li, X., Wang, L., Xin, Y., Yang, Y., and Chen, Y. (2020). Automated Vulnerability Detection in Source Code Using Minimum Intermediate Representation Learning. Appl. Sci., 10.10.3390/app10051692 ↗
16. (2020, March 05). RATS. Available online: https://code.google.com/archive/p/rough-auditing-tool-for-security/.
17. (2020, March 05). Checkmarx. Available online: https://www.checkmarx.com.
18. Zimmermann, T., Nagappan, N., and Williams, L. (2010, January 6–10). Searching for a needle in a haystack: Predict- ing security vulnerabilities for windows vista. Proceedings of the 3rd International Conference on Software Testing, Verification and Validation, Paris, France.10.1109/ICST.2010.32 ↗
19. Younis, A., Malaiya, Y., Anderson, C., and Ray, I. (2016, January 9–11). To fear or not to fear that is the question: Code characteristics of a vulnerable function with an existing exploit. Proceedings of the CODASPY’16: 6th ACM Conference on Data and Application Security and Privacy, New Orleans, LA, USA.10.1145/2857705.2857750 ↗
20. Yamaguchi, F., Wressnegger, C., Gascon, H., and Rieck, K. (2013, January 4–8). Chucky: Exposing missing checks in source code for vulnerability discovery. Proceedings of the CCS’13: 20th ACM SIGSAC Conference on Computer & Communications Security, Berlin Germany.10.1145/2508859.2516665 ↗
21. Thummalapenta, S., and Xie, T. (2009, January 16–20). Alattin: Mining alternative patterns for detecting neglected conditions. Proceedings of the 24th IEEE/ACM International Conference on Automated Software Engineering, Auckland, New Zealand.10.1109/ASE.2009.72 ↗
22. Yamaguchi, F., Lindner, F., and Rieck, K. (2011, January 8). Vulnerability extrapolation: Assisted discovery of vulnerabilities using machine learning. Proceedings of the 5th USENIX Workshop on Offensive Technologies, San Francisco, CA, USA.
23. Yamaguchi, F., Lottmann, M., and Rieck, K. (2012, January 3–7). Generalized vulnerability extrapolation using abstract syntax trees. Proceedings of the ACSAC’12: 28th Annual Computer Security Applications Conference, Orlando, FL, USA.10.1145/2420950.2421003 ↗
24. Big Data for Cybersecurity: Vulnerability Disclosure Trends and Dependencies10.1109/TBDATA.2017.2723570 ↗
25. Lin, G., Zhang, J., Luo, W., Pan, L., and Xiang, Y. (November, January 30). POSTER: Vulnerability discovery with function representation learning from unlabeled projects. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, TX, USA.10.1145/3133956.3138840 ↗
26. A hybrid deep learning image-based analysis for effective malware detection
27. Image-Based malware classification using ensemble of CNN architectures (IMCEC)10.1016/j.cose.2020.101748 ↗
28. DeepBalance: Deep-Learning and Fuzzy Oversampling for Vulnerability Detection
29. Duan, X., Wu, J., Ji, S., Rui, Z., Luo, T., Yang, M., and Wu, Y. (2019, January 10–16). VulSniper: Focus Your Attention to Shoot Fine-Grained Vulnerabilities. Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence IJCAI-19, Macao, China.10.24963/ijcai.2019/648 ↗
30. Lin, G., Zhang, J., Luo, W., Pan, L., De Vel, O., Montague, P., and Xiang, Y. (2019). Software Vulnerability Discovery via Learning Multi-domain Knowledge Bases. IEEE Trans. Dependable Secur. Comput.
31. A Visualized Botnet Detection System based Deep Learning for the Internet of Things Networks of Smart Cities10.1109/TIA.2020.2971952 ↗
32. Zhao, G., and Huang, J. (2018, January 4–9). DeepSim: Deep learning code functional similarity. Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, Lake Buena Vista, FL, USA.10.1145/3236024.3236068 ↗
33. Xiao, Y., Chen, B., Yu, C., Xu, Z., Yuan, Z., Li, F., Liu, B., Liu, Y., Huo, W., and Zou, W. (2020, January 12–14). MVP: Detecting Vulnerabilities using Patch-Enhanced Vulnerability Signatures. Proceedings of the 29th USENIX Security Symposium, Boston, MA, USA.
34. Nair, A., Roy, A., and Meinke, K. (2020, January 5–7). funcGNN: A Graph Neural Network Approach to Program Similarity. Proceedings of the ESEM ’20: 14th ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM), Bari, Italy.10.1145/3382494.3410675 ↗
35. Wang, W., Li, G., Ma, B., Xia, X., and Jin, Z. (2020, January 18–21). Detecting Code Clones with Graph Neural Networkand FlowAugmented Abstract Syntax Tree. Proceedings of the 2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER), London, ON, Canada.10.1109/SANER48275.2020.9054857 ↗
36. Pantel, P. Inducing ontological co-occurrence vectors. Proceedings of the 43rd Annual Meeting on Association for Computational Linguistics.
37. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013). Efficient Estimation of Word Representations in Vector Space. arXiv.
38. Mikolov, T., Sutskever, I., Chen, K., Corrado, G.S., and Dean, J. (2013, January 5–10). Distributed Representations of Words and Phrases and their Compositionality. Proceedings of the Advances in Neural Information Processing Systems (NIPS), Stateline, NV, USA.
39. Kim, Y. (2014). Convolutional neural networks for sentence classification. arXiv.10.3115/v1/D14-1181 ↗
40. Classifier Ensemble Design for Imbalanced Data Classification: A Hybrid Approach10.1016/j.procs.2016.05.259 ↗
41. A comparative study of heterogeneous ensemble methods for the identification of geological lithofacies10.1007/s13202-020-00839-y ↗
42. (2020, March 20). SARD, Available online: https://samate.nist.gov/index.php/SARD.html.
43. (2020, March 20). NVD, Available online: https://nvd.nist.gov/.
44. (2020, March 20). Keras. Available online: https://github.com/fchollet/keras.
45. (2020, March 20). GoogleColaboratory. Available online: https://colab.research.google.com/notebooks/intro.ipynb.
46. (2020, March 20). Gensim. Available online: https://radimrehurek.com/gensim/.
47. (2020, March 20). Scikit-learn. Available online: https://scikit-learn.org/stable/index.html.
48. (2020, March 20). SySeVR. Available online: https://github.com/SySeVR/SySeVR.
49. Fang, Y., Liu, Y., Huang, C., and Liu, L. (2020). FastEmbed: Predicting vulnerability exploitation possibility based on ensemble machine learning algorithm. PLoS ONE, 15.10.1371/journal.pone.0228439 ↗
50. (2020, March 20). VUDDY. Available online: https://github.com/squizz617/vuddy.