← Latest papers
💻 computer science

HammerSim: A System-Level Tool to Model RowHammer

This paper presents HammerSim, a gem5-based full-system simulation framework that integrates probability-driven bitflip modeling to realistically evaluate RowHammer vulnerabilities and assess hardware and software mitigations across modern computing platforms.

Original authors: Kaustav Goswami, Ayaz Akram, Hari Venugopalan, Jason Lowe-Power

Published 2026-05-28
📖 5 min read🧠 Deep dive

Original authors: Kaustav Goswami, Ayaz Akram, Hari Venugopalan, Jason Lowe-Power

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine your computer's memory (RAM) is like a massive, crowded apartment building. Each apartment is a tiny storage cell holding a single piece of data (a 0 or a 1). In a perfect world, these apartments are sturdy and independent. But in the real world, as technology shrinks to fit more apartments into the same space, the walls between them get paper-thin.

This is where RowHammer comes in.

The Problem: The "RowHammer" Effect

Imagine a noisy tenant in Apartment 404 who starts jumping up and down on their floor repeatedly. Because the walls are so thin, the vibrations eventually shake the furniture in the neighboring apartments (403 and 405), causing things to fall over or change. In computer terms, repeatedly accessing (or "hammering") a specific row of memory causes electrical interference that flips the bits in the neighboring rows.

This isn't just a glitch; it's a security nightmare. Hackers can use this "vibration" to flip bits in a way that lets them break into the building's management office (the operating system) or steal secrets.

The Current Dilemma: Two Flawed Tools

Researchers have been trying to study this problem with two main tools, but both have holes:

  1. The Hardware Lab (FPGAs): This is like building a real, physical model of the apartment building. It's very accurate for seeing how the walls vibrate, but it's too small to see how the building manager (the Operating System) reacts to the noise. You can't see the whole building's dynamics.
  2. The Software Exploit: This is like writing a script to pretend to be the noisy tenant. It's great for seeing how the manager reacts, but it's a guess. You can't actually see the physical walls shaking or the electrical interference happening inside the chips.

Most computer simulations today are like a cartoon version of the building. They assume all walls are equally strong and all vibrations are the same. But in reality, some walls are weak, some are strong, and the vibrations are chaotic.

The Solution: HammerSim

The authors of this paper built a new tool called HammerSim. Think of it as a super-realistic video game simulator that combines the best of both worlds.

  • It runs the whole building: Unlike the small hardware models, HammerSim runs inside a full computer simulator (called gem5). This means it can watch the "building manager" (the OS) and the "tenants" (applications) while the noise happens.
  • It knows the weak spots: Instead of assuming all walls are the same, HammerSim uses a "map" of real-world memory chips. It knows exactly which specific cells are weak and likely to break, just like a real building inspector would know which apartments have thin walls.
  • It's a "What-If" machine: Researchers can use HammerSim to test different scenarios:
    • The Attack: Can a hacker jump on the floor enough to break in?
    • The Defense: What if we install soundproofing (a hardware fix called TRR) or a security guard who checks the furniture (software/ECC)?
    • The Accidents: What happens if a normal, innocent tenant (a benign app) accidentally causes a bit to flip? Does the building collapse, or does it just have a small mess?

How It Works (The Magic Behind the Scenes)

The paper explains that HammerSim uses two modes to study these problems:

  1. Online Mode (Live Action): The simulator runs a real program. As the program runs, HammerSim secretly injects "bit flips" (the furniture falling over) into the memory. It watches to see if the program crashes, if the OS panics, or if the hacker succeeds. It's like watching a movie where the special effects (the bit flips) happen in real-time.
  2. Offline Mode (The Replay): Sometimes, running the whole movie takes too long. In this mode, HammerSim records the "footsteps" (memory access patterns) of the program. Later, a computer can replay those footsteps against thousands of different "weak wall" maps to see what would have happened without waiting for the whole simulation to finish.

The Results

The team tested HammerSim against real computer chips. They found that their simulator was very good at predicting exactly where the "bit flips" would happen, matching the real hardware almost perfectly.

They also showed that:

  • ECC (Error Correcting Code): This is like a security guard who fixes a fallen chair before anyone notices. HammerSim showed that while this helps, it's not a magic bullet; if too many things fall at once, the guard can't fix them all.
  • Silent Errors: Sometimes, a bit flips, but the program doesn't crash. It just gives you the wrong answer. HammerSim can catch these "silent" mistakes, which is crucial for safety.

The Bottom Line

HammerSim is a bridge. It connects the messy, unpredictable reality of physical computer chips with the clean, controlled world of computer simulations. It allows researchers to safely test how to protect our computers from these "vibrating" attacks without needing to build a new physical chip for every single test. It's a tool to make our digital apartment buildings safer before the walls start shaking.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →