journal article·2023-03-20Open access

TMVDPatch: A Trusted Multi-View Decision System for Security Patch Identification

Xin Zhou, Jianmin Pang, Zheng Shan, Feng Yue, Fudong Liu, Jinlong Xu, Junchao Wang, Wenfu Liu, Guangming Liu

Applied Sciences· Volume 13· Issue 6

Abstract

Nowadays, the time lag between vulnerability discovery and the timely remediation of the vulnerability is extremely important to the current state of cybersecurity. Unfortunately, the silent security patch presents a significant challenge. Despite related work having been conducted in this area, the patch identification lacks interpretability. To solve this problem, this paper first proposes a trusted multi-view security patch identification system called TMVDPatch. The system obtains evidence from message commit and code diff views respectively, and models the uncertainty of each view based on the D-S evidence theory, thereby providing credible and interpretable security patch identification results. On this basis, this paper performs weighted training on the original evidence based on the grey relational analysis method to improve the ability to make credible decisions based on multi-views. Experimental results show that the multi-view learning method exhibits excellent capabilities in terms of the complementary information provided by control dependency and data dependency, and the model shows strong robustness across different hyperparameter settings. TMVDPatch outperforms other models in all evaluation metrics, achieving an accuracy of 85.29% and a F1 score of 0.9001, clearly verifying the superiority of TMVDPatch in terms of accuracy, scientificity, and reliability.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Software Engineering Research · Advanced Malware Detection Techniques · Software Reliability and Analysis Research

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

Affiliations

State Key Laboratory of Mathematical Engineering and Advanced Computing, Zhengzhou 450000, China

Songshan Laboratory, Zhengzhou 450000, China

State Key Laboratory of Complex Electromagnetic Environment Effects on Electronics and Information System, Luoyang 471000, China

Funding

National Natural Science Foundation of China

References (45)

Show source-provided references
1. Snyk (2023, January 19). The State of Open Source Security Report 2020. Available online: https://go.snyk.io/SoOSS-Report-2020.html.
2. Snyk (2023, January 19). Addressing Cybersecurity Challenges in Open Source Software. Available online: https://snyk.io/reports/open-source-security/.
3. ARMIS (2023, January 19). Log4j Vulnerability. Available online: https://www.armis.com/log4j.
4. ARMIS (2023, January 19). The Long Tail Matters with Apache Log4j. Available online: https://www.armis.com/blog/he-long-tail-matters-with-apache-log4j/.
5. Github (2023, January 19). The State of the Octovers. Available online: https://octoverse.github.com/2019/.
6. Wang, X., Sun, K., Batcheller, A., and Jajodia, S. (2019, January 24–27). Detecting “0-day” vulnerability: An empirical study of secret security patch in OSS. Proceedings of the 2019 49th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), Portland, OR, USA.10.1109/DSN.2019.00056 ↗
7. SPI: Automated Identification of Security Patches via Commits
8. Sawadogo, A.D., Bissyandé, T.F., Moha, N., Allix, K., Klein, J., Li, L., and Traon, Y.L. (2020). Learning to catch security patches. arXiv.
9. Sabetta, A., and Bezzi, M. (2018, January 23–29). A practical approach to the automatic classification of security-relevant commits. Proceedings of the 2018 IEEE International conference on software maintenance and evolution (ICSME), Madrid, Spain. Available online: https://research.com/conference/icsme-2018.10.1109/ICSME.2018.00058 ↗
10. Commit2vec: Learning distributed representations of code changes
11. Hoang, T., Kang, H.J., Lo, D., and Lawall, J. (July, January 27). Cc2vec: Distributed representations of code changes. Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering, Seoul, Republic of Korea.
12. Hoang, T., Lawall, J., Oentaryo, R.J., Tian, Y., and Lo, D. (2019, January 25–31). PatchNet: A tool for deep patch classification. Proceedings of the 2019 IEEE/ACM 41st International Conference on Software Engineering: Companion Proceedings (ICSE-Companion), Montréal, QC, Canada. Available online: https://conf.researchr.org/home/icse-2019.10.1109/ICSE-Companion.2019.00044 ↗
13. Wang, X., Wang, S., Feng, P., Sun, K., Jajodia, S., Benchaaboun, S., and Geck, F. (December, January 29). PatchRNN: A Deep Learning-Based System for Security Patch Identification. Proceedings of the MILCOM 2021–2021 IEEE Military Communications Conference (MILCOM), San Diego, CA, USA.10.1109/MILCOM52596.2021.9652940 ↗
14. Machiry, A., Redini, N., Camellini, E., Kruegel, C., and Vigna, G. (2020, January 18–20). Spider: Enabling fast patch propagation in related software repositories. Proceedings of the 2020 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA.10.1109/SP40000.2020.00038 ↗
15. Tan, X., Zhang, Y., Mi, C., Cao, J., Sun, K., Lin, Y., and Yang, M. (2021, January 26–30). Locating the Security Patches for Disclosed OSS Vulnerabilities with Vulnerability-Commit Correlation Ranking. Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, Copenhagen, Denmark.10.1145/3460120.3484593 ↗
16. Wang, X., Wang, S., Feng, P., Sun, K., and Jajodia, S. (2021, January 21–24). Patchdb: A large-scale security patch dataset. Proceedings of the 2021 51st Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), Taipei, Taiwan.10.1109/DSN48987.2021.00030 ↗
17. code2vec: Learning distributed representations of code10.1145/3290353 ↗
18. Kumar, A., and Daumé, H. (July, January 28). A co-training approach for multi-view spectral clustering. Proceedings of the 28th International Conference on Machine Learning (ICML-11), Bellevue, DC, USA.
19. Deep low-rank subspace ensemble for multi-view clustering10.1016/j.ins.2019.01.018 ↗
20. Kernel independent component analysis
21. Kernel and nonlinear canonical correlation analysis10.1142/S012906570000034X ↗
22. Akaho, S. (2006). A kernel method for canonical correlation analysis. arXiv.
23. Socher, R., and Fei-Fei, L. (2010, January 13–18). Connecting modalities: Semi-supervised segmentation and annotation of images using unaligned text corpora. Proceedings of the 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, San Francisco, CA, USA.10.1109/CVPR.2010.5540112 ↗
24. Andrew, G., Arora, R., Bilmes, J., and Livescu, K. (2013, January 16–21). Deep canonical correlation analysis. Proceedings of the International conference on machine learning. PMLR, Atlanta, GA, USA.
25. Wang, W., Arora, R., Livescu, K., and Bilmes, J. (2015, January 6–11). On deep multi-view representation learning. Proceedings of the International Conference on Machine Learning, Lille, France.
26. Han, Z., Zhang, C., Fu, H., and Zhou, J.T. (2021). Trusted multi-view classification. arXiv.
27. Trusted Multi-View Classification with Dynamic Evidential Fusion10.1109/TPAMI.2022.3171983 ↗
28. Kull, M., Perello Nieto, M., Kängsepp, M., Silva Filho, T., Song, H., and Flach, P. (2019). Beyond temperature scaling: Obtaining well-calibrated multi-class probabilities with dirichlet calibration. Adv. Neural Inf. Process. Syst., 32.
29. Bai, Y., Mei, S., Wang, H., and Xiong, C. (2021, January 18–24). Don’t just blame over-parametrization for over-confidence: Theoretical analysis of calibration in binary classification. Proceedings of the International Conference on Machine Learning, Virtual.
30. A novel fuzzy soft set approach in decision making based on grey relational analysis and Dempster–Shafer theory of evidence10.1016/j.asoc.2015.03.015 ↗
31. The use of grey relational analysis in solving multiple attribute decision-making problems10.1016/j.cie.2007.12.002 ↗
32. Grey system and grey relational model10.1145/190690.190691 ↗
33. Supplier selection using combined analytical hierarchy process and grey relational analysis10.1108/17410380610688241 ↗
34. Jøsang, A. (2016). Subjective Logic, Springer.10.1007/978-3-319-42337-1 ↗
35. Subjective logic and arguing with evidence10.1016/j.artint.2007.04.006 ↗
36. Gao, W., Zhang, G., Chen, W., and Li, Y. (2009, January 21–22). A trust model based on subjective logic. Proceedings of the 2009 Fourth International Conference on Internet Computing for Science and Engineering, Washington, DC, USA.10.1109/ICICSE.2009.70 ↗
37. Jøsang, A. Generalising Bayes’ theorem in subjective logic. In Proceedings of the MFI 2016, Baden-Baden, Germany, 19–21 September 2016.10.1109/MFI.2016.7849531 ↗
38. Van Der Heijden, R.W., Kopp, H., and Kargl, F. (2018, January 10–13). Multi-source fusion operations in subjective logic. Proceedings of the 2018 21st International Conference on Information Fusion (FUSION), Cambridge, UK.10.23919/ICIF.2018.8455615 ↗
39. Sentz, K., and Ferson, S. (2023, January 19). Combination of Evidence in Dempster-Shafer Theory, Available online: https://www.osti.gov/biblio/800792.
40. Minka, T. (2023, January 19). Estimating a Dirichlet Distribution. Available online: url:https://www.semanticscholar.org/paper/Estimating-a-Dirichlet-distribution-Minka/51fec0515b11cabc2be4832eab43ca5f6ff387d1.
41. Lin, J. (2016). On the Dirichlet Distribution, Department of Mathematics and Statistics, Queens University.
42. Sensoy, M., Kaplan, L., and Kandemir, M. (2018). Evidential deep learning to quantify classification uncertainty. Adv. Neural Inf. Process. Syst., 31.
43. Joern (2023, January 19). Joern Documentation. Available online: https://docs.joern.io/home/.
44. Kapur, J.N., and Kesavan, H.K. (1992). Entropy Optimization Principles and their Applications, Springer.10.1007/978-94-011-2430-0_1 ↗
45. Akiba, T., Sano, S., Yanase, T., Ohta, T., and Koyama, M. (2019, January 4–8). Optuna: A next-generation hyperparameter optimization framework. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA.10.1145/3292500.3330701 ↗