Active inference of protocol state machines from incomplete message domains

Maohua GUO , Yuefei ZHU , Jinlong FEI

Eng Inform Technol Electron Eng ›› 2025, Vol. 26 ›› Issue (12) : 2529 -2549.

PDF (3033KB)
Eng Inform Technol Electron Eng ›› 2025, Vol. 26 ›› Issue (12) :2529 -2549. DOI: 10.1631/FITEE.2400487
Research Article

Active inference of protocol state machines from incomplete message domains

Author information +
History +
PDF (3033KB)

Abstract

Inferring protocol state machines from observable information presents a significant challenge in protocol reverse engineering (PRE), especially when passively collected traffic suffers from message loss, resulting in an incomplete protocol state space. This paper introduces an innovative method for actively inferring protocol state machines using the minimally adequate teacher (MAT) framework. By incorporating session completion and deterministic mutation techniques, this method broadens the range of protocol messages, thereby constructing a more comprehensive input space for the protocol state machine from an incomplete message domain. Additionally, the efficiency of active inference is improved through several optimizations for the LM+ algorithm, including traffic deduplication, the construction of an expanded prefix tree acceptor (EPTA), query optimization based on responses, and random counterexample generation. Experiments on the real-time streaming protocol (RTSP) and simple mail transfer protocol (SMTP), which use Live555 and Exim implementations across multiple versions, demonstrate that this method yields more comprehensive protocol state machines with enhanced execution efficiency. Compared to the LM+ algorithm implemented by AALpy, Act_Infer achieves an average reduction of approximately 40.7% in execution time and significantly reduces the number of connections and interactions by approximately 28.6% and 46.6%, respectively.

Keywords

Protocol reverse engineering (PRE) / Protocol state machine / Active inference / Incomplete message domains / Input space

Cite this article

Download citation ▾
Maohua GUO, Yuefei ZHU, Jinlong FEI. Active inference of protocol state machines from incomplete message domains. Eng Inform Technol Electron Eng, 2025, 26(12): 2529-2549 DOI:10.1631/FITEE.2400487

登录浏览全文

4963

注册一个新账户 忘记密码

References

RIGHTS & PERMISSIONS

Zhejiang University Press

AI Summary AI Mindmap
PDF (3033KB)

107

Accesses

0

Citation

Detail

Sections
Recommended

AI思维导图

/