Skip to main content
QUICK REVIEW

[Paper Review] Prime+Probe 1, JavaScript 0: Overcoming Browser-based Side-Channel Defenses

Anatoly Shusterman, Ayush Agarwal|arXiv (Cornell University)|Mar 8, 2021
Security and Verification in ComputingComputer Science36 references4 citations
TL;DR

This paper demonstrates the first browser-based side-channel attack fully implemented in CSS and HTML that bypasses JavaScript-based defenses, including complete script blocking. It achieves architecturally agnostic cache-based website fingerprinting across Intel, AMD, Apple M1, and Samsung Exynos chips, bypassing Chrome Zero, DeterFox, and Tor Browser protections with high accuracy.

ABSTRACT

The "eternal war in cache" has reached browsers, with multiple cache-based side-channel attacks and countermeasures being suggested. A common approach for countermeasures is to disable or restrict JavaScript features deemed essential for carrying out attacks. To assess the effectiveness of this approach, in this work we seek to identify those JavaScript features which are essential for carrying out a cache-based attack. We develop a sequence of attacks with progressively decreasing dependency on JavaScript features, culminating in the first browser-based side-channel attack which is constructed entirely from Cascading Style Sheets (CSS) and HTML, and works even when script execution is completely blocked. We then show that avoiding JavaScript features makes our techniques architecturally agnostic, resulting in microarchitectural website fingerprinting attacks that work across hardware platforms including Intel Core, AMD Ryzen, Samsung Exynos, and Apple M1 architectures. As a final contribution, we evaluate our techniques in hardened browser environments including the Tor browser, Deter-Fox (Cao el al., CCS 2017), and Chrome Zero (Schwartz et al., NDSS 2018). We confirm that none of these approaches completely defend against our attacks. We further argue that the protections of Chrome Zero need to be more comprehensively applied, and that the performance and user experience of Chrome Zero will be severely degraded if this approach is taken.

Motivation & Objective

  • To determine the minimal browser features required for microarchitectural side-channel attacks.
  • To evaluate the effectiveness of browser-side defenses like Chrome Zero, DeterFox, and Tor Browser in preventing such attacks.
  • To develop a side-channel technique that is independent of hardware-specific microarchitectural details.
  • To demonstrate that cache-based side-channel leakage persists even when JavaScript is completely disabled.

Proposed method

  • Developed a CSS Prime+Probe attack using CSS transitions and timing-based probing via external DNS servers.
  • Used a cooperating DNS server to remotely measure probe latency, eliminating reliance on JavaScript timers.
  • Employed a string-based encoding scheme (String and Sock) to transmit probe results over DNS queries.
  • Conducted website fingerprinting by analyzing probe latency distributions across different websites.
  • Validated the attack across diverse architectures: Intel Core, AMD Ryzen, Apple M1, and Samsung Exynos.
  • Evaluated resilience against hardened browsers including Chrome Zero, DeterFox, and Tor Browser using controlled trace datasets.

Experimental results

Research questions

  • RQ1Can microarchitectural side-channel attacks be mounted in browsers when JavaScript is completely disabled?
  • RQ2Which browser features are essential for side-channel attacks, and which can be eliminated?
  • RQ3Can side-channel attacks be made architecturally agnostic across diverse CPU microarchitectures?
  • RQ4Do hardened browser environments like Chrome Zero, DeterFox, and Tor Browser effectively prevent such attacks?
  • RQ5Is it possible to achieve website fingerprinting using only CSS and HTML, without any JavaScript?

Key findings

  • The CSS Prime+Probe attack successfully mounted side-channel leakage without any JavaScript, achieving a Top-1 accuracy of 66% and Top-5 accuracy of 88% on DeterFox.
  • The attack achieved a Top-1 accuracy of 20% and Top-5 accuracy of 49% on Tor Browser, significantly above base rates of 1% and 5%.
  • The attack was effective on Apple M1, AMD Ryzen, Samsung Exynos, and Intel Core processors with no hardware-specific modifications.
  • Chrome Zero’s timer restriction did not prevent the attack, as the technique bypassed JavaScript timing APIs entirely.
  • DeterFox’s deterministic timing model failed to stop the attack, as the timing measurement occurred externally via DNS.
  • The study confirms that current browser-side countermeasures are insufficient to prevent side-channel leakage when microarchitectural resource sharing persists.

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.