Unleashing the Power of LLM to Infer State Machine from the Protocol Implementation
Not on the map. Why?
Abstract (arXiv)
State machines are essential for enhancing protocol analysis to identify vulnerabilities. However, inferring state machines from network protocol implementations is challenging due to complex code syntax and semantics. Traditional dynamic analysis methods often miss critical state transitions due to limited coverage, while static analysis faces path explosion issues. To overcome these challenges, we introduce a novel state machine inference approach utilizing Large Language Models (LLMs), named ProtocolGPT. This method employs retrieval augmented generation technology to enhance a pre-trained model with specific knowledge from protocol implementations. Through effective prompt engineering, we accurately identify and infer state machines. To the best of our knowledge, our approach represents the first state machine inference that leverages the source code of protocol implementations. Our evaluation of six protocol implementations shows that our method achieves a precision of over 90%, outperforming the baselines by more than 30%. Furthermore, integrating our approach with protocol fuzzing improves coverage by more than 20% and uncovers two 0-day vulnerabilities compared to baseline methods.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). First posted on arXiv 1 May 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026RFCLLM: Evaluating LLMs' Reasoning Ability of Network Protocol State Machines
- 2025An Agentic Flow for Finite State Machine Extraction using Prompt Chaining
- 2025RFCAudit: An LLM Agent for Functional Bug Detection in Network Protocols
- 2025Can LLM Infer Risk Information From MCP Server System Logs?
- 2026Continuous Discovery of Vulnerabilities in LLM Serving Systems with Fuzzing
- 2025Automated Network Protocol Testing with LLM Agents
- 2023Advancing TTP Analysis: Harnessing the Power of Large Language Models with Retrieval Augmented Generation
- 2026Long-Horizon State Tracking in LLMs: Executing MD5 through a Deep Sequence of Dependent Tool Calls