When Mitigations Backfire: Timing Channel Attacks and Defense for PRAC-Based RowHammer Mitigations
Jeonghyun Woo, Joyce Qu, Gururaj Saileshwar, Prashant J. Nair
TL;DR
The paper reveals a timing-channel vulnerability in PRAC-based RowHammer mitigations caused by ABO-triggered RFMs and demonstrates PRACLeak covert and side channels that can leak sensitive data. It introduces Timing-Safe PRAC (TPRAC), which uses Timing-Based RFMs issued at fixed TB-Windows to decouple mitigation from memory activity, thereby eliminating ABO-induced latency cues while preserving RH protection. Empirical evaluation shows PRACLeak can achieve up to tens of kilobits per second in covert channels and AES-side channels, whereas TPRAC reduces or eliminates leakage with a modest average overhead of 3.4% at $N_{ ext{RH}}=1024$, and manageable energy and bandwidth costs. The work further discusses TB-Window design, mitigation queue structure, and potential co-design with Targeted Refreshes to balance security and performance, arguing for a practical, standards-aligned defense against PRAC timing channels.
Abstract
Per Row Activation Counting (PRAC) has emerged as a robust framework for mitigating RowHammer (RH) vulnerabilities in modern DRAM systems. However, we uncover a critical vulnerability: a timing channel introduced by the Alert Back-Off (ABO) protocol and Refresh Management (RFM) commands. We present PRACLeak, a novel attack that exploits these timing differences to leak sensitive information, such as secret keys from vulnerable AES implementations, by monitoring memory access latencies. To counter this, we propose Timing-Safe PRAC (TPRAC), a defense that eliminates PRAC-induced timing channels without compromising RH mitigation efficacy. TPRAC uses Timing-Based RFMs, issued periodically and independent of memory activity. It requires only a single-entry in-DRAM mitigation queue per DRAM bank and is compatible with existing DRAM standards. Our evaluations demonstrate that TPRAC closes timing channels while incurring only 3.4% performance overhead at the RH threshold of 1024.
