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

重叠的IPv4、IPv6与TCP数据:借助PYROLYSE探究网络栈和NIDS中的错误、测试用例上下文及多重重叠

Overlapping IPv4, IPv6, and TCP data: exploring errors, test case context and multiple overlaps inside network stacks and NIDSes with PYROLYSE

Lucas Aubard, Johan Mazel, Gilles Guette, Pierre Chifflier

AI总结:

该研究提出审计工具PYROLYSE测试IP/TCP重组策略,发现策略多样性超预期、存在8个安全错误且成对测试策略不适用于多块重叠场景,为网络安全设备策略优化提供依据。

摘要:

IP分片与TCP分段可将大型数据包拆分为更小的数据包,以便在容量有限的网络链路上传输。这些机制允许数据包与重叠部分的不同数据产生完全或部分重叠。IPv4、IPv6和TCP的重组策略(即取决于重叠类型的数据块偏好)在不同协议实现中存在差异。这会引发安全漏洞,因为入侵检测系统(NIDS)对数据包的解析可能与被监控的主机操作系统不同。部分NIDS(如Suricata或Snort)可配置策略以匹配被监控操作系统的策略。\n本文的第一项贡献是PYROLYSE,这是一款审计工具,可全面测试并描述各类IP和TCP实现类型的重组策略,确保各实现能无错误地重组重叠数据块序列。第二项贡献是对PYROLYSE生成的测试结果进行分析。首先,我们发现重组策略的多样性远超此前认知:通过测试n≤3个测试用例数据块的所有重叠可能性及不同测试场景,在23个被测实现中,根据协议不同,我们观测到14到20种不同的行为表现。其次,我们报告了8个错误,影响1个操作系统、2个NIDS和2个嵌入式网络栈,这些错误可能导致NIDS模式匹配绕过或拒绝服务(DoS)攻击等安全问题,其中一个NIDS错误已被分配CVE编号。最后,我们表明通过数据块对测试得到的IP和TCP实现策略,通常与观测到的三块数据重组结果不一致。因此,与当前做法相反,当重叠数据块数量超过两个时,NIDS或其他网络流量分析工具不应采用n=2的成对策略。

英文摘要:

IP fragmentation and TCP segmentation allow for splitting large data packets into smaller ones, e.g., for transmission across network links of limited capacity. These mechanisms permit complete or partial overlaps with different data on the overlapping portions. IPv4, IPv6, and TCP reassembly policies, i.e., the data chunk preferences that depend on the overlap types, differ across protocol implementations. This leads to vulnerabilities, as NIDSes may interpret the packet differently from the monitored host OSes. Some NIDSes, such as Suricata or Snort, can be configured so that their policies are consistent with the monitored OSes. The first contribution of the paper is PYROLYSE, an audit tool that exhaustively tests and describes the reassembly policies of various IP and TCP implementation types. This tool ensures that implementations reassemble overlapping chunk sequences without errors. The second contribution is the analysis of PYROLYSE artifacts. We first show that the reassembly policies are much more diverse than previously thought. Indeed, by testing all the overlap possibilities for n <= 3 test case chunks and different testing scenarios, we observe from 14 to 20 different behaviors out of 23 tested implementations depending on the protocol. Second, we report eight errors impacting one OS, two NIDSes, and two embedded stacks, which can lead to security issues such as NIDS pattern-matching bypass or DoS attacks. A CVE was assigned to a NIDS error. Finally, we show that implemented IP and TCP policies obtained through chunk pair testing are usually inconsistent with the observed triplet reassemblies. Therefore, contrarily to what they currently do, NIDSes or other network traffic analysis tools should not apply n = 2 pair policies when the number of overlapping chunks exceeds two.

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

↑