arXiv:2608.23365cs.CRAug 2026

Manuscript Offprint

arXiv:2608.23365

SxSSD: A Secure and Extensible Software-defined Solid State Drive

Josh Dafoe, Bo Chen

ABSTRACT

Solid-state drives (SSDs) are built on NAND flash memory and typically expose it to the operating system through a block-based storage interface. As NAND flash has special read/write constraints to accommodate its unique hardware nature, a translation between OS-level I/Os and raw flash memory I/Os is needed. This results in a flash translation layer (FTL) that essentially creates a “trusted computing base” due to its physical isolation from the OS. Building on this trusted computing base, some security designs (e.g., secure data recovery from malware attacks) have been proposed that can ensure strong data security properties even if the OS is compromised. However, they mostly require directly modifying the FTL’s firmware code, which is hard to achieve in practice because the traditional block-based FTL does not provide an interface to modify its internal functions. New flash storage interface designs, such as open-channel SSDs or zoned namespaces, have moved key FTL functions into the OS. These new interfaces alleviate the difficulty of modifying FTL functions, at the cost of blurring the trusted boundary, as the FTL is no longer isolated from the OS.

In this work, we have introduced SxSSD, the secure yet extensible software-defined SSD design. By decoupling the internal policy definitions from the primitive FTL mechanisms, we allow trusted applications to dynamically and securely define the FTL policies and the exposed storage interface (achieving increased flexibility compared to the open-channel and zoned namespaces SSDs). Most significantly, SxSSD can retain the isolation of traditional FTL execution (achieving a level of security similar to that of traditional block-based SSDs). We have identified and addressed a few key security challenges introduced under a compromised OS. In addition, we have implemented a prototype of SxSSD and evaluated its overhead with different FTL policies and storage interfaces. The experimental evaluation demonstrates that the overhead incurred by SxSSD is small compared to native FTL implementations.

Keywords Solid-state Drives · Flash Translation Layer · Extensibility · ZNS · Open-channel SSDs

1 Introduction

Solid-state drives (SSDs), a widely used form of data storage, are largely based on NAND flash memory. Compared to traditional magnetic storage (e.g. hard disk drives), NAND flash exhibits a few special hardware characteristics, which enforce unique low-level storage semantics. Specifically, data stored on NAND flash must be erased in block-sized units, typically a few hundred KiBs, while reads and writes occur in page-sized units, typically a few KiBs. In addition, updating a page requires erasing its entire containing block first, which means that data should not be overwritten in place. Therefore, a simple write request issued by the user application requires a complicated decision based on global metadata maintained throughout the flash. To give the operating system (OS) a consistent storage interface similar to traditional magnetic storage while also addressing the unique hardware constraints of flash memory, a translation from OS-level storage requests to actual flash memory operations is necessary.

To enable this translation, a special piece of firmware, called a flash translation layer (FTL), has been introduced into modern SSDs. The FTL provides the host operating system with a logical interface (we call it flash-to-OS interface, as shown in Figure 1) that differs from the raw flash memory interface, translating the I/O requests issued by the OS into sequences of operations supported by the underlying NAND flash. For example, a block-interface FTL has been broadly implemented in mainstream SSDs. The OS, in turn, often provides applications with another storage interface (we call it OS-to-application interface, as shown in Figure 1) that is different from the one provided by the FTL. Therefore, the storage semantics ultimately observed by the applications are determined by both the flash-to-OS and OS-to-application interfaces.

Figure

Figure 1: An overview of the host and device storage stack, assuming an NVMe SSD is used. The OS-to-application interface is implemented in the host storage stack, while the flash-to-OS interface is implemented in the device-side FTL.

Previous work has introduced software-defined SSDs (e.g., zoned namespaces (ZNS), open-channel SSD (OCSSD)) by exposing flash-to-OS interfaces that are less constrained than the traditional block interface and, therefore, closer to the underlying flash operations [1, 2, 3, 4, 5, 6]. This gives the host greater control over data placement and functions traditionally handled within the FTL, allowing the operating system to construct custom OS-to-application abstractions tailored to different workloads. As a result, applications can be co-designed with the storage stack [7, 8], and different storage semantics can be exposed to different applications [6].

Our key observation is that all prior SSD designs (including block-interface SSDs and software-defined SSDs such as ZNS and OCSSD) share a fundamental limitation: they expose a fixed flash-to-OS interface. This limitation leads to two negative consequences that prevent existing FTL designs from meeting the diverse requirements of emerging applications:

(1) Difficulty in Building High-performance Storage Systems. Previous work has consistently demonstrated that flash storage performance depends strongly on the dynamic interaction between specific workloads and the underlying flash management strategies [9, 10, 4]. However, implementing this “smart” interaction is hard in existing FTL designs, as they all expose a fixed flash-to-OS interface. For block-interface SSDs, the OS typically interacts with the FTL via a limited block-access interface, making it difficult to coordinate the application workloads with the FTL. For example, many applications may suffer from the log on log problem [11], resulting in unnecessary duplicate functions between FTL and the upper-layer software [11]. Software-defined SSDs such as ZNS and OCSSD may partially address this problem by introducing programmability of the OS-to-application interface. However, since their flash-to-OS interface is still fixed, they remain constrained by a single set of storage semantics that inherently favors some workloads over others. For example, ZNS can make some host-side operations (e.g. zone compaction) more expensive than necessary by forcing them through a limited flash-to-OS interface [12, 13]. Overall, although many applications obtain performance benefits from modifying the device-level FTL [13, 14, 15, 16, 17, 18], the fixed flash-to-OS interface makes such modifications difficult in practice.

(2) Difficulty in supporting critical security storage semantics. The device-side FTL is isolated from the host OS by SSD hardware and is therefore a critical security boundary when facing a compromised OS [19, 20]. Previous work has leveraged this by designing modified block-interface FTLs to provide security-critical storage semantics to trusted applications, such as plausibly deniable storage [21], secure data recovery from malware attacks [22, 20, 19, 23], integrity-assured cloud storage [24], etc. Since these modifications rely on the trustworthy nature of the device-side FTL, implementing these designs currently requires explicit modifications to the FTL firmware. Thus, it is difficult (or even impossible) for existing SSDs (including both block-interface and software-defined SSDs) to support such security-critical designs due to the inflexible nature of the flash-to-OS interface in existing FTLs. Notably, the existing software-defined SSDs do not address this problem: While they introduce custom storage semantics at the OS-to-application interface, they fail to support the class of security-critical storage semantics because the flash-to-OS interface remains fixed.

Until now, there has been no existing approach that can overcome the fundamental limitation mentioned above. In this work, we introduce SxSSD, the Secure yet extensible software-defined Solid State Drive, aiming to close this gap. Instead of introducing another FTL with a fixed flash-to-OS interface, SxSSD proposes to introduce extensibility on top of a set of generic FTL procedures by allowing the flash-to-OS storage interface and the supporting FTL policies to be dynamically defined while maintaining the trusted device boundary. Our design is guided by two central requirements: extensibility and secure policy management:

Extensibility. We address the fundamental limitation of a fixed flash-to-OS interface through extensibility, which allows trusted applications to define new storage semantics and FTL behavior. Specifically, SxSSD achieves this extensibility through programmability, by allowing custom policy code and storage semantics to be defined and installed by trusted applications without modifying the FTL firmware. This addresses the difficulty in building high-performance storage systems by allowing FTL behavior to be dynamically tailored to specific workloads, rather than being constrained by a fixed interface. Additionally, this extensibility partially addresses the difficulty of supporting security-critical storage semantics, since such semantics are impractical to realize within the trusted device boundary without a dynamically definable flash-to-OS interface. To enable extensibility, the first challenge is to establish a general programming model to define custom flash-to-OS storage semantics. To address this, we characterize the FTL design space and identify a common structure in which fundamental FTL mechanisms are clearly distinguished from the policies that determine flash-to-OS storage semantics (Section 4). The second challenge is to provide a concrete design through which this programmability can be realized. To address this, the design of SxSSD is informed by the established mechanism-policy decomposition. Specifically, SxSSD is structured so that the core flash management mechanisms are fixed. Then, on top of these, SxSSD exposes a well-defined API (to FTL policies) that allows interaction with the underlying storage hardware, through which they realize host-visible storage semantics. To ensure that custom policies are enforced on-device, policies are (1) stored in flash storage, (2) dynamically loaded into memory, and (3) invoked through an event-driven policy engine. Finally, to expose the programmability externally, SxSSD introduces an interface for installing and managing custom device-enforced policy code. We call this new interface a meta-interface, since it operates at a higher level of abstraction, enabling the definition of custom storage interfaces (i.e. it is “an interface for defining interfaces”), rather than providing fixed storage semantics. Unfortunately, expanding the FTL interface in this way introduces a new attack surface through which an untrusted host OS may attempt to manipulate policies. Our next requirement effectively removes this attack surface by restricting access to the meta-interface.

Secure Policy Management. This requirement enables security-critical semantics by ensuring that policies can only be managed by trusted entities, even with an untrusted OS as a mediator. The first challenge is to prevent untrusted entities from modifying functionality beneath the trusted device boundary. To address this, SxSSD makes the meta-interface the exclusive mechanism through which policies can be managed. In addition, we restrict its use to trusted entities through authentication mechanisms. The second challenge is to ensure that the policy integrity is maintained, and the on-device policy state can be audited. To address this, SxSSD supports policy attestation and protects policy integrity by storing policies in a reserved on-device region outside the policy-visible address space. When required by the trusted application, SxSSD also protects the confidentiality of the policy during management and storage, preventing the adversarial host from inferring the semantics of the policy.

Contributions: Our contributions are as follows:

(i) We survey existing storage interface designs and characterize the FTL design space under a set of unifying abstractions.

(ii) We propose SxSSD, which restructures the FTL according to this characterization and exposes a meta-interface for dynamically defining host-visible storage semantics and installing corresponding on-device policies.

(iii) We introduce mechanisms to make extensibility secure under an untrusted host OS, including authorized policy management, policy attestation, policy freshness, policy integrity, and policy confidentiality.

(iv) We have implemented a prototype of SxSSD in an SSD emulator [25] and evaluated it on multiple real-world workloads, showing only 3.74% overhead over a baseline SSD.

(v) We conduct a case study in which we enable secure data recovery from ransomware attacks, demonstrating SxSSD can support various applications without the need to modify the FTL firmware code.

References (43)