Encrypted traffic classification (TC) methods must adapt to new protocols and extensions as well as to advancements in other machine learning fields. In this paper, we adopt a transfer learning setup best known from computer vision. We first pretrain an embedding model on a complex task with a large number of classes and then transfer it to seven established TC datasets. The pretraining task is recognition of SNI domains in encrypted QUIC traffic, which in itself is a challenge for network monitoring due to the growing adoption of TLS Encrypted Client Hello. Our training pipeline -- featuring a disjoint class setup, ArcFace loss function, and a modern deep learning architecture -- aims to produce universal embeddings applicable across tasks. A transfer method based on model fine-tuning surpassed SOTA performance on nine of ten downstream TC tasks, with an average improvement of 6.4%. Furthermore, a comparison with a baseline method using raw packet sequences revealed unexpected findings with potential implications for the broader TC field. We released the model architecture, trained weights, and codebase for transfer learning experiments.
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);Guangzhou University(广州大学)
密码协议被广泛用于保护用户的隐私和避免暴露隐私信息。QUIC(Quick UDP Internet Connections),包括最初由Google设计的版本(GQUIC)和IETF标准化的版本(IQUIC),作为传统HTTP的替代品,展示了其独特的传输特性:基于UDP进行加密资源传输,加速网页渲染。然而,现有的基于TCP的加密传输方案容易受到网站指纹(WFP)攻击,允许攻击者通过窃听传输信道来推断用户访问的网站。GQUIC和IQUIC能否有效抵御此类攻击值得研究。本文从流量分析的角度研究了GQUIC、IQUIC和HTTPS对WFP攻击的脆弱性。大量实验表明,在早期流量场景下,GQUIC、IQUIC和HTTPS中GQUIC最容易受到WFP攻击,而IQUIC比HTTPS更容易受到攻击,但在正常全流量场景下,三种协议的脆弱性相似。特征迁移分析表明,在正常的全业务场景下,协议间的大部分特征是可以迁移的。然而,结合潜在特征表示的定性分析,我们发现,在早期流量时,传输是低效的,因为GQUIC,IQUIC和HTTPS在早期流量上的流量分布的变化幅度显着不同。通过将一次WFP攻击升级为多次WFP Top-a攻击,我们发现在GQUIC和IQUIC上的攻击准确率分别达到95.4%和95.5%,而在HTTPS上的攻击准确率仅为60.7%。我们还证明了IQUIC的脆弱性只是轻微地依赖于网络环境。