arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.16947cs.CR
收藏

WGAN-AFL: 基于Wasserstein-GAN的种子生成增强模糊测试工具

WGAN-AFL: Seed Generation Augmented Fuzzer with Wasserstein-GAN

Liqun Yang, Chunan Li, Yongxin Qiu, Chaoren Wei, Jian Yang, Hongcheng Guo, Jinxin Ma, Zhoujun Li

AI总结:

针对模糊测试工具依赖高质量初始种子、低质量种子导致漏洞检测效率低的问题,提出采用WGAN架构训练GAN生成优质初始种子的WGAN-AFL,在代码覆盖率等指标上显著优于原始AFL。

摘要:

随着软件在国防、金融等领域变得至关重要,解决安全漏洞的重要性毋庸置疑,软件漏洞引发的安全问题不容忽视。模糊测试是一种自动化软件测试技术,可检测软件中的漏洞。但以往大多数模糊测试工具面临的难题是:模糊测试性能对初始输入种子高度敏感。若缺乏高质量初始输入种子,模糊测试工具可能会在程序路径探索上耗费大量资源,导致漏洞检测效率大幅下降。为解决该问题,我们提出WGAN-AFL。通过收集高质量测试用例,我们训练生成对抗网络(GAN)学习其特征,从而得到高质量初始输入种子。为克服GAN固有的模式崩溃、训练不稳定等缺陷,我们采用Wasserstein GAN(WGAN)架构进行训练,进一步提升生成种子的质量。实验结果表明,WGAN-AFL在代码覆盖率、新路径数量及漏洞发现能力上均显著优于原始AFL,证明了WGAN-AFL对种子质量的有效提升作用。

英文摘要:

The importance of addressing security vulnerabilities is indisputable, with software becoming crucial in sectors such as national defense and finance. Consequently, The security issues caused by software vulnerabilities cannot be ignored. Fuzz testing is an automated software testing technology that can detect vulnerabilities in the software. However, most previous fuzzers encounter challenges that fuzzing performance is sensitive to initial input seeds. In the absence of high-quality initial input seeds, fuzzers may expend significant resources on program path exploration, leading to a substantial decrease in the efficiency of vulnerability detection. To address this issue, we propose WGAN-AFL. By collecting high-quality testcases, we train a generative adversarial network (GAN) to learn their features, thereby obtaining high-quality initial input seeds. To overcome drawbacks like mode collapse and training instability inherent in GANs, we utilize the Wasserstein GAN (WGAN) architecture for training, further enhancing the quality of the generated seeds. Experimental results demonstrate that WGAN-AFL significantly outperforms the original AFL in terms of code coverage, new paths, and vulnerability discovery, demonstrating the effective enhancement of seed quality by WGAN-AFL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑