arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.14072cs.CRcs.AR
收藏

一个全面的跨平台内存安全测试套件--面向处理器硬件支持的安全扩展的开放测试框架

A Comprehensive and Cross-Platform Test Suite for Memory Safety -- Towards an Open Framework for Testing Processor Hardware Supported Security Extensions

Wei Song, Jiameng Ying, Sihao Shen, Boya Li, Hao Ma, Peng Liu

摘要:

内存安全在现实中仍然是一个关键的和广泛侵犯的财产。许多防御技术已经被提出和开发,但由于其巨大的运行成本,其中大多数在生产就绪环境中默认不被应用或启用。这种情况可能在不久的将来发生变化,因为硬件支持的防御这些攻击终于开始被商业处理器,操作系统和编译器采用。然后,我们面临一个问题,因为目前没有合适的测试套件来衡量不同处理器上支持的内存安全扩展。事实上,这个问题不仅仅局限于内存安全,而是处理器安全的各个方面。现有的与处理器安全相关的测试套件都缺乏一些关键属性,如全面性、可扩展性和可移植性。作为第一步,我们提出了一个可扩展的测试框架,用于测量处理器的安全性和开源的内存安全测试套件,利用这个框架。该框架被故意设计为灵活的,因此它可以逐步扩展到处理器中所有类型的硬件支持的安全扩展。内存安全的初始测试套件目前包含160个测试用例,涵盖内存的空间和时间安全、内存访问控制、指针完整性和控制流完整性。每种类型的漏洞及其相关的防御都已通过一个或多个测试用例进行了单独评估。该测试套件已移植到三个不同的指令集架构(ISA),并在六个不同的平台上进行了实验。我们还利用测试套件来探索在最新的GNU GCC和LLVM编译器上应用不同的编译器标志集的安全性好处。

英文摘要:

Memory safety remains a critical and widely violated property in reality. Numerous defense techniques have been proposed and developed but most of them are not applied or enabled by default in production-ready environment due to their substantial running cost. The situation might change in the near future because the hardware supported defenses against these attacks are finally beginning to be adopted by commercial processors, operating systems and compilers. We then face a question as there is currently no suitable test suite to measure the memory safety extensions supported on different processors. In fact, the issue is not constrained only for memory safety but all aspect of processor security. All of the existing test suites related to processor security lack some of the key properties, such as comprehensiveness, distinguishability and portability. As an initial step, we propose an expandable test framework for measuring the processor security and open source a memory safety test suite utilizing this framework. The framework is deliberately designed to be flexible so it can be gradually extended to all types of hardware supported security extensions in processors. The initial test suite for memory safety currently contains 160 test cases covering spatial and temporal safety of memory, memory access control, pointer integrity and control-flow integrity. Each type of vulnerabilities and their related defenses have been individually evaluated by one or more test cases. The test suite has been ported to three different instruction set architectures (ISAs) and experimented on six different platforms. We have also utilized the test suite to explore the security benefits of applying different sets of compiler flags available on the latest GNU GCC and LLVM compilers.

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

↑