Automatic Field Extraction of Extended TLV for Binary Protocol Reverse Engineering
Authors:
- 1 July 2022
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-10
Abstract
Type Length Value (TLV) is one of the main structures commonly used in network protocols. A large number of proprietary protocols, whose specification is unknown to the public, run in the current Internet as well as domain-specific Internet of Things (IoT) applications. It is critical to infer the TLV fields within a packet because this information can help network administrators quickly identify abnormal traffic and potential attacks. Inferring TLV fields belongs to the general task of protocol reverse engineering and is particularly challenging for binary protocols, where the boundaries of TLV fields have many possible positions. Existing methods for reverse engineering binary protocols involve many parameters and only work for protocols strictly following the conventional TLV format. We extend the concept of TLV to accommodate a broader category of structural patterns in various binary protocols, such as TCP, IP, ModBus, and MQTT. We then design algorithms to automatically extract the extended - TLV fields from packets. Via a series of experiments over several protocols, we demonstrate that our algorithms can accurately and quickly identify the extended-TLV fields in all the tested protocols. Our approach can thus be deployed as a general method for automatically reverse engineering binary protocol format.Keywords
This publication has 10 references indexed in Scilit:
- AFLNET: A Greybox Fuzzer for Network Protocols2020
- State of the art of network protocol reverse engineering toolsJournal of Computer Virology and Hacking Techniques, 2017
- Bit‐oriented format extraction approach for automatic binary protocol reverse engineeringIET Communications, 2016
- CoAP: An Application Protocol for Billions of Tiny Internet NodesIEEE Internet Computing, 2012
- A Survey on Methods of Automatic Protocol Reverse Engineering2011
- Reverse Engineering of Protocols from Network Traces2011
- Network Discovery Protocol LLDP and LLDP-MEDInternational Journal of Computer Applications, 2010
- Polyglot2007
- Identification of common molecular subsequencesJournal of Molecular Biology, 1981
- A general method applicable to the search for similarities in the amino acid sequence of two proteinsJournal of Molecular Biology, 1970