Lune

CCS2023Top-tier venue

CookieGraph: Understanding and Detecting First-Party Tracking Cookies

Shaoor Munir, Sandra Deepthy Siby, Umar Iqbal, Steven Englehardt, Zubair Shafiq, Carmela Troncoso

Abstract

As third-party cookie blocking is becoming the norm in mainstream web browsers, advertisers and trackers have started to use firstparty cookies for tracking. To understand this phenomenon, we conduct a differential measurement study with versus without thirdparty cookies. We find that first-party cookies are used to store and exfiltrate identifiers to known trackers even when third-party cookies are blocked. As opposed to third-party cookie blocking, first-party cookie blocking is not practical because it would result in major breakage of website functionality. We propose CookieGraph, a machine learning-based approach that can accurately and robustly detect and block first-party tracking cookies. CookieGraph detects first-party tracking cookies with 90.18% accuracy, outperforming the stateof-the-art CookieBlock by 17.31%. We show that CookieGraph is robust against cookie name manipulation, while CookieBlock's accuracy drops by 15.87%. While blocking all first-party cookies results in major breakage on 32% of the sites with SSO logins, and CookieBlock reduces it to 10%, we show that CookieGraph does not cause any major breakage on these sites. Our deployment of CookieGraph shows that first-party tracking cookies are used on 89.86% of the top-million websites. We find that 96.61% of these first-party tracking cookies are in fact ghostwritten by third-party scripts embedded in the first-party context. We also find evidence of first-party tracking cookies being set by fingerprinting scripts. The most prevalent first-party tracking cookies are set by major advertising entities such as Google, Facebook, and TikTok.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted Advertising cites Online Tracking: A 1-million-site Measurement and Analysis
  • Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted Advertising cites Beauty and the Beast: Diverting Modern Web Browsers to Build Unique Browser Fingerprints
  • Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted Advertising cites 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 cites Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
  • Do We Need Subsidiarity in Software? cites Online Tracking: A 1-million-site Measurement and Analysis
  • Online Tracking: A 1-million-site Measurement and Analysis cites Beauty and the Beast: Diverting Modern Web Browsers to Build Unique Browser Fingerprints
  • Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors cites Online Tracking: A 1-million-site Measurement and Analysis
  • Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors cites Beauty and the Beast: Diverting Modern Web Browsers to Build Unique Browser Fingerprints
  • Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors cites AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
  • SINBAD: Saliency-informed detection of breakage caused by ad blocking cites Online Tracking: A 1-million-site Measurement and Analysis
  • SINBAD: Saliency-informed detection of breakage caused by ad blocking cites Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors
  • SINBAD: Saliency-informed detection of breakage caused by ad blocking cites AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
  • PURL: Safe and Effective Sanitization of Link Decoration cites Online Tracking: A 1-million-site Measurement and Analysis
  • PURL: Safe and Effective Sanitization of Link Decoration cites Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting Behaviors
  • PURL: Safe and Effective Sanitization of Link Decoration cites AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
  • PURL: Safe and Effective Sanitization of Link Decoration cites Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
  • Blocking Tracking JavaScript at the Function Granularity cites AdGraph: A Graph-Based Approach to Ad and Tracker Blocking
  • Blocking Tracking JavaScript at the Function Granularity cites Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation
  • AdGraph: A Graph-Based Approach to Ad and Tracker Blocking cites Online Tracking: A 1-million-site Measurement and Analysis
  • Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulation cites Online Tracking: A 1-million-site Measurement and Analysis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. PURL: Safe and Effective Sanitization of Link DecorationShaoor Munir, Patrick Lee, Umar Iqbal, Sandra Deepthy Siby et al.USENIX Security 2024 · 9 citations
  2. Fledging Will Continue Until Privacy Improves: Empirical Analysis of Google's Privacy-Preserving Targeted AdvertisingGiuseppe Calderonio, Mir Masood Ali, Jason PolakisUSENIX Security 2024 · 8 citations
  3. SINBAD: Saliency-informed detection of breakage caused by ad blockingSaiid El Hajj Chehade, Sandra Deepthy Siby, Carmela TroncosoS&P 2024 · 3 citations
  4. Blocking Tracking JavaScript at the Function GranularityAbdul Haddi Amjad, Shaoor Munir, Zubair Shafiq, Muhammad Ali GulzarCCS 2024 · 3 citations
  5. Do We Need Subsidiarity in Software?Louisa Conwill, Megan Levis Scheirer, Walter J. ScheirerCHI 2026 · 2 citations

Builds on14

  1. Tranco: A Research-Oriented Top Sites Ranking Hardened Against ManipulationVictor Le Pochat, Tom van Goethem, Samaneh Tajalizadehkhoob, Maciej Korczynski et al.NDSS 2019 · 826 citations
  2. Online Tracking: A 1-million-site Measurement and AnalysisSteven Englehardt, Arvind NarayananCCS 2016 · 798 citations
  3. Beauty and the Beast: Diverting Modern Web Browsers to Build Unique Browser FingerprintsPierre Laperdrix, Walter Rudametkin, Benoit BaudryS&P 2016 · 279 citations
  4. Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting BehaviorsUmar Iqbal, Steven Englehardt, Zubair ShafiqS&P 2021 · 143 citations
  5. AdGraph: A Graph-Based Approach to Ad and Tracker BlockingUmar Iqbal, Peter Snyder, Shitong Zhu, Benjamin Livshits et al.S&P 2020 · 112 citations

Related papers

  1. WebGraph: Capturing Advertising and Tracking Information Flows for Robust BlockingSandra Deepthy Siby, Umar Iqbal, Steven Englehardt, Zubair Shafiq et al.USENIX Security 2022
  2. Cookie Swap Party: Abusing First-Party Cookies for Web TrackingQuan Chen, Panagiotis Ilia, Michalis Polychronakis, Alexandros KapravelosWWW 2021 · 57 citations
  3. Automating Cookie Consent and GDPR Violation DetectionDino Bollinger, Karel Kubicek, Carlos Cotrini, David A. BasinUSENIX Security 2022
  4. User Tracking in the Post-cookie Era: How Websites Bypass GDPR Consent to Track UsersEmmanouil Papadogiannakis, Panagiotis Papadopoulos, Nicolas Kourtellis, Evangelos P. MarkatosWWW 2021 · 99 citations
  5. TGNN: Enhancing Pixel Tracking Detection via LLM-driven Annotation and GAT-powered Structural RepresentationShenping Xiong, Xutong Wang, Ze Jin, Xinyu Liu et al.WWW 2026
Dusk over the sea between two cliffs drawn in fine vertical lines