arXiv:2610.37454cs.CROct 2026

Manuscript Offprint

arXiv:2610.37454

SecDMP: Provably Secure Data Memory-Dependent Prefetching (Extended Version)

Jens Sprengers, Marton Bognar, Lesly-Ann Daniel, Frank Piessens

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Artifact Evaluated NDSS

Available

Functional

Reproduced

Jens Sprengers

DistriNet, KU Leuven

jens.sprengers@kuleuven.be

Marton Bognar

DistriNet, KU Leuven

marton.bognar@kuleuven.be

Lesly-Ann Daniel

EURECOM

lesly-ann.daniel@eurecom.fr

Frank Piessens

DistriNet, KU Leuven

frank.piessens@kuleuven.be

Abstract—Data memory-dependent prefetchers (DMPs) are a microarchitectural optimization recently introduced in mainstream desktop and server CPUs. Although DMPs offer performance improvements, they have been shown to enable side-channel leakage of secrets, even from constant-time code that has been hardened against Spectre attacks. Unfortunately, existing defenses either incur significant performance overhead or, as we show, fail to prevent all DMP leakage.

In this work, we address this gap by designing a defense that is both secure and efficient. First, we propose a classification of DMP leakage, categorize existing and novel attacks, and analyze which leakage classes are mitigated by existing defenses. We validate this analysis empirically by implementing the first open-source DMPs on a RISC-V processor, showing that the only existing defense that aims to preserve DMP performance fails to protect against entire leakage classes. Next, we propose SecDMP, a provably secure and efficient hardware-based defense. SecDMP requires secrets to be marked in memory and ensures that DMPs never encode these secrets in the microarchitecture—without compromising performance for public data. We formally prove that SecDMP introduces no leakage beyond a baseline semantics without DMPs. Notably, when combined with speculative-execution defenses, SecDMP restores complete microarchitectural security for constant-time code. Finally, our empirical evaluation shows that SecDMP prevents all DMP leakage while incurring minimal performance overhead and hardware cost.

I. INTRODUCTION

Microarchitectural side channels pose a significant challenge to secure software. Since the first timing attack [40], a growing body of work has shown that many microarchitectural components and optimizations leak sensitive data. Well-known leakage sources include instruction [1] and data caches [10], port contention [2], branch predictor state [72], and (classical) hardware prefetchers [12]. Additionally, modern CPUs employ speculative execution induced by mechanisms such as branch prediction and memory disambiguation, which Spectre attacks [32], [39] exploit to leak secrets during transient execution caused by mispredictions.

To defend against microarchitectural side-channel attacks, the most commonly adopted approach is to implement software in a constant-time fashion [3], [4], [11], [49]. This approach requires that secret data is never used as operands of computations that may produce operand-dependent observable microarchitectural effects. Specifically, secrets must not be used as branch conditions, memory addresses, or operands of variable-time instructions (e.g., divisions). While constant-time programming itself does not protect against Spectre, defenses have been proposed in both software and hardware that secure constant-time code against these attacks [16], [20].

Data memory-dependent prefetchers (DMPs). Recent work has shown that new generations of Apple, Intel, and Arm CPUs implement a novel type of prefetcher, known as a data memory-dependent prefetcher (DMP) [6], [17], [64], [65]. Unlike classical prefetchers, which base their predictions on the history of accessed memory addresses, DMPs also consider the loaded data itself. This has severe security implications, as DMPs can encode secrets into microarchitectural state without the program ever explicitly (not even transiently) performing this encoding. For instance, GoFetch [17] showed that the DMP on modern Apple processors can leak secrets from constant-time cryptographic implementations. Mitigating this type of leakage is particularly challenging, as it does not rely on any specific property of the victim program aside from containing sensitive data in memory. The most practical proposed mitigations are to disable the DMP, either completely [17], [64], [65] or selectively [17], [54].

This paper. In this work, we propose a systematic and formal approach to analyzing and mitigating DMP leakage. We start by classifying how DMPs access and leak secret data. Our main insight is that DMPs can be activated not only on data architecturally loaded by the victim program, but also indirectly via (1) adjacent data within a cache block, (2) data loaded transiently, and (3) data loaded by prefetchers (either the DMP itself or other prefetchers). We analyze which commercial DMPs are prone to each leakage class based on prior reverse-engineering efforts, report which classes have been demonstrated in prior attacks, and identify the remaining unknown design points that could enable new attacks. Importantly, we show that selective disabling [54] does not mitigate all leakage classes, making it an error-prone defense whose security is hard to reason about. In addition to this informal analysis, we formally model existing DMP designs as extensions of a standard speculative-execution semantics.

SecDMP. To overcome the limitations of existing defenses, we propose SECDMP, a new hardware-based defense mechanism for securing DMPs. SECDMP requires that secrets are marked in memory—a technique employed in many Spec-tre defenses [20], [26], [55], [71]—and prevents prefetches and state updates that are based on secret data. Using our formal model, we prove that SECDMP prevents all secret leakage through the DMP. Specifically, when combined with a baseline speculative semantics without a DMP, SECDMP does not introduce additional leakage beyond the baseline. In particular, when combined with a strong Spectre defense such as ProSpeCT [20], SECDMP restores full microarchitectural security for constant-time cryptographic code.

On the practical side, we implement several DMPs modeled after commercial designs [17], [64], [65] and academic proposals [19], [73] on the Proteus RISC-V CPU [14]. Using our implementations, we demonstrate all DMP leakage classes through proof-of-concept (PoC) programs, based on existing and novel attacks. To the best of our knowledge, these are the first open-source DMP implementations and PoC DMP attacks on RISC-V. To assess SECDMP's cost and effectiveness, we evaluate two configurations: SECDMP on a speculative out-of-order baseline, which only prevents leakage through the DMP; and SECDMP combined with ProSpeCT [20], restoring full microarchitectural security for constant-time code. Results show that SECDMP incurs minimal hardware cost and performance overhead: it increases chip area by 0.5% without affecting the critical path, and has an average performance overhead of 0.36% on our benchmarks with a maximum of 3.3%. Furthermore, we experimentally confirm that SECDMP eliminates all secret leakage across our benchmark programs.

Contributions. In summary, our contributions are:

• We classify how DMPs leak secrets (Section IV). Our classification reveals that current mitigations are insufficient or expensive, which we experimentally validate.

• We present a modular formal model of DMPs that we instantiate with existing designs (Section VI).

• We propose SECDMP, a hardware-based defense mechanism that prevents DMPs from leaking secrets (Section V), with a formal proof of security (Section VII).

• We implement the first open-source DMPs on a research processor, and implement and evaluate SECDMP and its combination with ProSpeCT. Our results show that SECDMP is effective, incurring low hardware cost and minimal performance overhead (Section VIII).

Availability. All artifacts are available at https://github.com/JensTheGrens/secdmp. This paper is an extended version of [61], containing the full formalization and security proofs.

References (76)