To date, traffic obfuscation techniques have been widely adopted to protect network data privacy and security by obscuring the true patterns of traffic. Nevertheless, as the pre-trained models emerge, especially transformer-based classifiers, existing traffic obfuscation methods become increasingly vulnerable, as witnessed by current studies reporting the traffic classification accuracy up to 99\% or higher. To counter such high-performance transformer-based classification models, we in this paper propose a novel and effective \underline{adv}ersarial \underline{traffic}-generating approach (AdvTraffic\footnote{The code and data are available at: https://anonymous.4open.science/r/TrafficD-C461}). Our approach has two key innovations: (i) a pre-padding strategy is proposed to modify packets, which effectively overcomes the limitations of existing research against transformer-based models for network traffic classification; and (ii) a reinforcement learning model is employed to optimize network traffic perturbations, aiming to maximize adversarial effectiveness against transformer-based classification models. To the best of our knowledge, this is the first attempt to apply adversarial perturbation techniques to defend against transformer-based traffic classifiers. Furthermore, our method can be easily deployed into practical network environments. Finally, multi-faceted experiments are conducted across several real-world datasets, and the experimental results demonstrate that our proposed method can effectively undermine transformer-based classifiers, significantly reducing classification accuracy from 99\% to as low as 25.68\%.
How Private is Android's Private DNS Setting? Identifying Apps by Encrypted DNS Traffic
DNS over TLS(DoT)和DNS over HTTPS(DoH)承诺通过加密DNS消息来提高DNS的隐私和安全性,特别是当消息被填充到统一大小时。首先,为了证明推荐的填充方法的局限性,我们提出了Segram,这是一种新的应用程序指纹攻击,允许对手推断哪些移动应用程序在设备上执行。其次,我们使用10种不同的DoT/DoH解析器记录了118个Android应用程序的流量轨迹,以研究Segram在不同条件下的有效性。根据我们的结果,Segram在受控的封闭世界设置中识别应用程序的准确率高达72%。Segram的有效性与最先进的技术相当,但Segram需要更少的计算工作量。我们发布数据集和代码。第三,我们研究了以隐私为中心的DoT/DoH解决方案中填充的流行率,发现高达81%的样本未能启用填充。我们的研究结果表明,推荐的填充方法不如预期的有效,并且解析器操作员没有充分意识到这一功能。
Padding Ain't Enough: Assessing the Privacy Guarantees of Encrypted DNS
DNS over TLS(DoT)和DNS over HTTPS(DoH)加密DNS,通过向被动攻击者隐藏DNS解析来保护用户隐私。然而,过去的攻击表明,加密的DNS仍然对流量分析敏感。因此,RFC 8467建议在加密之前填充消息,这大大降低了加密流量的特性。在本文中,我们表明,填充单独是不足以对抗DNS流量分析。我们提出了一种新的流量分析方法,结合大小和时间信息来推断用户访问的网站纯粹基于加密和填充的DNS跟踪。为此,我们对DNS序列进行建模,以捕捉通常触发数十个DNS解析而不仅仅是单个DNS事务的网站的复杂性。一项基于Alexa前10 k网站的封闭世界评估显示,攻击者可以在80.2%的网站中对至少一半的测试跟踪进行去匿名化,甚至可以正确标记32.0%的网站的所有跟踪。我们的研究结果破坏了DoT/DoH中最先进的消息填充策略的隐私目标。我们的结论表明,成功的缓解这种攻击必须删除查询响应之间的到达时间间隔的熵。