SABLE: Minimalist Instruction-Level Authenticated Encryption for Constrained Confidential Computing

summary

The gist

Instruction-level encryption (ILE) enables CPU-level decryption, execution, and optionally authentication of individual encrypted program instructions at runtime.<ref:2607.16771#pg1,Instruction-level…

In short

The work explores a RISC-V processor architecture called SABLE to enable minimal instruction-level authenticated encryption of programs at runtime. It integrates decryption and verification stages into the processor's instruction memory wrapper and frontend, testing seven micro-architectures. Results show significant overheads in area, performance, power, and energy per instruction across different designs.

Key concepts

Instruction-Level Encryption (ILE)
ILE encrypts individual program instructions at runtime using a CPU-bound key. This hides the instruction stream from attackers by making it unreadable unless the CPU actively decrypts and verifies each instruction before execution, offering protection against code tampering.
SABLE Architecture
SABLE is a RISC-V processor design specifically tailored for minimally invasive ILE. It is agnostic to the underlying micro-architecture and integrates decryption/verification points at two locations: the instruction-memory wrapper and the CPU frontend, allowing it to work with standard RISC-V toolchains.
ASCON-128a
ASCON-128a is a specific authenticated encryption cipher used in this design. It is employed to draw the secrecy of stored code under a key that never leaves the CPU, providing strong security guarantees against ciphertext or tag modifications.

Terminology used across episodes

This episode discusses

The paper

SABLE: Minimalist Instruction-Level Authenticated Encryption for Constrained Confidential Computing · Read on arXiv

Durham University

Conventional processor designs expose code and data as plaintext throughout execution, rendering them inherently vulnerable to attacks that recover intellectual property or modify security/safety checks. Instruction-level encryption (ILE) enables CPU-level decryption, execution, and optionally authentication of individual encrypted program instructions at runtime. However, existing proposals depend on specific micro-architectures, detect corrupted instructions after they have executed, rely on non-standard ciphers, or require complex analyses of program state. In this work, we introduce and present a design exploration of a RISC-V processor architecture (SABLE) that enables minimally invasive instruction-level authenticated encryption of programs. SABLE is agnostic to the underlying micro-architecture, remaining compatible with the standard RISC-V toolchain with minor changes to post-process compiled ELF binaries. We integrate a decrypt-and-verify stage at two points (the instruction-memory wrapper and the CPU frontend) and explore seven ILE micro-architectures from a single-cycle (combinational) design to six multi-cycle (sequential) variants. We implement and evaluate the designs using ASCON-128a on a Xilinx Artix-7 FPGA with the open-source NEORV32 system on chip. Relative to baseline performance, the configurations span LUT, performance, power, and energy-per-instruction overheads of 1.6-9.3 times, 4.1-10.0 times, 1.5-8.0 times, and 10.4-80.0 times, respectively, using the Dhrystone benchmarking suite. Finally, we discuss design trade-offs, highlighting area-, performance-, and energy-aware design points.

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "SABLE: Minimalist Instruction-Level Authenticated Encryption for Constrained Confidential Computing".

Paper summary: Nadia: So we're looking at this paper called "SABLE: Minimalist Instruction-Level Authenticated Encryption for Constrained Confidential Computing". It’s about a new way to protect software when you can't trust the processor itself.

Elias: Yeah, the big idea is that conventional processor designs expose code and data as plaintext throughout execution, which makes them vulnerable to attacks where someone can recover intellectual property or change security checks.

Nadia: So what SABLE claims is that instruction-level encryption enables CPU-level decryption, execution, and optionally authentication of individual encrypted program instructions at runtime. It's about doing the work inside the CPU core while keeping things secret from an attacker.

Priya: But I always wonder how this actually works in practice when we think about these embedded systems where everything is constrained. What makes this approach different from what we see in other proposals?

Elias: Existing proposals often depend on specific micro-architectures or require complex analyses of program state to address modifications or injections that bypass block boundaries. This work introduces a RISC-V processor architecture called Sable that is agnostic to the underlying micro-architecture, meaning it stays compatible with standard RISC-V toolchains with just minor changes to how you compile the ELF binaries.

Nadia: And they explore seven different micro-architectures, ranging from single cycle designs up to six multi cycle variants. They integrate a decrypt and verify stage at two points: the instruction memory wrapper and the CPU frontend.

Priya: That sounds like a lot of moving parts. What kind of trade-offs are we looking at when you're exploring those different designs? Are we just looking at which one is fastest or if it uses too much power for a typical embedded device?

Elias: They evaluate them across area, performance, and energy per instruction overheads. The results show configurations spanning over sixteen times in terms of area overheads using the Dhrystone benchmarking suite.

Nadia: That's a wide range, from one point six times up to ninety-three times for area. And when you look at power and energy per instruction, those numbers go even higher, up to eighty times in some cases.

Priya: Eighty times is a lot of overhead for something that needs to run reliably on an embedded system. What about the specific configurations they found that were actually the best? Are there any sweet spots?

Paper summary: Elias: The paper points out that the multi cycle designs show three distinct optima depending on what you're prioritizing. One configuration, MCP one, minimizes area and power overheads. Another one, MCP three, minimizes performance overhead. And another one, MCP two focuses on minimizing energy per instruction overheads.

Nadia: So they found different ways to balance the cost of implementing this encryption in hardware versus how much it slows down the actual program execution. That’s a key point for anyone building this kind of system.

Priya: When you talk about those trade-offs, are we talking about something that's practical for a real manufacturing line or a medical device, or is this mostly theoretical exploration?

Elias: It’s an exploration on the Spike RISC-V ISA simulator core at two integration points: the instruction memory wrapper and the CPU frontend. They use this setup to provide a functional reference model for verifying and prototyping these designs right at the ISA level.

Nadia: And they also look at how this fits into existing hardware protection schemes by comparing Sable against things like ASIST or FPGA Morpheus, which shows where its specific approach lands in terms of granularity and authentication.

Priya: So it’s positioning this new instruction-level authenticated encryption scheme against the existing landscape of hardware assistance. It makes me wonder how much easier it would be to implement something like this on a standard embedded core without needing these custom FPGA designs first.

Elias: The paper does mention that SABLE draws the secrecy of stored code directly from ASCON-128a under a CPU bound key that is never exposed. It provides a sharper guarantee than implicit schemes because any change to the ciphertext, its tag, or its location makes the check fail and an exception is raised deterministically before it executes.

Nadia: That deterministic failure and exception mechanism sounds really strong for security because it means if someone tries to tamper with even one bit of the encrypted instruction stream, the processor just stops things immediately.

Priya: So that's a big part of the security claim, linking the failure directly to a hardware exception before execution. What about how you actually get this encrypted program running?

Elias: Programs are provisioned in an encrypted form and then incrementally decrypted inside the processor, word by word. This is done through a post link transformation where GCC compiles to an ELF with plaintext text and an Encrypted text section placed alongside it.

Paper summary: Nadia: That means the toolchain has to be modified—you need a custom linker script defining two separate program headers for the encrypted and tag sections. It's not just about adding one line of code; it changes how the entire software build process works.

Priya: That sounds like a significant hurdle for adoption. Modifying the compiler and linker pipeline adds complexity that might make it harder to get this into mainstream embedded development tools right away.

Elias: The authors are focused on making it work within the standard RISC-V toolchain, just with those necessary post process changes. They also address defeating the Cipher Instruction Search Attack, which means no ciphertext can verify without the key.

Nadia: That instruction search attack defense is important because if an attacker can't even verify what they're looking at without the key, they can’t just probe and learn things from it in transit. It keeps things locked down.

Priya: So that brings us to the conclusion of this paper. What does "SABLE: Minimalist Instruction-Level Authenticated Encryption for Constrained Confidential Computing" mean for us who are listening?

Elias: In simple terms, this work presents a design exploration of a RISC-V processor architecture called Sable that enables minimally invasive instruction level authenticated encryption of programs. It's showing that explicit, pre execution authenticated execution is feasible on lightweight embedded RISC-V cores.

Nadia: That means we can do instruction level protection without needing some massive, specialized hardware that requires a whole different chip design.

Priya: This work constitutes what they claim to be the first FPGA validated power performance area energy design space exploration of instruction level ASCON 128a authenticated decryption. It's showing that there is a viable way to do this with existing, well-understood RISC-V platforms.

Elias: The future research areas they point toward include supporting control flow integrity enforcement and authenticated encryption of data memory. They’re looking at expanding the scope beyond just protecting the instruction stream to also protecting general data memory access.

Nadia: It’s about moving from just hiding the code to ensuring that when you run that code, it hasn't been secretly altered by an attacker. That shifts the focus from just confidentiality to integrity during execution.

Conclusion: Nadia: So we’re wrapping up this look at SABLE: Minimalist Instruction-Level Authenticated Encryption for Constrained Confidential Computing.

Elias: It’s about showing that you can actually do instruction level authenticated encryption on these smaller RISC-V cores without needing some huge, specialized hardware.

Nadia: It seems like the paper is focused on proving that explicit pre execution authentication is possible even when the processor isn't fully trusted.

Priya: I'm interested in how they proved it works, because I always want to know what the data really shows before we trust a result about security guarantees.

Elias: They use ASCON 128a for this, and the key is that the key stays inside the CPU bound and is never exposed to anyone.

Nadia: And they found this approach provides a stronger guarantee than other methods because if even one bit of the encrypted instruction stream changes, it fails deterministically before anything executes.

Priya: So what does that mean for real world deployments? Does it just slow things down a lot?

Elias: It does have overheads, but they explored different designs and found specific configurations that balance area and power against performance.

Nadia: They looked at seven micro architectures, from single cycle to multi cycle designs, and the results show trade offs in terms of how much memory space you need versus how much energy you use per instruction.

Priya: So if I’m building something for a medical device, which configuration would I even look at first based on those numbers?

Elias: The paper points out that different multi cycle designs have different optima depending on whether you want to minimize area, minimize power, or minimize the energy per instruction overhead.

Nadia: It suggests that you can find a sweet spot where it’s efficient enough for constrained environments.

Priya: That’s interesting because it moves us from just "can we do this?" to "how do we make it practical and efficient?"

Elias: Exactly, so now the question shifts to how easy is that toolchain integration? Because getting the compiler and linker to handle the encrypted text sections properly is a real hurdle.

Nadia: Yeah, modifying how GCC compiles code into an ELF file with two separate text sections means you have to change your entire build pipeline.

Priya: And we’ll be looking at those details next because that integration step is where a lot of the complexity usually hides in plain sight.

More episodes

← Home