DAPPER: A Performance-Attack-Resilient Tracker for RowHammer Defense

Jeonghyun Woo and Prashant J. Nair, HPCA 2025 Submission #255 · 2025

Read DAPPER: A Performance-Attack-Resilient Tracker for RowHammer Defense by Jeonghyun Woo and Prashant J. Nair, HPCA 2025 Submission #255 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2501-18857.txt.

Introduction

Jeonghyun Woo and Prashant Nair propose a defense in 2025 against RowHammer, a memory flaw where rapid row access flips bits in nearby rows. Current defenses share counters across programs, but attackers can abuse that sharing to slow innocent programs down. Their design, DAPPER, hides how counters map to memory rows using secure hashing. An enhanced version adds double hashing and fresh reset tricks.

Tests across fifty-seven workloads showed the design held up well. Even at a very low attack threshold, slowdown under attack stayed under one percent. The tracker needs only a small slice of fast memory per memory bank. The work aims to keep safety defenses from becoming a weapon themselves.

Catalog record

CREATORJeonghyun Woo and Prashant J. Nair, HPCA 2025 Submission #255
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE70 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2501-18857

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

DAPPER: A Performance-Attack-Resilient Tracker for RowHammer Defense Jeonghyun Woo and Prashant J. Nair, HPCA 2025 Submission #255 Abstract RowHammer vulnerabilities pose a significant threat to modern DRAM-based systems, where rapid activation of DRAM rows can induce bit-flips in neighboring rows. To mitigate this, state-of-the-art host-side RowHammer mitigations typically rely on shared counters or tracking structures. While these optimizations benefit benign applications, they are vulnerable to Performance Attacks ( Perf-Attacks ), where adversaries exploit shared structures to reduce DRAM bandwidth for co-running benign applications by increasing DRAM accesses for RowHammer counters or triggering repetitive refreshes required for the early reset of structures, significantly degrading performance. In this paper, we propose secure hashing mechanisms to thwart adversarial attempts to capture the mapping of shared structures. We propose Dapper , a novel low-cost tracker resilient to Perf-Attacks even at ultra-low RowHammer thresholds. We first present a secure hashing template in the form of Dapper-S . We then develop Dapper-H , an enhanced version of Dapper-S , incorporating double-hashing, novel reset strategies, and mitigative refresh techniques. Our security analysis demonstrates the effectiveness of Dapper-H against both RowHammer and Perf-Attacks . Experiments with 57 workloads from SPEC2006, SPEC2017, TPC, Hadoop, MediaBench, and YCSB show that, even at an ultra-low RowHammer threshold of 500, Dapper-H incurs only a 0.9% slowdown in the presence of Perf-Attacks while using only 96KB of SRAM per 32GB of DRAM memory. I Introduction Modern Dynamic Random Access Memories (DRAM) face severe security issues due to technology scaling. DRAM cells store data as charge, and at smaller technology nodes, rapid accesses can induce data leakage from neighboring cells, resulting in bit-flips that adversaries can exploit to manipulate data [ 62 , 22 , 16 , 30 ] . This vulnerability, known as RowHammer (RH) [ 28 ] , occurs when rapidly accessed rows (aggressor rows) cause bit-flips in neighboring rows (victim rows). One approach to addressing RH involves integrating low-cost trackers into the host-side memory controller [ 50 , 45 , 60 , 4 ] . These trackers enable targeted mitigative refreshes to victim rows. However, while effective for both RH attacks and benign applications, these trackers remain vulnerable to Performance Attacks ( Perf-Attacks ). This paper aims to develop a host-side low-cost RH tracker that is resilient against Perf-Attacks even at ultra-low RH thresholds ( \text{N}_{\text{RH}} ). RH mitigations typically aim to refresh victim rows before adversarial activations reach the RH threshold ( \text{N}_{\text{RH}} ), the minimum number of activations required to induce bit-flips. Over the last decade, \text{N}_{\text{RH}} has sharply declined from around 70K [ 28 ] in 2014 to 4.5K [ 23 ] in 2020, increasing the number of vulnerable rows and escalating hardware tracking costs. Advanced trackers like Hydra [ 50 ] , ABACUS [ 45 ] , and CoMeT [ 4 ] reduce these costs by grouping rows and tracking collective activation counts. Alternatively, START [ 60 ] leverages the Last-Level Cache (LLC) to store RH counts. These strategies optimize performance at ultra-low \text{N}_{\text{RH}} (e.g., \text{N}_{\text{RH}} \leq 1K) and prevent RH under malicious attacks. However, grouping rows or using the LLC for tracking makes these mitigations vulnerable to Perf-Attacks . Adversaries can force misses in RH counters or inflate group activation counts, leading to extra DRAM accesses and redundant refreshes that severely degrade the performance of co-running applications. These Perf-Attacks exploit RH mitigation mechanisms and are more severe than attacks like cache thrashing. Figure 1 shows that, at \text{N}_{\text{RH}} of 500, tailored RH-Tracker-based Perf-Attacks cause slowdowns of 60% to 90% across 57 workloads from SPEC2006 [ 11 ] , SPEC2017 [ 66 ] , TPC [ 69 ] , Hadoop [ 13 ] , MediaBench [ 14 ] , and YCSB [ 10 ] , whereas cache thrashing attacks result in only a 40% slowdown. Ideally, we aim for a tracker that is resilient against Perf-Attacks . This paper proposes Dapper , a Perf-Attack -resilient RH tracker that minimizes performance impact while providing secure defense against Perf-Attacks . Fig. 1: Normalized performance of state-of-the-art host-side RowHammer (RH) mitigations [ 50 , 4 , 60 , 45 ] at the RH threshold of 500, evaluated under RH-Tracker-based Performance Attacks ( Perf-Attack ) and cache thrashing attacks on a dual-channel, dual-rank, DDR5 64GB system. Our experiments with 57 workloads demonstrate that a single tailored RH-Tracker-based Perf-Attack application can reduce the performance of co-running applications by up to 90%, while cache thrashing attacks degrade them by 40% on average. This paper aims to develop a cost-effective Perf-Attack -resistant RH tracker. To understand the design of Dapper , it is crucial to decipher the hardware mechanisms exploited by Perf-Attacks . • Triggering Additional RH Counter Accesses : Hydra [ 50 ] uses shared group counters to track multiple rows with a single counter, reducing storage overhead. Hydra switches to per-row tracking for improved performance when a group counter reaches its thresholds. RH counters are stored in a reserved DRAM area, with a subset cached in the Row Counter Cache (RCC). When the RCC is full, and a miss occurs, Hydra evicts a stored counter and fetches a new one from DRAM. Similarly, START [ 60 ] stores individual RH counters directly in the LLC without grouping. Both Hydra’s RCC and START’s LLC can be overwhelmed by a tailored access pattern, leading to frequent evictions and counter fetches from DRAM. These repeated operations significantly degrade DRAM bandwidth and introduce substantial performance overhead for co-running applications. • Triggering Redundant Refreshes : CoMeT [ 4 ] uses a Count-Min Sketch-based tracker to share counters across rows, reducing storage overhead. However, due to counter sharing, it cannot reset counters after performing a mitigative refresh. CoMeT employs the Recent Aggressor Table (RAT) to track and selectively reset recently mitigated rows to address this. Performance degradation occurs when the number of aggressor rows exceeds the RAT’s capacity, and those rows are frequently activated. Similarly, ABACUS [ 45 ] uses a Misra-Gries (MG) tracker shared across all banks, with its size designed to handle the maximum number of aggressor rows in a single bank during a refresh interval. However, the MG tracker’s spillover counter can overflow under adversarial patterns. CoMeT and ABACUS implement early preventive refreshes that mitigate this problem by refreshing all DRAM rows and resetting the structure, but an attacker can exploit these mechanisms to reduce DRAM bandwidth and cause slowdowns. To address these concerns, we introduce two versions of Dapper , each designed to be built on top of the other. 1. Dapper-S : We propose Dapper-S as a simple mechanism to prevent RH counter access and mitigate Perf-Attacks . Dapper-S groups rows and assigns dedicated counters, called row group counters (RGCs), to each group. When an RGC reaches the Mitigation threshold ( \text{N}_{\text{M}} ), which is half of \text{N}_{\text{RH}} , it refreshes victim rows and resets the counter. Unlike previous approaches [ 50 , 60 ] , Dapper-S stores all RGCs in an SRAM-based table within the memory controller, avoiding main memory storage. Rows are randomly assigned to groups using a secure hash with periodically updated keys, reducing DRAM accesses and preventing attackers from targeting specific rows. This randomization minimizes the risk of overwhelming an RGC. Hash keys are refreshed every 12 \mu s

Read the complete text