用于检测网络上基于CNAME伪装跟踪的机器学习方法
A machine learning approach for detecting CNAME cloaking-based tracking on the Web
摘要:
已经设计了各种浏览器内隐私保护技术来保护终端用户免受第三方跟踪。在与这些反措施的军备竞赛中,跟踪提供商开发了一种名为CNAME伪装的新技术,以避免浏览器阻止第三方Cookie和请求的问题。为了检测这种跟踪技术,浏览器扩展需要按需DNS查找API。但是,此功能仅由Firefox浏览器支持。在本文中,我们提出了一个监督机器学习为基础的方法来检测CNAME伪装为基础的跟踪,而无需按需DNS查找。我们的目标是检测链接到CNAME伪装相关跟踪的网站和请求。我们抓取目标站点列表,并存储所有HTTP/HTTPS请求及其属性。然后,通过查找子域的CNAME记录,并根据已知的跟踪过滤器列表进行匹配,自动标记所有实例。在提取特征后,我们建立了一个监督分类模型来区分网站和请求相关的CNAME伪装跟踪。我们的评估表明,所提出的方法优于著名的跟踪过滤器列表:F1分数为0.790的网站和0.885的请求。通过分析特征排列重要性,证明了脚本数量和XMLHttpRequests的比例对检测站点具有区分性,URL请求的长度有助于检测请求。最后,我们通过使用2018年数据集来训练模型来分析概念漂移,并在2020年数据集上获得合理的性能,以使用基于CNAME的伪装跟踪来检测站点和请求。
英文摘要:
Various in-browser privacy protection techniques have been designed to protect end-users from third-party tracking. In an arms race against these counter-measures, the tracking providers developed a new technique called CNAME cloaking based tracking to avoid issues with browsers that block third-party cookies and requests. To detect this tracking technique, browser extensions require on-demand DNS lookup APIs. This feature is however only supported by the Firefox browser. In this paper, we propose a supervised machine learning-based method to detect CNAME cloaking-based tracking without the on-demand DNS lookup. Our goal is to detect both sites and requests linked to CNAME cloaking-related tracking. We crawl a list of target sites and store all HTTP/HTTPS requests with their attributes. Then we label all instances automatically by looking up CNAME record of subdomain, and applying wildcard matching based on well-known tracking filter lists. After extracting features, we build a supervised classification model to distinguish site and request related to CNAME cloaking-based tracking. Our evaluation shows that the proposed approach outperforms well-known tracking filter lists: F1 scores of 0.790 for sites and 0.885 for requests. By analyzing the feature permutation importance, we demonstrate that the number of scripts and the proportion of XMLHttpRequests are discriminative for detecting sites, and the length of URL request is helpful in detecting requests. Finally, we analyze concept drift by using the 2018 dataset to train a model and obtain a reasonable performance on the 2020 dataset for detecting both sites and requests using CNAME cloaking-based tracking.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。