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

更智能而非更费力的模糊测试:用GreenAFL实现更绿色的模糊测试

Fuzz Smarter, Not Harder: Towards Greener Fuzzing with GreenAFL

King’s College London(伦敦国王学院);The Federal Institute of Education, Science, and Technology of Alagoas(阿拉戈斯联邦教育、科学与技术学院)

Ayse Irmak Ercevik, Aidan Dakhama, Melane Navaratnarajah, Yazhuo Cao, Leo Fernandes

AI总结:

针对传统模糊测试能耗高、碳足迹大的问题,提出能源感知框架GreenAFL,通过功耗感知的语料库最小化与能源引导变异启发式,在保持覆盖率的同时降低能耗,实现更绿色的模糊测试。

摘要:

模糊测试已成为一种关键的基于搜索的软件测试技术,但持续的模糊测试活动会消耗大量计算资源并产生显著的碳足迹。现有的灰盒模糊测试方法(如AFL++)主要专注于覆盖率最大化,并未考虑探索不同执行路径的能源成本。本文提出了GreenAFL,这是一个具备能源感知能力的框架,将功耗纳入模糊测试启发式规则中,以在保持覆盖率的同时降低自动化测试的环境影响。GreenAFL对传统模糊测试工作流程引入了两项关键改进:一是具备能源感知的语料库最小化,在缩减初始语料库时会考量功耗;二是能源引导的启发式规则,将变异导向高覆盖率、低能耗的输入。我们开展了消融研究,对比了原始AFL++、基于能源的语料库最小化以及基于能源的启发式规则,以评估每个组件的单独作用。结果表明,只要使用我们提出的至少一项改进,就能实现最高的覆盖率和最低的能耗。

英文摘要:

Fuzzing has become a key search-based technique for software testing, but continuous fuzzing campaigns consume substantial computational resources and generate significant carbon footprints. Existing grey-box fuzzing approaches like AFL++ focus primarily on coverage maximisation, without considering the energy costs of exploring different execution paths. This paper presents GreenAFL, an energy-aware framework that incorporates power consumption into the fuzzing heuristics to reduce the environmental impact of automated testing whilst maintaining coverage. GreenAFL introduces two key modifications to traditional fuzzing workflows: energy-aware corpus minimisation considering power consumption when reducing initial corpora, and energy-guided heuristics that direct mutation towards high-coverage, low-energy inputs. We conduct an ablation study comparing vanilla AFL++, energy-based corpus minimisation, and energy-based heuristics to evaluate the individual contributions of each component. Results show that highest coverage, and lowest energy usage is achieved whenever at least one of our modifications is used.

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

↑