Automatic ISA analysis for Secure Context Switching

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kalani, Neelu S., Bourgeat, Thomas, Hunt, Guerney D. H., Ozga, Wojciech
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910820328275968
author Kalani, Neelu S.
Bourgeat, Thomas
Hunt, Guerney D. H.
Ozga, Wojciech
author_facet Kalani, Neelu S.
Bourgeat, Thomas
Hunt, Guerney D. H.
Ozga, Wojciech
contents Instruction set architectures are complex, with hundreds of registers and instructions that can modify dozens of them during execution, variably on each instance. Prose-style ISA specifications struggle to capture these intricacies of the ISAs, where often the important details about a single register are spread out across hundreds of pages of documentation. Ensuring that all ISA-state is swapped in context switch implementations of privileged software requires meticulous examination of these pages. This manual process is tedious and error-prone. We propose a tool called Sailor that leverages machine-readable ISA specifications written in Sail to automate this task. Sailor determines the ISA-state necessary to swap during the context switch using the data collected from Sail and a novel algorithm to classify ISA-state as security-sensitive. Using Sailor's output, we identify three different classes of mishandled ISA-state across four open-source confidential computing systems. We further reveal five distinct security vulnerabilities that can be exploited using the mishandled ISA-state. This research exposes an often overlooked attack surface that stems from mishandled ISA-state, enabling unprivileged adversaries to exploit system vulnerabilities.
format Preprint
id arxiv_https___arxiv_org_abs_2502_06609
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Automatic ISA analysis for Secure Context Switching
Kalani, Neelu S.
Bourgeat, Thomas
Hunt, Guerney D. H.
Ozga, Wojciech
Operating Systems
Cryptography and Security
Instruction set architectures are complex, with hundreds of registers and instructions that can modify dozens of them during execution, variably on each instance. Prose-style ISA specifications struggle to capture these intricacies of the ISAs, where often the important details about a single register are spread out across hundreds of pages of documentation. Ensuring that all ISA-state is swapped in context switch implementations of privileged software requires meticulous examination of these pages. This manual process is tedious and error-prone. We propose a tool called Sailor that leverages machine-readable ISA specifications written in Sail to automate this task. Sailor determines the ISA-state necessary to swap during the context switch using the data collected from Sail and a novel algorithm to classify ISA-state as security-sensitive. Using Sailor's output, we identify three different classes of mishandled ISA-state across four open-source confidential computing systems. We further reveal five distinct security vulnerabilities that can be exploited using the mishandled ISA-state. This research exposes an often overlooked attack surface that stems from mishandled ISA-state, enabling unprivileged adversaries to exploit system vulnerabilities.
title Automatic ISA analysis for Secure Context Switching
topic Operating Systems
Cryptography and Security
url https://arxiv.org/abs/2502.06609