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

揭示RFC更新与TCP/IP实现之间的差距:LLM辅助的中间表示差异检查

Uncovering Gaps Between RFC Updates and TCP/IP Implementations: LLM-Facilitated Differential Checks on Intermediate Representations

Peking University(北京大学);Tsinghua University(清华大学);Zhongguancun Lab(中关村实验室)

Yifan Wu, Xuewei Feng, Yuxiang Yang, Ke Xu

AI总结:

针对TCP/IP协议栈实现与RFC标准间的不一致检测难题,提出基于LLM和差异模型的自动化分析框架,通过协议迭代关系建模与内核代码增量分析,有效识别相关潜在安全漏洞。

摘要:

作为互联网基础设施的核心,TCP/IP协议栈承担着网络数据传输的任务。但由于协议的复杂性以及跨层交互的不确定性,协议栈代码的实现与RFC标准之间往往存在不一致性。这种不一致不仅可能导致协议功能出现差异,还可能引发严重的安全漏洞。当前,随着协议栈功能的不断扩展和RFC文档的快速迭代,检测并修复这些不一致性变得愈发重要。随着大语言模型的兴起,研究人员开始探索如何通过这类模型从RFC文档中提取协议规范,相关内容包括协议栈建模、状态机提取、文本歧义分析等。但现有方法依赖预定义模式或基于规则的方案,无法在不同协议规范间通用。自动化、可扩展地检测这些不一致性仍然是一项重大挑战。在本研究中,我们提出了一个基于LLM和差异模型的自动化分析框架。通过对协议的迭代关系进行建模,并基于RFC标准的迭代更新关系,对不同版本的内核代码实现开展增量代码功能分析,以自动执行代码检测和漏洞分析。我们开展了广泛的评估以验证该框架的有效性,证明其在识别由RFC与代码不一致引发的潜在漏洞方面具备效用。

英文摘要:

As the core of the Internet infrastructure, the TCP/IP protocol stack undertakes the task of network data transmission. However, due to the complexity of the protocol and the uncertainty of cross-layer interaction, there are often inconsistencies between the implementation of the protocol stack code and the RFC standard. This inconsistency may not only lead to differences in protocol functions but also cause serious security vulnerabilities. At present, with the continuous expansion of protocol stack functions and the rapid iteration of RFC documents, it is increasingly important to detect and fix these inconsistencies. With the rise of large language models, researchers have begun to explore how to extract protocol specifications from RFC documents through these models, including protocol stack modeling, state machine extraction, text ambiguity analysis, and other related content. However, existing methods rely on predefined patterns or rule-based approaches that fail to generalize across different protocol specifications. Automated and scalable detection of these inconsistencies remains a significant challenge. In this study, we propose an automated analysis framework based on LLM and differential models. By modeling the iterative relationship of the protocol and based on the iterative update relationship of the RFC standard, we perform incremental code function analysis on different versions of kernel code implementations to automatically perform code detection and vulnerability analysis. We conduct extensive evaluations to validate the effectiveness of our framework, demonstrating its effectiveness in identifying potential vulnerabilities caused by RFC code inconsistencies.

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

↑