Skip to main content
QUICK REVIEW

[Paper Review] WebGraph: Capturing Advertising and Tracking Information Flows for Robust Blocking

Sandra Siby, Umar Iqbal|arXiv (Cornell University)|Jul 23, 2021
Privacy, Security, and Data ProtectionSocial Sciences42 references7 citations
TL;DR

WebGraph introduces a graph-based machine learning approach for detecting ads and trackers by modeling information flows—such as identifier storage and cross-party sharing—rather than relying on content features like URLs or code. This shift makes WebGraph significantly more robust to adversarial evasion, reducing evasion success from 96% under AdGraph to just 8% under WebGraph, while maintaining comparable detection accuracy.

ABSTRACT

Millions of web users directly depend on ad and tracker blocking tools to protect their privacy. However, existing ad and tracker blockers fall short because of their reliance on trivially susceptible advertising and tracking content. In this paper, we first demonstrate that the state-of-the-art machine learning based ad and tracker blockers, such as AdGraph, are susceptible to adversarial evasions deployed in real-world. Second, we introduce WebGraph, the first graph-based machine learning blocker that detects ads and trackers based on their action rather than their content. By building features around the actions that are fundamental to advertising and tracking - storing an identifier in the browser, or sharing an identifier with another tracker - WebGraph performs nearly as well as prior approaches, but is significantly more robust to adversarial evasions. In particular, we show that WebGraph achieves comparable accuracy to AdGraph, while significantly decreasing the success rate of an adversary from near-perfect under AdGraph to around 8% under WebGraph. Finally, we show that WebGraph remains robust to a more sophisticated adversary that uses evasion techniques beyond those currently deployed on the web.

Motivation & Objective

  • To address the vulnerability of existing ML-based ad and tracker blockers to adversarial evasion through reliance on easily manipulated content features.
  • To develop a detection system that focuses on fundamental actions of advertising and tracking services, such as storing or sharing user identifiers.
  • To improve robustness against real-world evasion techniques like URL obfuscation and CNAME cloaking.
  • To evaluate the resilience of the proposed approach against sophisticated, realistic evasion strategies.
  • To demonstrate that action-based detection via information flow features is a viable and more secure alternative to content-based detection.

Proposed method

  • Constructs a cross-layer graph of web page execution by monitoring network requests, JavaScript execution, DOM creation, and browser storage access.
  • Extracts flow features that explicitly model the propagation of identifiers from trackers to browser storage and to other third-party entities.
  • Uses browser API instrumentation to detect calls that store or retrieve identifiers (e.g., cookies, localStorage) as signals of tracking behavior.
  • Builds a graph representation where nodes represent resources and browser APIs, and edges represent information flows between them.
  • Trains a machine learning classifier on these flow-based features, entirely replacing reliance on content-based features like URLs or code patterns.
  • Employs a greedy graph mutation algorithm to simulate adversarial evasion and evaluate robustness under realistic attack scenarios.

Experimental results

Research questions

  • RQ1Can state-of-the-art ML-based ad and tracker blockers be evaded using real-world techniques like URL obfuscation and CNAME cloaking?
  • RQ2To what extent does relying on content features make ad and tracker detection systems vulnerable to adversarial manipulation?
  • RQ3Can information flow features derived from browser API interactions provide a more robust alternative to content-based detection?
  • RQ4How effective is WebGraph at resisting evasion when adversaries use sophisticated, realistic graph mutation techniques?
  • RQ5What is the trade-off between evasion success and usability loss when attempting to bypass WebGraph?

Key findings

  • WebGraph reduces adversarial evasion success from 96% under AdGraph to just 8% when using real-world evasion techniques like URL obfuscation and CNAME cloaking.
  • The proposed flow-based detection achieves detection accuracy comparable to content-based models like AdGraph, despite not using any content features.
  • Even with a more sophisticated evasion strategy involving structural graph mutations, WebGraph maintains strong robustness, with evasion success limited and accompanied by significant usability costs.
  • Adversaries attempting to bypass WebGraph incur non-trivial collateral damage, such as blocking their own or benign resources, which limits practical feasibility.
  • The dynamic nature of modern web pages further hinders evasion, as mutations must remain valid across frequent page reloads.
  • WebGraph’s design allows for incremental instrumentation upgrades to cover new tracking techniques, such as browser fingerprinting, without requiring a complete re-architecture.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.