arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1807.00477cs.CR
收藏

BesFS:具有机械化安全证明的飞地文件系统POSIX

BesFS: A POSIX Filesystem for Enclaves with a Mechanized Safety Proof

Shweta Shinde, Shengyi Wang, Pinghai Yuan, Aquinas Hobor, Abhik Roychoudhury, Prateek Saxena

摘要:

新的可信计算原语(如英特尔SGX)已经证明,在商用可信处理器上的安全区中运行用户级应用程序是可行的,无需信任大型操作系统。但是,操作系统仍然可以通过篡改系统调用返回值来损害安全区的完整性。事实上,已经表明,这些攻击的一个子类,称为Iago攻击,可以在飞地程序中执行任意逻辑。现有的飞地系统具有非常大的TCB,并且它们在系统调用接口处实现难以验证完整性的自组织检查。为此,我们提出了BesFS-第一个文件系统接口,可证明保护飞地完整性对一个完全恶意的OS。我们证明了167个引理和2个关键定理在4625行的Coq证明脚本,这直接证明了BesFS规范的安全属性。BesFS由15个具有组合安全性的API组成,并且具有足够的表达能力来支持我们测试的31个实际应用程序。BesFS集成到现有的SGX应用程序中,对TCB的影响最小。BesFS可以作为手工编码API检查的参考实现。

英文摘要:

New trusted computing primitives such as Intel SGX have shown the feasibility of running user-level applications in enclaves on a commodity trusted processor without trusting a large OS. However, the OS can still compromise the integrity of an enclave by tampering with the system call return values. In fact, it has been shown that a subclass of these attacks, called Iago attacks, enables arbitrary logic execution in enclave programs. Existing enclave systems have very large TCB and they implement ad-hoc checks at the system call interface which are hard to verify for completeness. To this end, we present BesFS--the first filesystem interface which provably protects the enclave integrity against a completely malicious OS. We prove 167 lemmas and 2 key theorems in 4625 lines of Coq proof scripts, which directly proves the safety properties of the BesFS specification. BesFS comprises of 15 APIs with compositional safety and is expressive enough to support 31 real applications we test. BesFS integrates into existing SGX-enabled applications with minimal impact to TCB. BesFS can serve as a reference implementation for hand-coded API checks.

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

↑