paper-with-me

Papers

Large Language Models for Validating Network Protocol Parsers

2025-04-18 · Mingwei Zheng, Danning Xie, Xiangyu Zhang

Network protocol parsers are essential for enabling correct and secure communication between devices. Bugs in these parsers can introduce critical vulnerabilities, including memory corruption, information leakage, and denial-of-service attacks. An intuitive way to assess parser correctness is to compare the implementation with its official protocol standard. However, this comparison is challenging because protocol standards are typically written in natural language, whereas implementations are in source code. Existing methods like model checking, fuzzing, and differential testing have been used to find parsing bugs, but they either require significant manual effort or ignore the protocol standards, limiting their ability to detect semantic violations. To enable more automated validation of parser implementations against protocol standards, we propose PARVAL, a multi-agent framework built on large language models (LLMs). PARVAL leverages the capabilities of LLMs to understand both natural language and code. It transforms both protocol standards and their implementations into a unified intermediate representation, referred to as format specifications, and performs a differential comparison to uncover inconsistencies. We evaluate PARVAL on the Bidirectional Forwarding Detection (BFD) protocol. Our experiments demonstrate that PARVAL successfully identifies inconsistencies between the implementation and its RFC standard, achieving a low false positive rate of 5.6%. PARVAL uncovers seven unique bugs, including five previously unknown issues.

📄 PDF Abstract BibTeX arXiv:2504.13515

Code (1)

zmw12306/PARVAL 공식 구현

Similar Papers 제목 키워드 기반

Validating Network Protocol Parsers with Traceable RFC Document Interpretation

2025-04-25 · Mingwei Zheng, Danning Xie, Qingkai Shi, Chengpeng Wang 외

Validating the correctness of network protocol implementations is highly challenging due to the oracle and traceability problems. The former determines when a protocol implementation can be considered buggy, especially w…

Hallucination

Dual-Agent Framework for Cross-Model Verified Translation of Natural-Language Protocols into Robotic Laboratory Platform

2026-06-18 · Hyeonna Choi, Jung Yup Kim, Hyuneui Lim, Seunggyu Jeon arxiv

Biological experiment protocols are written in natural language, whereas automation systems rely on predefined control commands, creating a semantic gap that limits autonomous execution. Microplate-based automatic experi…

Towards Auto-Modeling of Formal Verification for NextG Protocols: A Multimodal cross- and self-attention Large Language Model Approach

2023-12-28 · Jingda Yang, Ying Wang

This paper introduces Auto-modeling of Formal Verification with Real-world Prompting for 5G and NextG protocols (AVRE), a novel system designed for the formal verification of Next Generation (NextG) communication protoco…

Language ModelingLanguage ModellingLarge Language Model

Constrained Language Models Yield Few-Shot Semantic Parsers

2021-04-18 · EMNLP 2021 11 · Richard Shin, Christopher H. Lin, Sam Thomson, Charles Chen 외

We explore the use of large pretrained language models as few-shot semantic parsers. The goal in semantic parsing is to generate a structured meaning representation given a natural language input. However, language model…

Semantic Parsing

One model, two languages: training bilingual parsers with harmonized treebanks

2015-07-30 · ACL 2016 8 · David Vilares, Carlos Gómez-Rodríguez, Miguel A. Alonso

We introduce an approach to train lexicalized parsers using bilingual corpora obtained by merging harmonized treebanks of different languages, producing parsers that can analyze sentences in either of the learned languag…

Vocal Bursts Valence Prediction