Breaking KASLR on Mobile Devices without Any Use of Cache Memory

被引:0
|
作者
Seddigh, Milad [1 ]
Esfahani, Mahdi [2 ]
Bhattacharya, Sarani [3 ]
Aref, Mohammad Reza [2 ]
Soleimany, Hadi [1 ]
机构
[1] Shahid Beheshti Univ, Cyberspace Res Inst, Tehran, Iran
[2] Sharif Univ Technol, Dept Elect Engn, Tehran, Iran
[3] IMEC Belgium, Leuven, Belgium
来源
PROCEEDINGS OF THE 2022 WORKSHOP ON ATTACKS AND SOLUTIONS IN HARDWARE SECURITY, ASHES 2022 | 2022年
关键词
Speculative execution; Non-canonical addresses; KASLR;
D O I
10.1145/3560834.3563823
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Microarchitectural attacks utilize the performance optimization constructs that have been studied over decades in computer architecture research and show the vulnerability of such optimizations in a realistic framework. One such highly performance driven vulnerable construct is speculative execution. In this paper, we focus on the problem of breaking the kernel address-space layout randomization (KASLR) on modern mobile devices without using cache memory as a medium of observation. However, there are some challenges to breaking KASLR on ARM CPUs. The first challenge is that eviction strategies on ARM CPUs are slow, and the microarchitectural attacks exploiting the cache as a covert channel cannot be implemented on modern ARM CPUs. The second challenge is that non-canonical addresses are stored in the store buffer, although they are invalid. As a result, previous microarchitectural attacks distinguish such addresses as valid kernel addresses erroneously. I In this paper, we focus on these challenges to close current gaps in the implementation of recent attacks against modern CPUs. We show how a Translation Look-aside Buffer (TLB) can be used to circumvent the cache memory as a covert channel in order to attack ASLR on both ARM and Intel CPUs. To the best of our knowledge, we are the first to break KASLR on ARM-based Android and iOS mobile devices. Furthermore, our attacks can be performed in JavaScript to break KASLR of the browser without the need for an Evict+Reload operation, which consumes a lot of time. The results of our attacks show that the attacker can distinguish whether or not the virtual address is valid in less than 0.0417 seconds and 0.0488 seconds on Android and iOS mobile devices, respectively.
引用
收藏
页码:45 / 54
页数:10
相关论文
共 50 条
  • [1] Breaking KASLR on mobile devices without any use of cache memory (extended version)
    Seddigh, Milad
    Esfahani, Mahdi
    Bhattacharya, Sarani
    Aref, Mohammad Reza
    Soleimany, Hadi
    JOURNAL OF CRYPTOGRAPHIC ENGINEERING, 2024, 14 (02) : 281 - 294
  • [2] Breaking KASLR Using Memory Deduplication in Virtualized Environments
    Kim, Taehun
    Kim, Taehyun
    Shin, Youngjoo
    ELECTRONICS, 2021, 10 (17)
  • [3] A Buffer Cache Algorithm for Hybrid Memory Architecture in Mobile Devices
    Oh, Chansoo
    Kang, Dong Hyun
    Lee, Minho
    Eom, Young Ik
    CLOUD COMPUTING (CLOUDCOMP 2015), 2016, 167 : 293 - 300
  • [4] FSLRU: A Page Cache Algorithm for Mobile Devices with Hybrid Memory Architecture
    Kang, Dong Hyun
    Eom, Young Ik
    IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, 2016, 62 (02) : 136 - 143
  • [5] Memory and Cache Contention Denial-of-Service Attack in Mobile Edge Devices
    Cho, Won
    Kong, Joonho
    APPLIED SCIENCES-BASEL, 2021, 11 (05):
  • [6] ARMageddon: Cache Attacks on Mobile Devices
    Lipp, Moritz
    Gruss, Daniel
    Spreitzer, Raphael
    Maurice, Clementine
    Mangard, Stefan
    PROCEEDINGS OF THE 25TH USENIX SECURITY SYMPOSIUM, 2016, : 549 - 564
  • [7] Greedy cache management techniques for mobile devices
    Ghandeharizadeh, Shahram
    Shayandeh, Shahin
    2007 IEEE 23RD INTERNATIONAL CONFERENCE ON DATA ENGINEERING WORKSHOP, VOLS 1-2, 2007, : 39 - 48
  • [8] Research on Cache Management for Mobile Learning Devices
    Liang, Ye
    ADVANCES IN COMPUTER SCIENCE AND EDUCATION APPLICATIONS, PT II, 2011, 202 : 155 - 162
  • [9] A Maximum Cache Value Policy in Hybrid Memory-Based Edge Computing for Mobile Devices
    Jia, Gangyong
    Han, Guangjie
    Du, Jiaxin
    Chan, Sammy
    IEEE INTERNET OF THINGS JOURNAL, 2019, 6 (03) : 4401 - 4410
  • [10] Memory Management on Mobile Devices
    Sareen, Kunal
    Blackburn, Stephen M.
    Hamouda, Sara S.
    Gidra, Lokesh
    PROCEEDINGS OF THE 2024 ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON MEMORY MANAGEMENT, ISMM 2024, 2024, : 15 - 29