WebGraph: Capturing Advertising and Tracking Information Flows for Robust Blocking

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

This academic paper, titled "WebGraph: Capturing Advertising and Tracking Information Flows for Robust Blocking," presents a significant shift in how we approach the "cat-and-mouse" game of online privacy. Here is a summary of its findings and contributions.

TL;DR

WebGraph is a novel machine learning-based ad and tracker blocker that identifies malicious actors by their actions (how they move data) rather than their content (what their URLs look like). By focusing on fundamental information flows—like cookie syncing and identifier sharing—WebGraph remains highly effective even when advertisers use sophisticated evasion techniques like CNAME cloaking that baffle current state-of-the-art blockers.

What Problem Does This Paper Address?

Traditional ad blockers rely on manually curated "filter lists." While effective, these lists struggle to scale and are easily bypassed by "domain rotation" (changing URLs frequently). To solve this, researchers previously developed AdGraph, a machine learning tool that uses a graph representation of a webpage to detect trackers.

However, the authors of this paper demonstrate a critical flaw: AdGraph relies too heavily on content features (e.g., "is the word 'track' in the URL?"). They show that an adversary can achieve a 96% evasion rate against AdGraph simply by colluding with the website owner via CNAME cloaking—a technique where a third-party tracker masquerades as a first-party subdomain (e.g., tracker.example.com instead of tracker.com). WebGraph was designed to be "content-blind" and robust against such manipulation.

Methods

The researchers built WebGraph by instrumenting the browser to capture interactions across four layers of the web stack: HTML, JavaScript, Network, and Storage.

  1. Graph Construction: WebGraph represents a page load as a directed graph. Nodes represent HTML elements, network requests, scripts, and stored values (cookies). Edges represent actions, such as a script initiating a request or reading from localStorage.
  2. Flow Features: Unlike previous models, WebGraph extracts features based on information flow. It looks for patterns inherent to Advertising and Tracking Services (ATS), such as:
  3. How many storage elements (cookies) a node sets.
  4. The depth of redirect chains.
  5. "Information sharing edges," where data from one domain’s storage is sent to another domain via a URL parameter.
  6. Adversarial Evaluation: To test robustness, the authors developed a Graph Mutation algorithm. This simulates a sophisticated attacker who tries to "hide" by adding dummy nodes, re-routing requests through different scripts, or obfuscating data to break the graph's connectivity.

Datasets

  • Web Crawl: The authors crawled 10,000 websites sampled from the Alexa top-100K list using an instrumented version of Firefox (OpenWPM).
  • Ground Truth: They used standard filter lists (EasyList and EasyPrivacy) to label resources as either ATS (Advertising/Tracking) or Non-ATS (benign).
  • Benchmarks: The performance was directly compared against AdGraph, the previous state-of-the-art graph-based blocker.

Key Insights and Ideas

  • Behavior is harder to fake than content: It is trivial for a tracker to change its URL or obfuscate its code. However, it is much harder to change its behavior. If a tracker wants to identify a user across different sites, it must eventually store an identifier and share it. WebGraph targets these inescapable functional requirements.
  • The Collusion Gap: The paper highlights that "first-party collusion" (like CNAME cloaking) is the "final boss" for content-based blockers. When a tracker looks like the website itself, content-based filters lose their primary signal.
  • Structural Robustness: Even when an adversary tries to mutate the graph structure, WebGraph often forces a "usability-security trade-off." To successfully evade detection, the attacker often has to trigger "collateral damage," such as accidentally blocking their own functional scripts or breaking the website's layout.

Key Results

  • Comparable Accuracy: WebGraph achieves an accuracy of ~92%, performing nearly as well as AdGraph on "clean" (non-adversarial) data.
  • Superior Robustness: In the face of CNAME cloaking and URL manipulation, AdGraph’s evasion success rate was near-perfect (96%). Under the same conditions, WebGraph reduced the adversary's success rate to just ~8%.
  • Efficiency: WebGraph is fast enough for real-world use in filter list curation. It takes an average of 0.72 seconds to build a graph and 15 seconds to extract features for a typical website.

Limitations and Future Work

  • Stateless Tracking: WebGraph currently focuses on stateful tracking (using cookies and local storage). It does not yet fully capture "stateless" tracking or browser fingerprinting, which uses browser APIs (like Canvas or Audio) to identify users without storing data.
  • Instrumentation Depth: To keep performance overhead low, WebGraph uses a lightweight approximation of information flow. The authors note that a "full-blown" information flow tracker would be more accurate but could be 100x to 1000x slower.
  • Dynamic Content: Modern websites are highly dynamic. A set of mutations that works to evade WebGraph on one visit might become invalid the next time the page is loaded. Future work could explore how to handle this dynamism more effectively.

Summary updated

BibTeX
@inproceedings{siby2022webgraph,
  author = {Sandra Deepthy Siby and Umar Iqbal and Steven Englehardt and Zubair Shafiq and Carmela Troncoso},
  title = {{WebGraph: Capturing Advertising and Tracking Information Flows for Robust Blocking}},
  booktitle = {USENIX Security},
  year = {2022},
}
Figure