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

APFuzz:朝着自动灰盒协议模糊测试的方向

APFuzz: Towards Automatic Greybox Protocol Fuzzing

Swinburne University of Technology(斯威本科技大学);CSIRO Data61(澳大利亚联邦科学和工业研究组织数据61)

Yu Wang, Yang Xiang, Chandra Thapa, Hajime Suzuki

AI总结:

APFuzz通过状态模型和消息模型的创新设计,提升灰盒协议模糊测试的智能性,通过静态动态分析和字段级变异操作实现更高效的模糊测试。

摘要:

灰盒协议模糊测试是一种用于状态ful协议实现的随机测试方法,其中输入是通过种子的变异生成的协议消息,输入空间的搜索由代码和状态的覆盖反馈驱动。状态模型和消息模型是通信协议的核心组成部分,对协议模糊测试也有显著影响。在本工作中,我们提出了APFuzz(自动灰盒协议模糊器),通过在状态模型和消息模型两个方面的创新设计,提高了灰盒协议模糊器的智能性。一方面,APFuzz采用静态和动态分析的两阶段过程,自动识别状态变量,然后在模糊过程中用于推断准确的状态模型。另一方面,APFuzz引入了针对二进制协议的字段级变异操作,利用大型语言模型提供的消息结构意识。我们在一个公开的协议模糊测试基准上进行了广泛的实验,将APFuzz与基线模糊器AFLNET以及几种最先进的灰盒协议模糊器进行了比较。

英文摘要:

Greybox protocol fuzzing is a random testing approach for stateful protocol implementations, where the input is protocol messages generated from mutations of seeds, and the search in the input space is driven by the feedback on coverage of both code and state. State model and message model are the core components of communication protocols, which also have significant impacts on protocol fuzzing. In this work, we propose APFuzz (Automatic greybox Protocol Fuzzer) with novel designs to increase the smartness of greybox protocol fuzzers from the perspectives of both the state model and the message model. On the one hand, APFuzz employs a two-stage process of static and dynamic analysis to automatically identify state variables, which are then used to infer an accurate state model during fuzzing. On the other hand, APFuzz introduces field-level mutation operations for binary protocols, leveraging message structure awareness enabled by Large Language Models. We conduct extensive experiments on a public protocol fuzzing benchmark, comparing APFuzz with the baseline fuzzer AFLNET as well as several state-of-the-art greybox protocol fuzzers.

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

↑