Towards Provably-Secure Remote Memory Attestation

Alexandra Boldyreva, Taesoo Kim, Richard J. Lipton, Bogdan Warinschi

Abstract

Memory corruption vulnerabilities, particularly heap overflows, remain a significant threat to software integrity in remote and cloud-based environments. While local defense mechanisms like stack canaries are common, they are difficult to adapt to remote settings without incurring prohibitive performance costs or relying on heuristic security models. This paper presents the first provably secure remote memory attestation (RMA) protocol designed to detect heap-based memory corruption. By utilizing refreshable secret sharing and cryptographic canaries, the proposed system achieves robust security with a negligible performance overhead of approximately 3%.

Introduction

In modern cloud computing, users often execute sensitive workloads on remote infrastructure. Ensuring that these programs have not been compromised by memory corruption attacks—such as buffer or heap overflows—is a critical challenge. Traditional local defenses often fail in these scenarios because a remote verifier cannot efficiently monitor a program's execution state without massive data transfer or a perfectly trusted communication channel.

Furthermore, existing remote attestation schemes often rely on "heuristic" security, meaning they are built on intuition rather than formal mathematical proofs. This lack of rigor makes it difficult to quantify the exact security guarantees provided against a sophisticated adversary. This research bridges the gap between theoretical cryptography and practical systems security by introducing an RMA protocol with a formal security proof.

System Architecture and Methodology

The core of the proposed system is a mechanism that embeds "cryptographic canaries" throughout a program's heap memory. Unlike standard canaries, which are static values, these are components of a secret key managed through Refreshable Secret Sharing.

1. Secret Sharing and Distribution

A secret key is split into $n$ shares using an XOR-based secret sharing scheme. These shares are scattered across the program's heap. To detect an attack, a remote verifier challenges the system to reconstruct the secret. If any shares have been overwritten by a heap overflow, the reconstruction will fail, alerting the verifier to the compromise.

2. The Prover Wrapper

To ensure the integrity of the attestation process, the system employs a "wrapper" entity that acts as the prover. This wrapper runs in a separate memory space protected by the Operating System's Memory Management Unit (MMU). It communicates with the target application via ptrace, ensuring that even if the target program's logic is subverted, the attestation mechanism remains isolated and trustworthy.

3. Periodic Key Refreshes

To defend against adversaries who might attempt to slowly leak secret shares over time, the system performs periodic "key refreshes." This process re-randomizes the shares while maintaining the same underlying secret, effectively neutralizing the progress of a slow-moving attacker.

4. Protocol Variants

The authors developed two versions of the RMA protocol to balance performance and theoretical rigor:

  • Hash-based RMA: Utilizes a hash of the reconstructed secret and a random nonce. This version is highly efficient but relies on the "Random Oracle Model" for its security proof.
  • Encryption-based RMA: Uses a specialized public-key scheme (Short Cramer-Shoup). This provides stronger security guarantees in the "standard model," relying on the hardness of the Decisional Diffie-Hellman problem.

Implementation and Evaluation

The prototype was implemented using LD_PRELOAD to intercept malloc and free calls, allowing the system to insert shares into the heap dynamically without requiring modifications to the application's source code. Evaluation focused on two primary areas: computational overhead and real-world usability.

Performance Benchmarks

Using the SPEC CPU2006 benchmark suite, the researchers measured the runtime overhead of computation-heavy tasks. The results demonstrated an average runtime overhead of only 3.1%. Surprisingly, the performance difference between the hash-based and encryption-based protocols was negligible; the primary overhead stemmed from memory fragmentation and network latency rather than cryptographic computation.

Real-World Application Testing

The system was also tested on complex, real-world software including the Firefox web browser, Thunderbird email client, and the Tar utility. In the case of Firefox, the RMA-enabled launch added only 0.023 seconds of delay, a figure imperceptible to the end-user. Additionally, the network footprint remained minimal, with attestation checks requiring the transfer of only 12 to 396 bytes.

Discussion and Limitations

The system successfully detected heap-based memory corruptions in all test environments. However, certain limitations remain. The current threat model focuses on "consecutive" memory overwrites. While non-consecutive writes (jumping over shares) are theoretically possible, the randomized placement of shares makes such an attack difficult to execute in practice. Furthermore, the system's security is contingent on the integrity of the host Operating System; if the kernel is compromised, the isolation of the prover wrapper cannot be guaranteed.

Conclusion

This research demonstrates that provably secure remote memory attestation is not only theoretically sound but also practically viable. By combining cryptographic secret sharing with system-level isolation, the authors provide a robust defense against heap overflows with minimal impact on performance, offering a scalable solution for securing remote cloud workloads.

Summary updated

BibTeX
@article{boldyreva2015towards,
  author = {Alexandra Boldyreva and Taesoo Kim and Richard J. Lipton and Bogdan Warinschi},
  title = {{Towards Provably-Secure Remote Memory Attestation}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2015},
  url = {https://openreview.net/forum?id=UMHyqUHH53N},
}
Figure