Triad-NVM: Persistent-Security for Integrity-Protected and Encrypted Non-Volatile Memories (NVMs)

Amro Awad, Laurent Njilla, Mao Ye · DOI

Abstract

Emerging Non-Volatile Memories (NVMs) are promising contenders for building future memory systems. Unlike DRAM, NVMs retain data after power loss, enlarging the attack surface. Security metadata, such as encryption counters and Merkle Tree data, must be securely persisted and recovered to prevent data inconsistency and security vulnerabilities. This paper introduces Persistent-Security, exploring the persistence of both Merkle Trees and encryption counters. We propose Triad-NVM, a framework that utilizes relaxation schemes and optimizations to balance performance, resilience, and recovery time. Triad-NVM improves throughput by ~2x relative to strict persistence and enables recovery of an 8TB system in under 4 seconds—~3648x faster than systems without metadata persistence.

The Challenge of Secure Persistence

Non-Volatile Memory (NVM) combines RAM-like speeds with disk-like persistence. However, this "always-on" property introduces data remanence risks. Standard security measures like Counter-Mode Encryption and Merkle Trees are used to prevent replay attacks and ensure data integrity.

The critical issue is that security metadata must be persisted to the NVM alongside the data. If a system crashes and the metadata is not up-to-date, the data becomes undecryptable or unverifiable. Implementing "strict" persistence—where every metadata update is immediately written to NVM—imposes a massive performance penalty.

Figure 4: The performance impact of strictly persisting Merkle Tree and encryption counters across various benchmarks, showing slowdowns up to 9.4x.

As shown in the figure above, strict persistence can lead to significant system slowdowns, reaching over 9x in some workloads like LIBQUANTUM. This overhead makes traditional security models impractical for high-performance NVM systems.

Triad-NVM Architecture and Methods

Triad-NVM addresses these overheads by partitioning security responsibilities and relaxing persistence requirements where safe. The system architecture distinguishes between the trusted processor boundary and the untrusted NVM.

Figure 3: System architecture showing the interaction between the Secure Processor (Trusted Chip) and the NVM Memory, highlighting the placement of security metadata caches.

The framework employs four key strategies:

  1. Region-Aware Dual-Key Encryption: Memory is partitioned into persistent and non-persistent regions. Persistent regions use a Persistent Key, while non-persistent regions use a Volatile Key that is regenerated on every reboot. This eliminates the need to persist counters for temporary data, as the new key mathematically prevents counter-reuse attacks.
  2. Vertical Merkle Tree Partitioning: The Merkle Tree is split so that strict persistence is only enforced for branches covering persistent data regions.
  3. Bottom-Up Persistence: Instead of updating the tree to the root on every write, Triad-NVM only persists the lower $N$ levels, significantly reducing NVM write traffic.
  4. Lazy Recovery: Integrity trees for non-persistent regions are initialized to zero and rebuilt only upon access, speeding up the boot process.

Evaluation and Results

The researchers evaluated Triad-NVM using the Gem5 full-system simulator with workloads including SPEC2006, PMDK-based applications (Hashtable, Queue), and the DAXBENCH synthetic suite.

Key Performance Metrics

  • Throughput: Triad-NVM achieves an average 2x throughput improvement over strict persistence models.
  • Overhead: Performance overhead is kept between 4.9% and 15.6% compared to a completely unsecured system, a major improvement over the 9.4x slowdown of strict models.
  • Recovery Speed: For an 8TB system, recovery takes less than 4 seconds. Even at 64TB, recovery is completed in 30.6 seconds, representing a 3648x improvement over methods requiring full tree reconstruction (which can take hours).
  • Hardware Longevity: By minimizing metadata writes, the system reduces wear on NVM cells, extending hardware lifespan.

Conclusion

Triad-NVM demonstrates that security and persistency in NVM are inextricably linked. By leveraging the "Volatile Key" insight and intelligent tree partitioning, the framework provides robust protection without the prohibitive costs of traditional strict persistence. While the design currently depends on OS-level memory labeling, it sets a new standard for building high-performance, secure, and rapidly recoverable persistent memory systems.

Summary updated

BibTeX
@misc{awad2018triad,
  author = {Amro Awad and Laurent Njilla and Mao Ye},
  title = {{Triad-NVM: Persistent-Security for Integrity-Protected and Encrypted Non-Volatile Memories (NVMs)}},
  year = {2018},
  eprint = {1810.09438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.09438},
}
Figure