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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Binosi, Lorenzo, Barzasi, Gregorio, Carminati, Michele, Zanero, Stefano, Polino, Mario
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910581806596096
author Binosi, Lorenzo
Barzasi, Gregorio
Carminati, Michele
Zanero, Stefano
Polino, Mario
author_facet Binosi, Lorenzo
Barzasi, Gregorio
Carminati, Michele
Zanero, Stefano
Polino, Mario
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_15107
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Illusion of Randomness: An Empirical Analysis of Address Space Layout Randomization Implementations
Binosi, Lorenzo
Barzasi, Gregorio
Carminati, Michele
Zanero, Stefano
Polino, Mario
Cryptography and Security
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.
title The Illusion of Randomness: An Empirical Analysis of Address Space Layout Randomization Implementations
topic Cryptography and Security
url https://arxiv.org/abs/2408.15107