作为不安全编译的怪异机器
Weird Machines as Insecure Compilation
摘要:
奇怪的机器-通过利用安全漏洞访问的计算模型-产生于程序员头脑中关于程序应该如何运行的模型和实际执行的实现之间的差异。以前试图推理或识别怪异机器的尝试是通过正式的计算结构(如状态机和图灵机)来看待这些模型。但由于程序员很少以这种方式思考程序,因此很难有效地应用关于怪异机器的见解来提高安全性。本文从程序设计语言理论和安全编译的角度出发,提出了一种新的怪异机器的观点。我们从一个用高级源语言编写的程序开始,而不是从程序员的头脑中提取的未指定的模型,该程序通过设计来强制执行安全属性。代替状态机来描述计算,我们使用这个源语言和一个目标语言的定义良好的语义,其中源程序将被编译。怪异机器是一组行为,它们可以通过目标语言编译的源程序实现,而不能直接在源语言中实现。也就是说,漏洞是不安全编译的见证。本文开发了一个框架,将奇怪的机器特征化为不安全的编译,并结合常见的漏洞示例说明了该框架。我们研究的安全属性的类,利用违反,在编译器堆栈中的组合性的利用,以及奇怪的机器和缓解出现。
英文摘要:
Weird machines---the computational models accessible by exploiting security vulnerabilities---arise from the difference between the model a programmer has in her head of how her program should run and the implementation that actually executes. Previous attempts to reason about or identify weird machines have viewed these models through the lens of formal computational structures such as state machines and Turing machines. But because programmers rarely think about programs in this way, it is difficult to effectively apply insights about weird machines to improve security. We present a new view of weird machines based on techniques from programming languages theory and secure compilation. Instead of an underspecified model drawn from a programmers' head, we start with a program written in a high-level source language that enforces security properties by design. Instead of state machines to describe computation, we use the well-defined semantics of this source language and a target language, into which the source program will be compiled. Weird machines are the sets of behaviors that can be achieved by a compiled source program in the target language that cannot be achieved in the source language directly. That is, exploits are witnesses to insecure compilation. This paper develops a framework for characterizing weird machines as insecure compilation, and illustrates the framework with examples of common exploits. We study the classes of security properties that exploits violate, the compositionality of exploits in a compiler stack, and the weird machines and mitigations that arise.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。