Lune

CCS2024顶会

Blocking Tracking JavaScript at the Function Granularity

Abdul Haddi Amjad, Shaoor Munir, Zubair Shafiq, Muhammad Ali Gulzar

摘要

Modern websites extensively rely on JavaScript to implement both functionality and tracking. Existing privacy-enhancing content blocking tools struggle against mixed scripts, which simultaneously implement both functionality and tracking, because blocking the script would break functionality and not blocking it would allow tracking. We propose NoT.js, a fine-grained JavaScript blocking tool that operates at the function-level granularity. NoT.js's strengths lie in analyzing the dynamic execution context, including the call stack and calling context of each JavaScript function, and then encoding this context to build a rich graph representation. NoT.js trains a supervised machine learning classifier on a webpage's graph representation to first detect tracking at the JavaScript function-level and then automatically generate surrogate scripts that preserve functionality while removing tracking. Our evaluation of NoT.js on the top-10K websites demonstrates that it achieves high precision (94%) and recall (98%) in detecting tracking JavaScript functions, outperforming the state-of-the-art while being robust against offthe-shelf JavaScript obfuscation. Fine-grained detection of tracking functions allows NoT.js to automatically generate surrogate scripts that remove tracking JavaScript functions without causing major breakage. Our deployment of NoT.js shows that mixed scripts are present on 62.3% of the top-10K websites, with 70.6% of the mixed scripts being third-party that engage in tracking activities such as cookie ghostwriting. We share a sample of the tracking functions detected by NoT.js within mixed scripts-not currently on filter lists-with filter list authors, who confirm that these scripts are not blocked due to potential functionality breakage, despite being known to implement tracking.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Journey to the Center of the Cookie Ecosystem: Unraveling Actors' Roles and Relationships 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
  • SoK: After Decades of Web Tracker Detection, What's Next? 引用了 Detecting Filter List Evasion with Event-Loop-Turn Granularity JavaScript Signatures
  • 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
  • Detecting Filter List Evasion with Event-Loop-Turn Granularity JavaScript Signatures 引用了 AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
  • Byte by Byte: Unmasking Browser Fingerprinting at the Function Level using V8 Bytecode Transformers 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
  • Cookie Swap Party: Abusing First-Party Cookies for Web Tracking 引用了 Journey to the Center of the Cookie Ecosystem: Unraveling Actors' Roles and Relationships
  • Users Pay Twice: The Hidden Energy Cost of Web Advertising 引用了 Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. SoK: After Decades of Web Tracker Detection, What's Next?Wolf Rieder, Philip Raschke, Thomas Cory, Christian René Sechting 等S&P 2026 · 1 次引用
  2. Accessibility Issues in Ad-Driven Web ApplicationsAbdul Haddi Amjad, Muhammad Danish, Bless Jah, Muhammad Ali GulzarICSE 2025 · 1 次引用
  3. Byte by Byte: Unmasking Browser Fingerprinting at the Function Level using V8 Bytecode TransformersPouneh Nikkhah Bahrami, Dylan Cutler, Igor BilogrevicCCS 2025
  4. Users Pay Twice: The Hidden Energy Cost of Web AdvertisingSamuel Pélissier, Naif Mehanna, Sterenn Roux, Quentin Perez 等WWW 2026

它引用的 Paper11

  1. Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski 等NDSS 2019 · 826 次引用
  2. AdGraph: A Graph-Based Approach to Ad and Tracker BlockingUmar Iqbal, Peter Snyder, Shitong Zhu, Benjamin Livshits 等S&P 2020 · 112 次引用
  3. Cookie Swap Party: Abusing First-Party Cookies for Web TrackingQuan Chen, Panagiotis Ilia, Michalis Polychronakis, Alexandros KapravelosWWW 2021 · 57 次引用
  4. Journey to the Center of the Cookie Ecosystem: Unraveling Actors' Roles and RelationshipsIskander Sánchez-Rola, Matteo Dell'Amico, Davide Balzarotti, Pierre-Antoine Vervier 等S&P 2022 · 35 次引用
  5. Detecting Filter List Evasion with Event-Loop-Turn Granularity JavaScript SignaturesQuan Chen, Peter Snyder, Ben Livshits, Alexandros KapravelosS&P 2021 · 33 次引用

相关 Paper

  1. ASTrack: Automatic Detection and Removal of Web Tracking Code with Minimal Functionality LossIsmael Castell-Uroz, Kensuke Fukuda, Pere Barlet-RosINFOCOM 2023 · 8 次引用
  2. CookieGraph: Understanding and Detecting First-Party Tracking CookiesShaoor Munir, Sandra Deepthy Siby, Umar Iqbal, Steven Englehardt 等CCS 2023 · 22 次引用
  3. Read Between the Lines: Detecting Tracking JavaScript with Bytecode ClassificationMohammad Ghasemisharif, Jason PolakisCCS 2023 · 3 次引用
  4. Unbundle-Rewrite-Rebundle: Runtime Detection and Rewriting of Privacy-Harming Code in JavaScript BundlesMir Masood Ali, Peter Snyder, Chris Kanich, Hamed HaddadiCCS 2024 · 2 次引用
  5. AdCPG: Classifying JavaScript Code Property Graphs with Explanations for Ad and Tracker BlockingChangmin Lee, Sooel SonCCS 2023 · 7 次引用
黄昏的海面,两侧是细线勾勒的悬崖