Skip to main content
QUICK REVIEW

[Paper Review] SplittingSecrets: A Compiler-Based Defense for Preventing Data Memory-Dependent Prefetcher Side-Channels

Reshabh K Sharma, Dan Grossman|arXiv (Cornell University)|Jan 18, 2026
Security and Verification in ComputingComputer Science0 citations
TL;DR

SplittingSecrets is a compiler-based tool that hardens software libraries against data memory-dependent prefetcher (DMP) side-channels by splitting secrets across memory with a fixed prefix to prevent DMP-triggered leaks, implemented in LLVM for ARM64 and evaluated on libsodium.

ABSTRACT

Traditional side-channels take advantage of secrets being used as inputs to unsafe instructions, used for memory accesses, or used in control flow decisions. Constant-time programming, which restricts such code patterns, has been widely adopted as a defense against these vulnerabilities. However, new hardware optimizations in the form of Data Memory-dependent Prefetchers (DMP) present in Apple, Intel, and ARM CPUs have shown such defenses are not sufficient. These prefetchers, unlike classical prefetchers, use the content of memory as well as the trace of prior accesses to determine prefetch targets. An adversary abusing such a prefetcher has been shown to be able to mount attacks leaking data-at-rest; data that is never used by the program, even speculatively, in an unsafe manner. In response, this paper introduces SplittingSecrets, a compiler-based tool that can harden software libraries against side-channels arising from DMPs. SplittingSecrets's approach avoids reasoning about the complex internals of different DMPs and instead relies on one key aspect of all DMPs: activation requires data to resemble addresses. To prevent secret data from leaking, SplittingSecrets transforms memory operations to ensure that secrets are never stored in memory in a manner resembling an address, thereby avoiding DMP activation on those secrets. Rather than disable a DMP entirely, SplittingSecrets can provide targeted hardening for only specific secrets entirely in software. We have implemented SplittingSecrets using LLVM, supporting both source-level memory operations and those generated by the compiler backend for the AArch64 architecture, We have analyzed the performance overhead involved in safeguarding secrets from DMP-induced attacks using common primitives in libsodium, a popular cryptographic library when built for Apple M-series CPUs.

Motivation & Objective

  • Motivate and address data memory-dependent prefetcher (DMP) side-channels that bypass traditional constant-time defenses.
  • Propose a compiler-based transformation to prevent secrets from participating in DMP page walks.
  • Implement the approach in LLVM for ARM64 and assess performance overhead on a cryptographic library.
  • Provide a software-only defense that works across known DMP-enabled CPUs without requiring privileged hardware changes.

Proposed method

  • Transform memory stores and loads so secrets reside in memory locations that cannot trigger a valid DMP page walk by prefixing 64-bit words with a fixed non-matching high half.
  • Split secrets into 32-bit chunks and store alternating chunks with a persistent prefix in extra allocated memory.
  • Annotate and track secret memory at source or compiler-generated memory operations using an upper-bit tag on pointers for dynamic tracking.
  • Allocate and map extra memory for secrets and provide a runtime to handle secret tracking and access checks.
  • Apply the transformation at LLVM IR for source-level operations and at MIR for AArch64 backend, handling stack, heap, and global secrets.
  • Ensure correctness by extensive testing with unit tests and libsodium, and security by guaranteeing transformed data cannot participate in a DMP page walk.
Figure 1 : The end-to-end pipeline of SplittingSecrets . Extra memory is allocated for annotated secrets, with the top bits of addresses set for dynamic tracking. At the LLVM IR level, memory operations are instrumented with checks and transformed loads and stores for our defense. Memory operations
Figure 1 : The end-to-end pipeline of SplittingSecrets . Extra memory is allocated for annotated secrets, with the top bits of addresses set for dynamic tracking. At the LLVM IR level, memory operations are instrumented with checks and transformed loads and stores for our defense. Memory operations

Experimental results

Research questions

  • RQ1Can a compiler-based memory transformation prevent data memory-dependent prefetcher side-channels across architectures?
  • RQ2How effective is the SplittingSecrets approach at preventing DMP-triggered leaks while preserving program semantics?
  • RQ3What is the performance/memory overhead when protecting cryptographic libraries against DMP side-channels?
  • RQ4Can the method adapt to different DMP implementations by rotating prefixes or adjusting secret fragment sizes?

Key findings

  • The tool is implemented in LLVM for ARM64 and targets cryptographic libraries.
  • Secret data is split into 32-bit chunks and stored with a fixed prefix to prevent page walks.
  • Extra memory is allocated for secrets and a runtime tracks secret locations to enable correct loads/stores.
  • The approach is designed to be cross-platform and adaptable to various DMP designs by changing the prefix.
  • Evaluation on libsodium demonstrates the feasibility of software-only defense without hardware changes.
Figure 2 : Example of transforming a 256-bit unsafe store. Each circle represents 64 bits. 64-bit chunks of the input (e.g the magenta and blue semi-circles) are split and padded with a 32-bit fixed constant value (black semi-circle.) The lower half with padding is stored at the original memory loca
Figure 2 : Example of transforming a 256-bit unsafe store. Each circle represents 64 bits. 64-bit chunks of the input (e.g the magenta and blue semi-circles) are split and padded with a 32-bit fixed constant value (black semi-circle.) The lower half with padding is stored at the original memory loca

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.