arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.06609cs.OScs.CR
收藏

面向安全上下文切换的自动ISA分析

Automatic ISA analysis for Secure Context Switching

Neelu S. Kalani, Thomas Bourgeat, Guerney D. H. Hunt, Wojciech Ozga

AI总结:

本文提出Sailor工具,利用Sail语言编写的机器可读ISA规范自动识别上下文切换中需交换的安全敏感ISA状态,并在四个开源机密计算系统中发现三类处理不当的ISA状态及五个可利用的安全漏洞。

摘要:

指令集架构(ISA)十分复杂,包含数百个寄存器和指令,它们在执行过程中可以修改数十个寄存器,且每次执行时变化情况各不相同。散文式的ISA规范难以捕捉这些ISA的复杂细节,往往关于单个寄存器的重要细节分散在数百页文档中。要确保特权软件的上下文切换实现中交换了所有ISA状态,就需要对这些文档进行细致审查。这一人工过程既繁琐又容易出错。我们提出了一种名为Sailor的工具,利用以Sail语言编写的机器可读ISA规范来自动完成这一任务。Sailor利用从Sail收集的数据以及一种将ISA状态分类为安全敏感状态的新颖算法,确定上下文切换期间需要交换的ISA状态。利用Sailor的输出,我们在四个开源机密计算系统中识别出三类处理不当的ISA状态。我们进一步揭示了五个可利用这些处理不当的ISA状态进行利用的不同安全漏洞。本研究揭示了一个常被忽视的攻击面,该攻击面源于处理不当的ISA状态,使非特权攻击者能够利用系统漏洞。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑