Skip to main content
QUICK REVIEW

[Paper Review] Loophole: Timing Attacks on Shared Event Loops in Chrome

Pepe Vila, Boris Köpf|arXiv (Cornell University)|Feb 22, 2017
Security and Verification in ComputingComputer Science16 citations
TL;DR

This paper demonstrates that shared event loops in Google Chrome's I/O and renderer threads are vulnerable to side-channel timing attacks, enabling a malicious web page to infer web page identity, user behavior, and exfiltrate data via covert channels by measuring dispatch delays of injected events. The attack achieves up to 75% page recognition accuracy with only one training sample per page.

ABSTRACT

Event-driven programming (EDP) is the prevalent paradigm for graphical user interfaces, web clients, and it is rapidly gaining importance for server-side and network programming. Central components of EDP are {\em event loops}, which act as FIFO queues that are used by processes to store and dispatch messages received from other processes. In this paper we demonstrate that shared event loops are vulnerable to side-channel attacks, where a spy process monitors the loop usage pattern of other processes by enqueueing events and measuring the time it takes for them to be dispatched. Specifically, we exhibit attacks against the two central event loops in Google's Chrome web browser: that of the I/O thread of the host process, which multiplexes all network events and user actions, and that of the main thread of the renderer processes, which handles rendering and Javascript tasks. For each of these loops, we show how the usage pattern can be monitored with high resolution and low overhead, and how this can be abused for malicious purposes, such as web page identification, user behavior detection, and covert communication.

Motivation & Objective

  • To investigate whether shared event loops in Chrome's event-driven architecture can be exploited as a side-channel for information leakage.
  • To demonstrate practical timing attacks that monitor event dispatch latencies to infer sensitive information from other processes.
  • To evaluate the feasibility of using event loop timing for web page identification, user activity tracking, and covert communication across origins.
  • To assess the effectiveness and stealth of these attacks under real-world browser constraints, including CPU throttling and process isolation.

Proposed method

  • The attack uses asynchronous JavaScript APIs such as postMessage to inject events into the renderer thread's event loop and measure dispatch times with 25μs resolution.
  • For the host process event loop, the attack leverages network requests to non-routable IPs (500μs resolution) and SharedWorker messages (100μs resolution).
  • Event delay patterns during page loading are captured and analyzed using dynamic time warping to classify and identify web pages.
  • User behavior is inferred by measuring timing differences in event dispatch when a user types into cross-origin forms, such as Google OAuth login fields.
  • A covert channel is established by modulating event dispatch timing, achieving 200 bit/s bandwidth through the renderer thread and 50 bit/s across processes.
  • The attack is implemented entirely within a single malicious HTML page, requiring no privileged access or execution outside the browser.

Experimental results

Research questions

  • RQ1Can shared event loops in Chrome’s I/O and renderer threads be exploited as a side-channel for information leakage?
  • RQ2To what extent can event dispatch timing be used to uniquely identify web pages with minimal training data?
  • RQ3Can user actions such as keystrokes be detected by observing event loop delays in cross-origin contexts?
  • RQ4What is the achievable bandwidth of a covert channel using event loop timing?
  • RQ5How effective are existing browser mitigations such as CPU throttling and site isolation in preventing these attacks?

Key findings

  • The attack achieves up to 75% web page recognition accuracy using only a single training sample per page from Alexa’s Top 500 sites.
  • User keystroke timing during OAuth login forms can be monitored with significantly lower noise and fewer privileges than previous side-channel methods.
  • A covert channel was successfully implemented with a bandwidth of 200 bit/s through the renderer main thread and 50 bit/s across processes via the host process loop.
  • The attack remains effective even after Chrome v57 introduced background tab throttling, as the attack can be completed within 10 seconds.
  • The use of dynamic time warping as a distance measure is essential for classification, as relative event ordering is critical for distinguishing pages.
  • The attack exploits the fundamental single-threaded nature of Chrome’s event-driven architecture, making it a systemic vulnerability rather than a configuration flaw.

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.