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

随机性的错觉:对地址空间布局随机化实现的实证分析

The Illusion of Randomness: An Empirical Analysis of Address Space Layout Randomization Implementations

Lorenzo Binosi, Gregorio Barzasi, Michele Carminati, Stefano Zanero, Mario Polino

AI总结:

本文对Linux、MacOS和Windows等主要桌面平台的ASLR实现进行了首次全面实证评估,发现部分系统关键区域随机化不足,并揭示了Linux 5.18后库熵显著降低及可被利用的关联路径,为OS供应商加强ASLR提供了依据。

摘要:

地址空间布局随机化(ASLR)是现代操作系统采用的关键防御机制,通过随机化进程的内存布局来缓解漏洞利用。然而,严酷的现实是,现实世界中的ASLR实现并不完美,存在攻击者可利用的弱点。本研究通过检查不同进程、线程和系统重启间内存对象放置的变异性,评估了主要桌面平台(包括Linux、MacOS和Windows)上ASLR的有效性。具体而言,我们收集了内存对象位置的样本,进行统计分析以测量这些放置的随机性,并检查内存布局以寻找可能降低这种随机性的对象间模式。结果显示,虽然一些系统(如Linux发行版)提供了强大的随机化,但其他系统(如Windows和MacOS)通常未能充分随机化可执行代码和库等关键区域。此外,我们发现在Linux 5.18版本之后库的熵存在显著的熵减,并识别出攻击者可利用的关联路径以显著降低漏洞利用的复杂性。最终,我们根据严重程度对识别出的弱点进行了排名,并通过概念验证攻击验证了我们的熵估计。简而言之,本文提供了跨不同操作系统ASLR有效性的首次全面评估,并强调了操作系统(OS)供应商加强ASLR实现的机会。

英文摘要:

Address Space Layout Randomization (ASLR) is a crucial defense mechanism employed by modern operating systems to mitigate exploitation by randomizing processes' memory layouts. However, the stark reality is that real-world implementations of ASLR are imperfect and subject to weaknesses that attackers can exploit. This work evaluates the effectiveness of ASLR on major desktop platforms, including Linux, MacOS, and Windows, by examining the variability in the placement of memory objects across various processes, threads, and system restarts. In particular, we collect samples of memory object locations, conduct statistical analyses to measure the randomness of these placements and examine the memory layout to find any patterns among objects that could decrease this randomness. The results show that while some systems, like Linux distributions, provide robust randomization, others, like Windows and MacOS, often fail to adequately randomize key areas like executable code and libraries. Moreover, we find a significant entropy reduction in the entropy of libraries after the Linux 5.18 version and identify correlation paths that an attacker could leverage to reduce exploitation complexity significantly. Ultimately, we rank the identified weaknesses based on severity and validate our entropy estimates with a proof-of-concept attack. In brief, this paper provides the first comprehensive evaluation of ASLR effectiveness across different operating systems and highlights opportunities for Operating System (OS) vendors to strengthen ASLR implementations.

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

↑