Inspector: A Semantics-Driven Approach to Automatic Protocol Reverse Engineering

Chen, Yige and Zang, Tianning and Zhang, Yongzheng and Zhou, Yuan and Yang, Peng and Wang, Yipeng (2022) Inspector: A Semantics-Driven Approach to Automatic Protocol Reverse Engineering. In: Collaborative Computing: Networking, Applications and Worksharing. 17th EAI International Conference, CollaborateCom 2021, Virtual Event, October 16-18, 2021, Proceedings, Part I.

[thumbnail of 77062.pdf] PDF
77062.pdf

Download (451kB)

Abstract

The automatic protocol reverse engineering for undocumented network protocols is important for many fundamental network security applications, such as intrusion prevention and detection. With the growing prevalence of binary protocols in the network communication to organize data in a terse format and ensure data integrity, the proven reverse approaches for ordinary text protocols face severe challenges in the compatibility. In this paper, we propose Inspector, an automatic protocol reverse engineering approach that exploits semantic fields to infer message formats from binary network traces. Inspector reasonably infers two semantic fields based on the binary content analysis of protocol messages to support clustering messages and message format inference. We evaluate the effectiveness of Inspector on two binary cryptographic protocols (TLS and SSH) and a binary unencrypted protocol MQTT by measuring the accuracy of message clustering and comparing the inferred message formats with the ground truths on a traffic dataset captured from a campus. Our experimental results show that Inspector accurately cluster messages with 100% cluster precision and 100% message recall for TLS, 90% cluster precision and 99.6% message recall for SSH, 100% cluster precision and 92.7% message recall for MQTT. Based on the accurate message clusters, Inspector can correctly infer the format of the messages in the cluster.

Item Type: Conference or Workshop Item (UNSPECIFIED)
Uncontrolled Keywords: Protocol reverse engineering, Protocol format inference, Binary protocol, Semantic fields
Date Deposited: 04 Mar 2026 19:44
Last Modified: 20 Nov 2026 12:17
URI: https://eprints.eai.eu/id/eprint/57718

Actions (login required)

View Item
View Item