Read Between the Lines: Detecting Tracking JavaScript with Bytecode Classification
Mohammad Ghasemisharif, Jason Polakis
摘要
Browsers and extensions that aim to block online ads and tracking scripts predominantly rely on rules from filter lists for determining which resource requests must be blocked. These filter lists are often manually curated by a community of online users. However, due to the arms race between blockers and ad-supported websites, these rules must continuously get updated so as to adapt to novel bypassing techniques and modified requests, thus rendering the detection and rule-generation process cumbersome and reactive (which can result in major delays between propagation and detection). In this paper, we address the detection problem by proposing an automated pipeline that detects tracking and advertisement JavaScript resources with high accuracy, designed to incur minimal false positives and overhead. Our method models script detection as a text classification problem, where JavaScript resources are documents containing bytecode sequences. Since bytecode is directly obtained from the JavaScript interpreter, our technique is resilient against commonly used bypassing methods, such as URL randomization or code obfuscation. We experiment with both deep learning and traditional ML-based approaches for bytecode classification and show that our approach identifies ad/tracking scripts with 97.08% accuracy, significantly outperforming cutting-edge systems in terms of both precision and the level of required features. Our experimental analysis further highlights our system's capabilities, by demonstrating how it can augment filter lists by uncovering ad/tracking scripts that are currently unknown, as well as proactively detecting scripts that have been erroneously added by list curators.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted Advertising 引用了 Online Tracking: A 1-million-site Measurement and Analysis
- Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted Advertising 引用了 AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
- Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted Advertising 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
- Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors 引用了 Online Tracking: A 1-million-site Measurement and Analysis
- Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors 引用了 AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
- SoK: After Decades of Web Tracker Detection, What's Next? 引用了 Online Tracking: A 1-million-site Measurement and Analysis
- SoK: After Decades of Web Tracker Detection, What's Next? 引用了 Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors
- SoK: After Decades of Web Tracker Detection, What's Next? 引用了 AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
- SoK: After Decades of Web Tracker Detection, What's Next? 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
- Byte by Byte: Unmasking Browser Fingerprinting at the Function Level using V8 Bytecode Transformers 引用了 Online Tracking: A 1-million-site Measurement and Analysis
- Byte by Byte: Unmasking Browser Fingerprinting at the Function Level using V8 Bytecode Transformers 引用了 Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors
- Byte by Byte: Unmasking Browser Fingerprinting at the Function Level using V8 Bytecode Transformers 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
- AdGraph: A Graph-Based Approach to Ad and Tracker Blocking 引用了 Online Tracking: A 1-million-site Measurement and Analysis
- Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation 引用了 Online Tracking: A 1-million-site Measurement and Analysis
引用它的顶会 Paper3
- Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted AdvertisingGiuseppe Calderonio, Mir Masood Ali, Jason PolakisUSENIX Security 2024 · 8 次引用
- SoK: After Decades of Web Tracker Detection, What's Next?Wolf Rieder, Philip Raschke, Thomas Cory, Christian René Sechting 等S&P 2026 · 1 次引用
- Byte by Byte: Unmasking Browser Fingerprinting at the Function Level using V8 Bytecode TransformersPouneh Nikkhah Bahrami, Dylan Cutler, Igor BilogrevicCCS 2025
它引用的 Paper15
- Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski 等NDSS 2019 · 826 次引用
- Online Tracking: A 1-million-site Measurement and AnalysisSteven Englehardt, Arvind NarayananCCS 2016 · 798 次引用
- Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting BehaviorsUmar Iqbal, Steven Englehardt, Zubair ShafiqS&P 2021 · 143 次引用
- AdGraph: A Graph-Based Approach to Ad and Tracker BlockingUmar Iqbal, Peter Snyder, Shitong Zhu, Benjamin Livshits 等S&P 2020 · 112 次引用
- The Cracked Cookie Jar: HTTP Cookie Hijacking and the Exposure of Private InformationSuphannee Sivakorn, Iasonas Polakis, Angelos D. KeromytisS&P 2016 · 86 次引用
相关 Paper
- AdVersa: Adversarially-Robust and Practical Ad and Tracker Blocking in the WildChaejin Lim, Kiho Lee, Beomjin Jin, Heewon Baek 等WWW 2026
- AdCPG: Classifying JavaScript Code Property Graphs with Explanations for Ad and Tracker BlockingChangmin Lee, Sooel SonCCS 2023 · 7 次引用
- ASTrack: Automatic Detection and Removal of Web Tracking Code with Minimal Functionality LossIsmael Castell-Uroz, Kensuke Fukuda, Pere Barlet-RosINFOCOM 2023 · 8 次引用
- Blocking Tracking JavaScript at the Function GranularityAbdul Haddi Amjad, Shaoor Munir, Zubair Shafiq, Muhammad Ali GulzarCCS 2024 · 3 次引用
- Khaleesi: Breaker of Advertising and Tracking Request ChainsUmar Iqbal, Charlie Wolfe, Charles Nguyen, Steven Englehardt 等USENIX Security 2022
