AtomicDisk: A Secure Virtual Disk for TEEs against Eviction Attacks

Hongliang Tian, Ant Group; Xinyi Yu, NICE Lab, Xiamen University; Shaowei Song and Qingsong Chen, Ant Group; Zhihao Zhang and Shiyu Wang, NICE Lab, Xiamen University; Weijie Liu, Nankai University; Erci Xu, Shanghai Jiao Tong University; Shoumeng Yan, Ant Group; Yiming Zhang, NICE Lab, Xiamen University and Shanghai Jiao Tong University

SGX-PFS is the state-of-the-art secure storage solution for Trusted Execution Environment (TEE). SGX-PFS uses Merkle Hash Trees (MHT) to achieve confidentiality, integrity, and freshness, and adopts a recovery journal to ensure crash consistency. Unfortunately, SGX-PFS is vulnerable to a new type of eviction attacks: a privileged adversary can capture transient on-disk states (referred to as snapshots), which are generated by cache evictions inside the TEE (invisible and unanticipated to the user) and can potentially result in security loopholes.

Snapshots are allowed mainly because neither the POSIX file system interface nor the block interface has constraints on the ordering and timing for the persistence of writes. To address this vulnerability, we propose a new security property called sync atomicity, which promises that all writes before a sync request are committed in an all-or-nothing manner. We further design a secure virtual disk (called AtomicDisk) by enhancing SGX-PFS. AtomicDisk achieves sync atomicity by introducing an internal commit operation, so that evicted (uncommitted) writes can be distinguished from synced (committed) writes, thus effectively preventing eviction attacks. We compare AtomicDisk to SGX-PFS with trace-driven workloads. SGX-PFS generates hundreds of thousands of snapshots being vulnerable to eviction attacks. In contrast, AtomicDisk correctly generates exactly one valid state (caused by a sync), while achieving better performance than SGX-PFS.

FAST '25 Open Access Sponsored by
NetApp

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

This content is available to:

BibTeX
@inproceedings {305248,
author = {Hongliang Tian and Xinyi Yu and Shaowei Song and Qingsong Chen and Zhihao Zhang and Shiyu Wang and Weijie Liu and Erci Xu and Shoumeng Yan and Yiming Zhang},
title = {{AtomicDisk}: A Secure Virtual Disk for {TEEs} against Eviction Attacks},
booktitle = {23rd USENIX Conference on File and Storage Technologies (FAST 25)},
year = {2025},
isbn = {978-1-939133-45-8},
address = {Santa Clara, CA},
pages = {449--459},
url = {https://www.usenix.org/conference/fast25/presentation/tian-hongliang},
publisher = {USENIX Association},
month = feb
}

Presentation Video