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

使用GateKeeper保护TEE对不受信任服务的访问

Securing Access to Untrusted Services From TEEs with GateKeeper

Meni Orenbach, Bar Raveh, Alon Berkenstadt, Yan Michalevsky, Shachar Itzhaky, Mark Silberstein

摘要:

在可信执行环境(TEE)中运行的应用程序通常使用不可信的外部服务,例如主机文件系统。攻击者可能会恶意地改变正常的服务行为,从而触发在正确的服务操作下永远不会发生的细微应用程序错误,从而导致数据泄漏和完整性违规。不幸的是,现有的手动保护是不完整的和临时的,而正式验证的需要特殊的专业知识。我们引入了GateKeeper,这是一个通过利用不可信服务的轻量级正式模型来开发缓解措施和漏洞检查器的框架。由于这种攻击被视为对服务功能正确性的侵犯,因此GateKeeper采用了一种新颖的方法来开发服务的综合模型,而无需正式的方法专业知识。我们利用服务开发中常规使用的可用测试套件来将模型收紧到已知的正确服务实现。GateKeeper使用生成的模型自动生成(1)一个C语言的构造正确的运行时服务验证器,它与一个受信任的应用程序链接,并保护每个服务调用符合模型;(2)一个有针对性的模型驱动的漏洞检查器,用于分析黑盒应用程序。我们在英特尔SGX安全区上评估GateKeeper。我们开发了一个POSIX文件系统和操作系统同步原语的综合模型,同时使用数千个现有的测试套件,以收紧他们的模型,以实际的Linux实现。我们生成验证器并将其与Graphene-SGX集成,并成功保护未修改的Memcached和SQLite,开销可以忽略不计。生成的漏洞检查器检测Graphene-SGX保护层和生产应用程序中的新漏洞。

英文摘要:

Applications running in Trusted Execution Environments (TEEs) commonly use untrusted external services such as host File System. Adversaries may maliciously alter the normal service behavior to trigger subtle application bugs that would have never occurred under correct service operation, causing data leaks and integrity violations. Unfortunately, existing manual protections are incomplete and ad-hoc, whereas formally-verified ones require special expertise. We introduce GateKeeper, a framework to develop mitigations and vulnerability checkers for such attacks by leveraging lightweight formal models of untrusted services. With the attack seen as a violation of a services' functional correctness, GateKeeper takes a novel approach to develop a comprehensive model of a service without requiring formal methods expertise. We harness available testing suites routinely used in service development to tighten the model to known correct service implementation. GateKeeper uses the resulting model to automatically generate (1) a correct-by-construction runtime service validator in C that is linked with a trusted application and guards each service invocation to conform to the model; and (2) a targeted model-driven vulnerability checker for analyzing black-box applications. We evaluate GateKeeper on Intel SGX enclaves. We develop comprehensive models of a POSIX file system and OS synchronization primitives while using thousands of existing test suites to tighten their models to the actual Linux implementations. We generate the validator and integrate it with Graphene-SGX, and successfully protect unmodified Memcached and SQLite with negligible overheads. The generated vulnerability checker detects novel vulnerabilities in the Graphene-SGX protection layer and production applications.

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

↑