当好的组件变坏:尽管有动态妥协,形式上安全的编译
When Good Components Go Bad: Formally Secure Compilation Despite Dynamic Compromise
摘要:
我们提出了一个新的正式标准,用于评估不安全语言的安全编译方案,为遇到未定义行为(例如,访问越界数组)后可能受到损害的软件组件表达端到端的安全保证。我们的标准是第一个模型动态妥协的系统中相互不信任的组件,明确指定的特权。它阐明了应该如何保护每个组件不受其他组件的影响-特别是那些遇到未定义行为并受到损害的组件。每个组件都有安全编译保证-特别是,它的内部不变量受到保护,不受受损组件的影响-直到这个组件本身受到损害,之后我们假设攻击者可以完全控制并使用这个组件的特权来攻击其他组件。更准确地说,安全编译链必须确保动态受损的组件不能在目标级别破坏系统的安全属性,就像任意攻击者控制的组件(具有相同的接口和权限,但没有未定义的行为)在源级别已经可以破坏系统的安全属性一样。为了说明该模型,我们构建了一个安全的编译链的一个小的不安全的语言的缓冲区,程序和组件,针对一个简单的抽象机器内置的划分。我们给出了一个机器检查证明Coq,这个编译器满足我们的安全编译标准。最后,我们表明,分区抽象机提供的保护保证,可以实现在机器代码级别使用软件故障隔离或基于标签的参考监视器。
英文摘要:
We propose a new formal criterion for evaluating secure compilation schemes for unsafe languages, expressing end-to-end security guarantees for software components that may become compromised after encountering undefined behavior---for example, by accessing an array out of bounds. Our criterion is the first to model dynamic compromise in a system of mutually distrustful components with clearly specified privileges. It articulates how each component should be protected from all the others---in particular, from components that have encountered undefined behavior and become compromised. Each component receives secure compilation guarantees---in particular, its internal invariants are protected from compromised components---up to the point when this component itself becomes compromised, after which we assume an attacker can take complete control and use this component's privileges to attack other components. More precisely, a secure compilation chain must ensure that a dynamically compromised component cannot break the safety properties of the system at the target level any more than an arbitrary attacker-controlled component (with the same interface and privileges, but without undefined behaviors) already could at the source level. To illustrate the model, we construct a secure compilation chain for a small unsafe language with buffers, procedures, and components, targeting a simple abstract machine with built-in compartmentalization. We give a machine-checked proof in Coq that this compiler satisfies our secure compilation criterion. Finally, we show that the protection guarantees offered by the compartmentalized abstract machine can be achieved at the machine-code level using either software fault isolation or a tag-based reference monitor.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。