Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

VulMCI : Code Splicing-based Pixel-row Oversampling for More Continuous Vulnerability Image Generation

Published 28 Feb 2024 in cs.CR | (2402.18189v2)

Abstract: In recent years, the rapid development of deep learning technology has brought new prospects to the field of vulnerability detection. Many vulnerability detection methods involve converting source code into images for detection, yet they often overlook the quality of the generated images. Due to the fact that vulnerability images lack clear and continuous contours, unlike images used in object detection, Convolutional Neural Networks (CNNs) tend to lose semantic information during the convolution and pooling processes. Therefore, this paper proposes a pixel row oversampling method based on code line concatenation to generate more continuous code features, addressing the issue of discontinuity in code image coloration.Building upon these contributions, we propose the vulnerability detection system VulMCI and conduct tests on the SARD and NVD datasets. Experimental results demonstrate that VulMCI outperforms seven state-of-the-art vulnerability detectors (namely Checkmarx, FlawFinder, RATS, VulDeePecker, SySeVR, VulCNN, and Devign). Compared to other image-based methods, VulMCI shows improvements in various metrics, including a 2.877\% increase in True Positive Rate (TPR), a 5.446\% increase in True Negative Rate (TNR), and a 5.91\% increase in Accuracy (ACC). On the NVD real-world dataset, VulMCI achieves an average accuracy of 5.162\%, confirming its value in practical vulnerability detection applications.

Authors (3)
Definition Search Book Streamline Icon: https://streamlinehq.com
References (55)
  1. N. I. of Standards and Technology. (2023) National vulnerability database (nvd). Accessed on Date of Access. [Online]. Available: https://nvd.nist.gov/
  2. J. Jang, M. Woo, and D. Brumley, “Redebug: finding unpatched code clones in entire os distributions,” ;login:: the magazine of USENIX & SAGE,;login:: the magazine of USENIX & SAGE, Jan 2012.
  3. S. Kim, S. Woo, H. Lee, and H. Oh, “Vuddy: A scalable approach for vulnerable code clone discovery,” in 2017 IEEE Symposium on Security and Privacy (SP), May 2017. [Online]. Available: http://dx.doi.org/10.1109/sp.2017.62
  4. J. Li and M. D. Ernst, “Cbcd: Cloned buggy code detector,” in 2012 34th International Conference on Software Engineering (ICSE), Jun 2012. [Online]. Available: http://dx.doi.org/10.1109/icse.2012.6227183
  5. Z. Li, D. Zou, S. Xu, H. Jin, H. Qi, and J. Hu, “Vulpecker: an automated vulnerability detection system based on code similarity analysis,” in Proceedings of the 32nd Annual Conference on Computer Security Applications, Dec 2016. [Online]. Available: http://dx.doi.org/10.1145/2991079.2991102
  6. N. H. Pham, T. T. Nguyen, H. A. Nguyen, and T. N. Nguyen, “Detection of recurring software vulnerabilities,” in Proceedings of the IEEE/ACM international conference on Automated software engineering, Sep 2010. [Online]. Available: http://dx.doi.org/10.1145/1858996.1859089
  7. FlawFinder. (2021) FlawFinder. [Online]. Available: http://www.dwheeler.com/flawfinder/
  8. Rough Audit Tool for Security. (2021) Rough Audit Tool for Security. [Online]. Available: https://code.google.com/archive/p/roughauditing-tool-for-security/
  9. Checkmarx. (2021) Checkmarx. [Online]. Available: https://www.checkmarx.com/
  10. Z. Li, D. Zou, S. Xu, X. Ou, H. Jin, S. Wang, Z. Deng, and Y. Zhong, “Vuldeepecker: A deep learning-based system for vulnerability detection,” in Proceedings 2018 Network and Distributed System Security Symposium, Jan 2018. [Online]. Available: http://dx.doi.org/10.14722/ndss.2018.23158
  11. R. Russell, L. Kim, L. Hamilton, T. Lazovich, J. Harer, O. Özdemir, P. Ellingwood, and M. McConley, “Automated vulnerability detection in source code using deep representation learning,” Cornell University - arXiv,Cornell University - arXiv, Jul 2018.
  12. X. Duan, J. Wu, S. Ji, Z. Rui, T. Luo, M. Yang, and Y. Wu, “Vulsniper: Focus your attention to shoot fine-grained vulnerabilities,” in Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, Aug 2019. [Online]. Available: http://dx.doi.org/10.24963/ijcai.2019/648
  13. Y. Zhou, S. Liu, J. Siow, X. Du, and Y. Liu, “Devign: Effective vulnerability identification by learning comprehensive program semantics via graph neural networks,” arXiv: Software Engineering,arXiv: Software Engineering, Sep 2019.
  14. Y. Wu, D. Zou, S. Dou, W. Yang, D. Xu, and H. Jin, “Vulcnn: An image-inspired scalable vulnerability detection system,” in Proceedings of the 44th International Conference on Software Engineering, 2022, pp. 2365–2376.
  15. Z. Li, D. Zou, S. Xu, H. Jin, Y. Zhu, and Z. Chen, “Sysevr: A framework for using deep learning to detect software vulnerabilities,” IEEE Transactions on Dependable and Secure Computing, p. 2244–2258, Jul 2022. [Online]. Available: http://dx.doi.org/10.1109/tdsc.2021.3051525
  16. X. Lv, T. Peng, J. Chen, J. Liu, X. Hu, R. He, M. Jiang, and W. Cao, “Bovdgfe: buffer overflow vulnerability detection based on graph feature extraction,” Applied Intelligence, p. 15204–15221, Jun 2023. [Online]. Available: http://dx.doi.org/10.1007/s10489-022-04214-8
  17. M. Pagliardini, P. Gupta, and M. Jaggi, “Unsupervised learning of sentence embeddings using compositional n-gram features,” in Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), Jan 2018. [Online]. Available: http://dx.doi.org/10.18653/v1/n18-1049
  18. F. Yamaguchi, N. Golde, D. Arp, and K. Rieck, “Modeling and discovering vulnerabilities with code property graphs,” in 2014 IEEE Symposium on Security and Privacy, May 2014. [Online]. Available: http://dx.doi.org/10.1109/sp.2014.44
  19. G. E. Dahl, T. N. Sainath, and G. E. Hinton, “Improving deep neural networks for lvcsr using rectified linear units and dropout,” in 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, May 2013. [Online]. Available: http://dx.doi.org/10.1109/icassp.2013.6639346
  20. D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980, 2014.
  21. (2018) Software assurance reference dataset. [Online]. Available: https://samate.nist.gov/SRD/index.php
  22. (2018) Common weakness enumeration. [Online]. Available: http://cwe.mitre.org/
  23. X.-C. Wen, Y. Chen, C. Gao, H. Zhang, J. M.Zhang, and Q. Liao, “Vulnerability detection with graph simplification and enhanced graph representation learning,” Feb 2023.
  24. H. Sajnani, V. Saini, J. Svajlenko, C. Roy, and C. Lopes, “Sourcerercc: scaling code clone detection to big-code,” International Conference on Software Engineering,International Conference on Software Engineering, May 2016.
  25. H. Perl, S. Dechand, M. Smith et al., “Vccfinder: Finding potential vulnerabilities in open-source projects to assist code audits,” in Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, Colorado, USA, 2015, pp. 426–437.
  26. T. Zimmermann, N. Nagappan, and L. Williams, “Searching for a needle in a haystack: Predicting security vulnerabilities for windows vista,” in Proceedings of the International Conference on Software Testing, Verification and Validation, 2010, pp. 421–428.
  27. P. Morrison, K. Herzig, B. Murphy, and L. Williams, “Challenges with applying vulnerability prediction models,” in Proceedings of the 2015 Symposium and Bootcamp on the Science of Security, 2015, pp. 1–9.
  28. A. Meneely, H. Srinivasan, A. Musa, A. R. Tejeda, M. Mokary, and B. Spates, “When a patch goes bad: Exploring the properties of vulnerability-contributing commits,” in 2013 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement, 2013, pp. 65–74.
  29. Y. Shin, A. Meneely, L. Williams, and J. A. Osborne, “Evaluating complexity, code churn, and developer activity metrics as indicators of software vulnerabilities,” IEEE Transactions on Software Engineering, vol. 37, no. 6, pp. 772–787, 2011.
  30. Y. Shin and L. Williams, “Can traditional fault prediction models be used for vulnerability prediction,” Empirical Software Engineering, vol. 18, no. 1, pp. 25–59, 2013.
  31. J. Walden, J. Stuckman, and R. Scandariato, “Predicting vulnerable components: Software metrics vs text mining,” in International Symposium on Software Reliability Engineering, 2014, pp. 23–33.
  32. S. Moshtari, A. Sami, and M. Azimi, “Using complexity metrics to improve software security,” Computer Fraud & Security, vol. 2013, no. 5, pp. 8–17, 2013.
  33. A. Younis, Y. Malaiya, C. Anderson, and I. Ray, “To fear or not to fear that is the question: Code characteristics of a vulnerable function with an existing exploit,” in Proceedings of the Sixth ACM Conference on Data and Application Security and Privacy, 2016, pp. 97–104.
  34. A. Bosu, J. C. Carver, M. Hafiz, P. Hilley, and D. Janni, “Identifying the characteristics of vulnerable code changes: An empirical study,” in Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, 2014, pp. 257–268.
  35. A. Meneely and L. Williams, “Strengthening the empirical analysis of the relationship between linus’ law and software security,” in Proceedings of the 2010 ACM-IEEE International Symposium on Empirical Software Engineering and Measurement, Bolzano-Bozen, Italy, 2010, pp. 1–10.
  36. G. Grieco, G. L. Grinblat, L. Uzal, S. Rawat, J. Feist, and L. Mounier, “Toward large-scale vulnerability discovery using machine learning,” in Proceedings of the Sixth ACM Conference on Data and Application Security and Privacy, New Orleans, Louisiana, USA, 2016, pp. 85–96.
  37. F. Wu, J. Wang, J. Liu, and W. Wang, “Vulnerability detection with deep learning,” in Proceedings of the International Conference on Computer and Communications, Chengdu, China, 2017, pp. 1298–1302.
  38. R. Russell, L. Kim, L. Hamilton et al., “Automated vulnerability detection in source code using deep representation learning,” in International Conference on Machine Learning and Applications (ICMLA), Orlando, Florida, USA, 2018, pp. 757–762.
  39. H. Yan, S. Luo, L. Pan, and Y. Zhang, “Han-bsvd: A hierarchical attention network for binary software vulnerability detection,” Computers & Security, vol. 108, p. 102286, 2021.
  40. X. Li, B. Feng, G. Li, T. Li, and M. He, “A vulnerability detection system based on fusion of assembly code and source code,” Security and Communication Networks, 2021, published online.
  41. J. Tian, W. Xing, and Z. Li, “Bvdetector: A program slice-based binary code vulnerability intelligent detection system,” Information and Software Technology, vol. 123, p. 106289, 2020.
  42. Z. Li, D. Zou, S. Xu, Z. Chen, Y. Zhu, and H. Jin, “Vuldeelocator: A deep learning-based fine-grained vulnerability detector,” IEEE Transactions on Dependable and Secure Computing, Apr 2021.
  43. Y. Li, S. Wang, T. T. Nguyen, and S. Van Nguyen, “Improving bug detection via context-based code representation learning and attention-based neural networks,” Proceedings of the ACM on Programming Languages, vol. 3, pp. 1–30, 2019.
  44. A. Tanwar, H. Manikandan, K. Sundaresan, P. Ganesan, S. K. Chandrasekaran, and S. Ravi, “Multi-context attention fusion neural network for software vulnerability identification,” arXiv preprint arXiv:2104.09225, 2021.
  45. H. Zhang, Y. Bi, H. Guo, W. Sun, and J. Li, “Isvsf: Intelligent vulnerability detection against java via sentence-level pattern exploring,” IEEE Systems Journal, pp. 1–12, 2021.
  46. S. Wang, T. Liu, and L. Tan, “Automatically learning semantic features for defect prediction,” in IEEE/ACM 38th International Conference on Software Engineering, Austin, Texas, USA, 2016, pp. 297–308.
  47. G. Lin, J. Zhang, W. Luo, and et al., “Poster: Vulnerability discovery with function representation learning from unlabeled projects,” in Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, Texas, USA, 2017, pp. 2539–2541.
  48. X. Duan, J. Wu, S. Ji, Z. Rui, T. Luo, M. Yang, and Y. Wu, “Vulsniper: Focus your attention to shoot fine-grained vulnerabilities,” in International Joint Conferences on Artificial Intelligence, Macao, China, 2019, pp. 4665–4671.
  49. X. Duan, J.-Z. Wu, T.-y. Luo, and et al., “Vulnerability mining method based on code property graph and attention bilstm,” Journal of Software, vol. 31, no. 11, pp. 3404–3420, 2020.
  50. D. Cao, J. Huang, X. Zhang, and X. Liu, “Ftclnet: Convolutional lstm with fourier transform for vulnerability detection,” in International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), Guangzhou, China, 2020, pp. 539–546.
  51. M. Li, C. Li, S. Li, Y. Wu, B. Zhang, and Y. Wen, “Acgvd: Vulnerability detection based on comprehensive graph via graph neural network with attention,” in International Conference on Information and Communications Security, Chongqing, China, 2021, pp. 243–259.
  52. X. Cheng, H. Wang, J. Hua, G. Xu, and Y. Sui, “Deepwukong: Statically detecting software vulnerabilities using deep graph neural network,” ACM Transactions on Software Engineering and Methodology (TOSEM), vol. 30, no. 3, pp. 1–33, 2021.
  53. W. Zheng, Y. Jiang, and X. Su, “Vulspg: Vulnerability detection based on slice property graph representation learning,” in International Symposium on Software Reliability Engineering, Wuhan, China, 2021.
  54. H. Wang, G. Ye, Z. Tang, and et al., “Combining graph-based learning with automated data collection for code vulnerability detection,” IEEE Transactions on Information Forensics and Security, 2020.
  55. V. Okun, A. Delaitre, and P. E. Black, “Report on the static analysis tool exposition (sate) iv,” in NIST Special Publication, vol. 500, Jan 2013, p. 297.
Citations (6)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.