Yanyang Zhao , Zhengxiong Luo , Kai Liang , Feifan Wu , Wenlong Zhang , Heyuan Shi , Yu Jiang
{"title":"Protocol syntax recovery via knowledge transfer","authors":"Yanyang Zhao , Zhengxiong Luo , Kai Liang , Feifan Wu , Wenlong Zhang , Heyuan Shi , Yu Jiang","doi":"10.1016/j.comnet.2024.111022","DOIUrl":null,"url":null,"abstract":"<div><div>Protocol reverse engineering plays a critical role in many security applications. However, current technologies rely primarily on network trace analysis, which often has syntax-inference limitations. Meanwhile, protocols regularly evolve to improve functionality and address vulnerabilities, adapting to changing needs and technological advances. This evolution has accumulated a wealth of prior knowledge for protocol reverse engineering, but it remains largely untapped and unused.</div><div>This paper presents <span>SynRe</span>, a protocol syntax reverse engineering method designed to address the challenge of recovering unknown message formats. <span>SynRe</span> exploits the wealth of prior syntax knowledge accumulated through protocol evolution and the inherent structural change characteristics of binary sequences. The approach first uses a language representation model that incorporates natural language knowledge and prior syntax knowledge of known messages to learn the mapping relationship between protocol semantics and syntax. The method then extracts the inherent structural change characteristics of binary message sequences using bit operations, facilitating the recovery of message syntax.</div><div>Our evaluation on five widely used protocol families shows that <span>SynRe</span> achieves encouraging score, significantly outperforming the state-of-the-art methods like Netzob+, Netzob, BinaryInferno, Netplier, and FieldHunter. Furthermore, <span>SynRe</span> achieves higher perfection than the trivial application of the original grammar for the protocols before evolution, demonstrating the effectiveness of knowledge transfer. Meanwhile, the experiments of adapting <span>SynRe</span> on protocol message with different diversity and sizes demonstrate that <span>SynRe</span> is not significantly affected by the size or diversity of the datasets involved.</div></div>","PeriodicalId":50637,"journal":{"name":"Computer Networks","volume":"258 ","pages":"Article 111022"},"PeriodicalIF":4.4000,"publicationDate":"2025-02-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Networks","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1389128624008545","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0
Abstract
Protocol reverse engineering plays a critical role in many security applications. However, current technologies rely primarily on network trace analysis, which often has syntax-inference limitations. Meanwhile, protocols regularly evolve to improve functionality and address vulnerabilities, adapting to changing needs and technological advances. This evolution has accumulated a wealth of prior knowledge for protocol reverse engineering, but it remains largely untapped and unused.
This paper presents SynRe, a protocol syntax reverse engineering method designed to address the challenge of recovering unknown message formats. SynRe exploits the wealth of prior syntax knowledge accumulated through protocol evolution and the inherent structural change characteristics of binary sequences. The approach first uses a language representation model that incorporates natural language knowledge and prior syntax knowledge of known messages to learn the mapping relationship between protocol semantics and syntax. The method then extracts the inherent structural change characteristics of binary message sequences using bit operations, facilitating the recovery of message syntax.
Our evaluation on five widely used protocol families shows that SynRe achieves encouraging score, significantly outperforming the state-of-the-art methods like Netzob+, Netzob, BinaryInferno, Netplier, and FieldHunter. Furthermore, SynRe achieves higher perfection than the trivial application of the original grammar for the protocols before evolution, demonstrating the effectiveness of knowledge transfer. Meanwhile, the experiments of adapting SynRe on protocol message with different diversity and sizes demonstrate that SynRe is not significantly affected by the size or diversity of the datasets involved.
期刊介绍:
Computer Networks is an international, archival journal providing a publication vehicle for complete coverage of all topics of interest to those involved in the computer communications networking area. The audience includes researchers, managers and operators of networks as well as designers and implementors. The Editorial Board will consider any material for publication that is of interest to those groups.