RFCAudit: An LLM Agent for Functional Bug Detection in Network Protocols
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Functional correctness is critical for ensuring the reliability and security of network protocol implementations. Functional bugs, instances where implementations diverge from behaviors specified in RFC documents, can lead to severe consequences, including faulty routing, authentication bypasses, and service disruptions. Detecting these bugs requires deep semantic analysis across specification documents and source code, a task beyond the capabilities of traditional static analysis tools. This paper introduces RFCAudit, an autonomous agent that leverages large language models (LLMs) to detect functional bugs by checking conformance between network protocol implementations and their RFC specifications. Inspired by the human auditing procedure, RFCAudit comprises two key components: an indexing agent and a detection agent. The former hierarchically summarizes protocol code semantics, generating semantic indexes that enable the detection agent to narrow down the scanning scope. The latter employs demand-driven retrieval to iteratively collect additional relevant data structures and functions, eventually identifying potential inconsistencies with the RFC specifications effectively. We evaluate RFCAudit across six real-world network protocol implementations. RFCAudit identifies 47 functional bugs with 81.9% precision, of which 20 bugs have been confirmed or fixed by developers.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 13 of its 57 references that are in the map. First posted on arXiv 31 May 2025.
Builds on
13 of 57 references.
References · 13
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2024IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilitiescited by 103
- 2024CriticBench: Benchmarking LLMs for Critique-Correct Reasoningcited by 88
- 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 86
- 2025RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditingcited by 49
- 2025KNighter: Transforming Static Analysis with LLM-Synthesized Checkerscited by 24
- 2024LLMDFA: Analyzing Dataflow in Code with Large Language Modelscited by 22
- 2025Validating Network Protocol Parsers with Traceable RFC Document Interpretationcited by 7
- 2021Linear-time Temporal Logic guided Greybox Fuzzingcited by 5
- 2025Large Language Models for Validating Network Protocol Parserscited by 5
- 2023Lifting Network Protocol Implementation to Precise Format Specification with Security Applicationscited by 4
- 2024ROCAS: Root Cause Analysis of Autonomous Driving Accidents via Cyber-Physical Co-mutationcited by 3
1 more
- 2017The Meaning of Memory Safetycited by 1
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Taskscited by 24
- 2025TAI3: Testing Agent Integrity in Interpreting User Intentcited by 9
- 2025Synthesizing Precise Protocol Specs from Natural Language for Effective Test Generationcited by 2
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agentscited by 2
- 2025iPanda: An LLM-based Agent for Automated Conformance Testing of Communication Protocolscited by 0
- 2026RFCLLM: Evaluating LLMs' Reasoning Ability of Network Protocol State Machinescited by 0
- 2026QuSema: Detecting Silent Bugs in Quantum Libraries via Quantum-knowledge-enhanced Agentscited by 0
- 2026QuSema: Detecting Silent Bugs in Quantum Libraries via Quantum-knowledge-enhanced Agents7 Oct 2026
- 2026RFCLLM: Evaluating LLMs' Reasoning Ability of Network Protocol State Machines11 Sep 2026
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agents20 Jul 2026
- 2025Synthesizing Precise Protocol Specs from Natural Language for Effective Test Generation22 Nov 2025
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks3 Jul 2025
- 2025iPanda: An LLM-based Agent for Automated Conformance Testing of Communication Protocols1 Jul 2025
- 2025TAI3: Testing Agent Integrity in Interpreting User Intent9 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2026VIPER-MCP: Detecting and Exploiting Taint-Style Vulnerabilities in Model Context Protocol Servers
- 2025Automated Network Protocol Testing with LLM Agents
- 2025An Agentic Flow for Finite State Machine Extraction using Prompt Chaining
- 2026ProtoArena: Can AI Agents Discover and Exploit Real-World Cross-Component Protocol Vulnerabilities?
- 2026Agora: Toward Autonomous Bug Detection in Production-Level Consensus Protocols with LLM Agents
- 2024Unleashing the Power of LLM to Infer State Machine from the Protocol Implementation
- 2025MultiFuzz: A Dense Retrieval-based Multi-Agent System for Network Protocol Fuzzing
- 2026Who Tests the Testers? Systematic Enumeration and Coverage Audit of LLM Agent Tool Call Safety