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

CUP:全面保护C/C ++的用户空间

CUP: Comprehensive User-Space Protection for C/C++

Nathan Burow, Derrick McKee, Scott A. Carr, Mathias Payer

摘要:

C/C++应用程序中的内存损坏漏洞使攻击者能够执行代码、更改数据和泄漏信息。当前的内存消毒器不提供程序数据的全面覆盖。特别是,现有的工具主要关注堆分配,对堆栈分配和全局变量的支持有限。此外,现有的工具专注于主要的可执行文件,对系统库的支持有限。此外,它们遭受假阳性和假阴性。我们提出了C/C++的全面用户空间保护CUP,这是一种LLVM消毒器,为64位架构上的C/C++程序提供完整的空间和概率临时内存安全(具有x86_64的原型实现)。CUP使用混合元数据方案,支持所有程序数据,包括全局变量、堆或堆栈,并维护ABI。与NIST Juliet测试套件的现有方法相比,CUP与最先进的LLVM消毒剂相比,将假阴性减少了10倍(0.1%),并且不会产生假阳性。CUP检测所有用户空间代码,包括libc和其他系统库,将它们从受信任的代码库中删除。

英文摘要:

Memory corruption vulnerabilities in C/C++ applications enable attackers to execute code, change data, and leak information. Current memory sanitizers do no provide comprehensive coverage of a program's data. In particular, existing tools focus primarily on heap allocations with limited support for stack allocations and globals. Additionally, existing tools focus on the main executable with limited support for system libraries. Further, they suffer from both false positives and false negatives. We present Comprehensive User-Space Protection for C/C++, CUP, an LLVM sanitizer that provides complete spatial and probabilistic temporal memory safety for C/C++ program on 64-bit architectures (with a prototype implementation for x86_64). CUP uses a hybrid metadata scheme that supports all program data including globals, heap, or stack and maintains the ABI. Compared to existing approaches with the NIST Juliet test suite, CUP reduces false negatives by 10x (0.1%) compared to the state of the art LLVM sanitizers, and produces no false positives. CUP instruments all user-space code, including libc and other system libraries, removing them from the trusted code base.

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

↑