CISPA
Browse

KeyVisor – A Lightweight ISA Extension for Protected Key Handles with CPU-enforced Usage Policies

Download (756.61 kB)
journal contribution
posted on 2025-07-02, 08:03 authored by Fabian Schwarz, Jan Philipp Thoma, Christian RossowChristian Rossow, Tim Güneysu
The confidentiality of cryptographic keys is essential for the security of protection schemes used for communication, file encryption, and outsourced compu- tation. Beyond cryptanalytic attacks, adversaries can steal keys from memory via software exploits or side channels, enabling them to, e.g., manipulate confidential information or impersonate key owners. Therefore, existing defenses protect keys in dedicated devices or isolated memory, or store them only in encrypted form. However, these designs often provide unfavorable tradeoffs, sacrificing performance, fine-grained access control, or deployability. In this paper, we present KeyVisor, a lightweight Instruction Set Architecture ( ISA) extension that securely offloads the handling of symmetric crypto keys to the CPU. KeyVisor provides CPU instructions that enable applications to request protected key handles and perform AEAD cipher operations on them. The underlying keys are accessible only by KeyVisor, and thus never leak to memory. KeyVisor’s direct CPU integration enables fast crypto operations and hardware-enforced key usage restrictions, e.g., keys usable only for de-/encryption, with a limited lifetime, or with a process binding. Furthermore, privileged software, e.g., the monitor firmware of TEEs, can revoke keys or bind them to a specific process/TEE. We implement KeyVisor for RISC-V based on RocketChip, evaluate its performance, and demonstrate real-world use cases, including key-value databases, automotive feature licensing, and a read-only network middlebox.

History

Primary Research Area

  • Secure Connected and Mobile Systems

CISPA Affiliation

  • Yes

Journal

IACR Transactions on Cryptographic Hardware and Embedded Systems

Volume

2025

Page Range

1-31

Publisher

Universitatsbibliothek der Ruhr-Universitat Bochum

Open Access Type

  • Gold

Sub Type

  • Article

BibTeX

@article{Schwarz:Thoma:Rossow:Güneysu:2025, title = "KeyVisor – A Lightweight ISA Extension for Protected Key Handles with CPU-enforced Usage Policies", author = "Schwarz, Fabian" AND "Thoma, Jan Philipp" AND "Rossow, Christian" AND "Güneysu, Tim", year = 2025, month = 6, journal = "IACR Transactions on Cryptographic Hardware and Embedded Systems", number = "3", pages = "1--31", publisher = "Universitatsbibliothek der Ruhr-Universitat Bochum", issn = "2569-2925", doi = "10.46586/tches.v2025.i3.1-31" }

Usage metrics

    Categories

    No categories selected

    Licence

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC