ShadowBound:通过高级元数据管理和定制化编译器优化实现高效的堆内存保护
ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization
AI总结:
本文提出ShadowBound,一种基于LLVM的堆内存保护设计,利用影子内存管理元数据并进行定制化编译器优化以实现高效越界防御,可与现有释放后使用防御无缝集成,以极低开销提供强大的堆保护。
摘要:
在软件开发中,C和C++等不安全语言的普遍存在引入了潜在漏洞,尤其是在堆(动态内存分配的关键组件)中。尽管堆非常重要,但堆管理的复杂性使得堆损坏普遍存在,对系统安全构成了严重威胁。尽管以往针对时间和空间内存安全的解决方案表现出被认为不切实际的开销,我们提出了ShadowBound,一种独特的堆内存保护设计。其核心在于,ShadowBound是一种高效的越界防御机制,能够与各种释放后使用防御(如MarkUs、FFMalloc、PUMM)协同工作,且无兼容性限制。我们利用基于影子内存的元数据管理机制来存储堆块边界,并应用为边界检查量身定制的编译器优化。我们在LLVM框架上实现了ShadowBound,并集成了三种最先进的释放后使用防御。评估表明,ShadowBound以极小的时间和内存开销提供了强大的堆保护,证明了其在保护现实世界程序免受普遍堆漏洞影响方面的有效性和高效性。
英文摘要:
In software development, the prevalence of unsafe languages such as C and C++ introduces potential vulnerabilities, especially within the heap, a pivotal component for dynamic memory allocation. Despite its significance, heap management complexities have made heap corruption pervasive, posing severe threats to system security. While prior solutions aiming for temporal and spatial memory safety exhibit overheads deemed impractical, we present ShadowBound, a unique heap memory protection design. At its core, ShadowBound is an efficient out-of-bounds defense that can work with various use-after-free defenses (e.g. MarkUs, FFMalloc, PUMM) without compatibility constraints. We harness a shadow memory-based metadata management mechanism to store heap chunk boundaries and apply customized compiler optimizations tailored for boundary checking. We implemented ShadowBound atop the LLVM framework and integrated three state-of-the-art use-after-free defenses. Our evaluations show that ShadowBound provides robust heap protection with minimal time and memory overhead, suggesting its effectiveness and efficiency in safeguarding real-world programs against prevalent heap vulnerabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。