A Novel Seed Generation Approach for Vulnerability Mining Based on Generative Adversarial Networks and Attention Mechanisms

Author:

Du Chunlai1,Xu Guizhi1,Guo Yanhui2ORCID,Wang Zhongru13,Yu Weiqiang4

Affiliation:

1. School of Information Science and Technology, North China University of Technology, Beijing 100144, China

2. Department of Computer Science, University of Illinois Springfield, Springfield, IL 62703, USA

3. Chinese Academy of Cyberspace Studies, Beijing 100048, China

4. Beijing DigApis Technology Co., Ltd., Beijing 100081, China

Abstract

Coverage-guided fuzzing has been widely applied in software error and security vulnerability detection. The fuzzing technique based on AFL (American Fuzzy Loop) is a common coverage-guided fuzzing method. The code coverage during AFL fuzzing is highly dependent on the quality of the initial seeds. If the selected seeds’ quality is poor, the AFL may not be able to detect program paths in a targeted manner, resulting in wasted time and computational resources. To solve the problems that the seed selection strategy in traditional AFL fuzzing cannot quickly and effectively generate high-quality seed sets and the mutated test cases cannot reach deeper paths and trigger security vulnerabilities, this paper proposes an attention mechanism-based generative adversarial network (GAN) seed generation approach for vulnerability mining, which can learn the characteristics and distribution of high-quality test samples during the testing process and generate high-quality seeds for fuzzing. The proposed method improves the GAN by introducing fully connected neural networks to balance the competitive adversarial process between discriminators and generators and incorporating attention mechanisms, greatly improving the quality of generated seeds. Our experimental results show that the seeds generated by the proposed method have significant improvements in coverage, triggering unique crashes and other indicators and improving the efficiency of AFL fuzzing.

Funder

National Natural Science Foundation of China

National Key Research and Development Plan of China

Publisher

MDPI AG

Reference20 articles.

1. Manes, V.J.M., Han, H.S., Han, C., Sang, K.C., and Woo, M. (2018). Fuzzing: Art, Science, and Engineering. arXiv.

2. Rebert, A., Cha, S.K., AVGERINOS, T., and Brumley, D. (2014, January 20–22). Optimizing seed selection for fuzzing. Proceedings of the 23rd USENIX Security Symposium (USENIX Security 14), San Diego, CA, USA.

3. Wang, J., Chen, B., Lei, W., and Yang, L. (2017, January 22–26). Skyfire: Data-driven seed generation for fuzzing. Proceedings of the 32nd IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA.

4. Vudenc: Vulnerability detection with deep learning on a natural codebase for python;Wartschinski;Inf. Softw. Technol.,2022

5. Zhang, L., Wang, J., and Wang, W. (2022). A novel smart contract vulnerability detection method based on information graph and ensemble learning. Sensors, 22.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3