Message Type Identification of Binary Network Protocols using Continuous Segment Similarity

Stephan Kleber, Rens Wouter van der Heijden, Frank Kargl
2/9/2020
cs.NIcs.CR

Official code: vs-uulm/nemesys (58 stars, Python, MIT, last commit 2026-05-29).

Abstract

Protocol reverse engineering based on traffic traces infers the behavior of unknown network protocols by analyzing observable network messages. To perform correct deduction of message semantics or behavior analysis, accurate message type identification is an essential first step.

Show full abstract

However, identifying message types is particularly difficult for binary protocols, whose structural features are hidden in their densely packed data representation. We leverage the intrinsic structural features of binary protocols and propose an accurate method for discriminating message types. Our approach uses a similarity measure with continuous value range by comparing feature vectors where vector elements correspond to the fields in a message, rather than discrete byte values. This enables a better recognition of structural patterns, which remain hidden when only exact value matches are considered. We combine Hirschberg alignment with DBSCAN as cluster algorithm to yield a novel inference mechanism. By applying novel autoconfiguration schemes, we do not require manually configured parameters for the analysis of an unknown protocol, as required by earlier approaches. Results of our evaluations show that our approach has considerable advantages in message type identification result quality and also execution performance over previous approaches.

View on arXivView PDF

Code Implementations(1)

vs-uulm/nemesysOfficial100%
MIT

NEtwork MEssage Syntax analysYS (WOOT 2018) and NEtwork MEssage TYpe identification by aLignment (INFOCOM 2020)

5813Python, ShellSep 19, 20186 months agoMIT

Similar Papers

Cite this paper

@article{kleber2020message,
  title  = {Message Type Identification of Binary Network Protocols using Continuous Segment Similarity},
  author = {Stephan Kleber and Rens Wouter van der Heijden and Frank Kargl},
  year   = {2020},
  eprint = {2002.03391},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.03391}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.03391.svg)](https://codeofpaper.com/paper/2002.03391)

Discussion