Skip to main content
QUICK REVIEW

[Paper Review] Rowhammer.Js: A Remote Software-Induced Fault Attack In Javascript

Daniel Gruss, Clémentine Maurice|arXiv (Cornell University)|Jul 24, 2015
Security and Verification in ComputingComputer Science35 references22 citations
TL;DR

Rowhammer.js presents the first remote, software-induced hardware fault attack via JavaScript, exploiting fast cache eviction to trigger Rowhammer bit flips without privileged instructions. It enables remote privilege escalation on vulnerable systems through a website, bypassing traditional attack prerequisites and rendering existing countermeasures ineffective.

ABSTRACT

A fundamental assumption in software security is that a memory location can only be modified by processes that may write to this memory location. However, a recent study has shown that parasitic effects in DRAM can change the content of a memory cell without accessing it, but by accessing other memory locations in a high frequency. This so-called Rowhammer bug occurs in most of today's memory modules and has fatal consequences for the security of all affected systems, e.g., privilege escalation attacks. All studies and attacks related to Rowhammer so far rely on the availability of a cache flush instruction in order to cause accesses to DRAM modules at a sufficiently high frequency. We overcome this limitation by defeating complex cache replacement policies. We show that caches can be forced into fast cache eviction to trigger the Rowhammer bug with only regular memory accesses. This allows to trigger the Rowhammer bug in highly restricted and even scripting environments. We demonstrate a fully automated attack that requires nothing but a website with JavaScript to trigger faults on remote hardware. Thereby we can gain unrestricted access to systems of website visitors. We show that the attack works on off-the-shelf systems. Existing countermeasures fail to protect against this new Rowhammer attack.

Motivation & Objective

  • To demonstrate that Rowhammer faults can be triggered remotely using only JavaScript, without requiring native code or privileged instructions.
  • To overcome the reliance on cache flush instructions (e.g., clflush) by developing generic cache eviction strategies effective on modern CPUs with complex replacement policies.
  • To enable remote exploitation of Rowhammer in sandboxed environments like web browsers, where direct memory access is restricted.
  • To evaluate the feasibility and effectiveness of the attack across diverse modern hardware platforms, including DDR3 and DDR4 memory modules.
  • To expose the limitations of existing software and hardware countermeasures against this new class of remote, browser-based Rowhammer attacks.

Proposed method

  • Utilized large arrays allocated on huge pages to infer physical memory layout and obtain physical addresses in JavaScript, leveraging OS memory allocation heuristics.
  • Developed a novel, generic method to explore the parameter space of cache eviction strategies, identifying optimal configurations for high eviction rates and low latency on modern Intel CPUs.
  • Employed a two-phase online attack strategy to dynamically adapt to unknown hardware configurations, ensuring consistent performance across diverse systems.
  • Replaced the need for clflush with high-frequency memory accesses to evict cache lines, enabling Rowhammer exploitation in pure JavaScript environments.
  • Validated the attack across multiple platforms (Sandy Bridge to Skylake) using off-the-shelf hardware, confirming consistent fault induction on vulnerable DRAM modules.
  • Integrated existing exploit primitives (e.g., page table manipulation) to achieve remote code execution after bit flip detection, completing the full attack chain.

Experimental results

Research questions

  • RQ1Can Rowhammer bit flips be reliably triggered in a JavaScript environment without privileged instructions or direct memory access?
  • RQ2How effective are generic cache eviction strategies in overcoming complex, undocumented cache replacement policies on recent Intel CPUs?
  • RQ3To what extent can physical memory addresses be inferred in JavaScript through OS-level memory allocation patterns?
  • RQ4What is the feasibility and scalability of a fully automated, remote Rowhammer attack via a website across diverse modern hardware platforms?
  • RQ5Why do existing software and hardware countermeasures fail to protect against this remote, JavaScript-based Rowhammer attack?

Key findings

  • Rowhammer.js successfully triggers bit flips in JavaScript on all tested modern browsers (Firefox and Chrome) without requiring privileged instructions or direct memory access.
  • The attack achieves high fault rates on 85% of tested DDR3 modules and demonstrates exploitability on DDR4 modules, confirming widespread vulnerability.
  • The proposed cache eviction strategy outperforms prior methods on all recent Intel architectures, achieving high eviction rates with minimal latency.
  • The attack is fully automated and remote, capable of compromising millions of victim machines simultaneously through a single malicious website.
  • Existing countermeasures—such as removing clflush, enabling ECC memory, or using performance counter detection—fail to protect against this attack due to its reliance on standard memory operations.
  • The attack remains effective even when the system’s refresh rate is increased, indicating that standard mitigation techniques are insufficient against this vector.

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.