Protocol syntax recovery via knowledge transfer

IF 4.6 2区 计算机科学 Q1 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE Computer Networks Pub Date : 2025-02-01 Epub Date: 2025-01-03 DOI:10.1016/j.comnet.2024.111022
Yanyang Zhao , Zhengxiong Luo , Kai Liang , Feifan Wu , Wenlong Zhang , Heyuan Shi , Yu Jiang
{"title":"Protocol syntax recovery via knowledge transfer","authors":"Yanyang Zhao ,&nbsp;Zhengxiong Luo ,&nbsp;Kai Liang ,&nbsp;Feifan Wu ,&nbsp;Wenlong Zhang ,&nbsp;Heyuan Shi ,&nbsp;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.6000,"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":"2025/1/3 0:00:00","PubModel":"Epub","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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
通过知识转移恢复协议语法
协议逆向工程在许多安全应用中起着关键作用。然而,目前的技术主要依赖于网络跟踪分析,这往往有语法推理的限制。同时,协议定期发展以改进功能和解决漏洞,以适应不断变化的需求和技术进步。这种演变为协议逆向工程积累了丰富的先验知识,但它在很大程度上仍未被开发和使用。本文提出了SynRe,一种协议语法逆向工程方法,旨在解决恢复未知消息格式的挑战。SynRe利用了通过协议演化积累的丰富的先验语法知识和二值序列固有的结构变化特征。该方法首先使用语言表示模型,该模型结合了已知消息的自然语言知识和先验语法知识,以学习协议语义和语法之间的映射关系。该方法利用位运算提取二进制消息序列固有的结构变化特征,便于消息语法的恢复。我们对五个广泛使用的协议家族的评估表明,SynRe取得了令人鼓舞的分数,显著优于最先进的方法,如Netzob+, Netzob, BinaryInferno, Netplier和FieldHunter。此外,SynRe实现了比进化前协议原始语法的琐碎应用更高的完美性,证明了知识转移的有效性。同时,将SynRe应用于不同多样性和大小的协议消息的实验表明,SynRe不受所涉及数据集的大小和多样性的显著影响。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Computer Networks
Computer Networks 工程技术-电信学
CiteScore
10.80
自引率
3.60%
发文量
434
审稿时长
8.6 months
期刊介绍: 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.
期刊最新文献
A multimodal and perturbation-aware learning approach for robust traffic classification DACC: Discerning and adaptive offloading for coarse-grained content-aware video analytics Preemption-aware online AoI scheduling over two-state Markov channels Secure by design: Merging network and security bootstrapping for IoT systems through NDN Privacy-preserving multi-agent bitrate allocation for 360° video streaming
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1