arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.05989cs.CRcs.CY
收藏

SemFuzz:一种面向网络协议实现的语义感知模糊测试框架

SemFuzz: A Semantics-Aware Fuzzing Framework for Network Protocol Implementations

Tianjin University(天津大学);QI-ANXIN Codesafe Team(奇安信代码卫士团队);Jiangxi Normal University(江西师范大学)

Yanbang Sun, Quan Luo, Yuelin Wang, Qian Chen, Benjin Liu, Ruiqi Chen, Qing Huang, Xiaohong Li, Junjie Wang

AI总结:

SemFuzz通过语义感知模糊测试框架,利用大语言模型提取协议语义规则,生成违反规则的测试用例,有效检测网络协议中的深层次语义漏洞。

摘要:

网络协议是现代通信的基础,但其实现中常常存在语义漏洞,这源于对规范语义理解不足。现有的灰盒和黑盒测试方法缺乏对协议的语义建模,使得难以精确表达测试意图并覆盖边界条件。此外,它们通常依赖于粗粒度的或acles,如崩溃,这对于识别深层次的语义漏洞是不够的。为了解决这些限制,我们提出了一个语义感知的模糊测试框架SemFuzz。该框架利用大语言模型从RFC文档中提取结构化的语义规则,并生成故意违反这些规则的测试用例以编码特定的测试意图。然后,通过将观察到的响应与预期的响应进行比较来检测深层次的语义漏洞。在对七个广泛部署的协议实现进行评估时,SemFuzz发现了十六个潜在漏洞,其中十个已被确认。在确认的漏洞中,五个此前未知,四个已被分配CVE。这些结果证明了SemFuzz在检测语义漏洞方面的有效性。

英文摘要:

Network protocols are the foundation of modern communication, yet their implementations often contain semantic vulnerabilities stemming from inadequate understanding of specification semantics. Existing gray-box and black-box testing approaches lack semantic modeling of protocols, making it difficult to precisely express testing intent and cover boundary conditions. Moreover, they typically rely on coarse-grained oracles such as crashes, which are inadequate for identifying deep semantic vulnerabilities. To address these limitations, we present a semantics-aware fuzzing framework, SemFuzz. The framework leverages large language models to extract structured semantic rules from RFC documents and generates test cases that intentionally violate these rules to encode specific testing intents. It then detects deep semantic vulnerabilities by comparing the observed responses with the expected ones. Evaluation on seven widely deployed protocol implementations shows that SemFuzz identified sixteen potential vulnerabilities, ten of which have been confirmed. Among the confirmed vulnerabilities, five were previously unknown and four have been assigned CVEs. These results demonstrate the effectiveness of SemFuzz in detecting semantic vulnerabilities.

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

↑