Ex-vivo dynamic analysis framework for Android device drivers
摘要
The ability to execute and analyze code makes many security tasks such as exploit development, reverse engineering, and vulnerability detection much easier. However, on embedded devices such as Android smartphones, executing code in-vivo, on the device, for analysis is limited by the need to acquire such devices, the speed of the device, and in some cases the need to flash custom code onto the devices. The other option is to execute the code ex-vivo, off the device, but this approach either requires porting or complex hardware emulation.
In this paper, we take advantage of the observation that many execution paths in drivers are only superficially dependent on both the hardware and kernel on which the driver executes, to create an ex-vivo dynamic driver analysis framework for Android devices that requires neither porting nor emulation. We achieve this by developing a generic evasion framework that enables driver initialization by evading hardware and kernel dependencies instead of precisely emulating them, and then developing a novel Ex-vivo AnalySIs framEwoRk (EASIER) that enables offdevice analysis with the initialized driver state. Compared to on-device analysis, our approach enables the use of userspace tools and scales with the number of available commodity CPU's, not the number of smartphones.
We demonstrate the usefulness of our framework by targeting privilege escalation vulnerabilities in system call handlers in platform device drivers. We find it can load 48/62 (77%) drivers from three different Android kernels: MSM, Xiaomi, and Huawei. We then confirm that it is able to reach and detect 21 known vulnerabilities. Finally, we have discovered 12 new bugs which we have reported and confirmed.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary 引用了 Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile Systems
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- PrIntFuzz: fuzzing Linux drivers via automated virtual device simulation 引用了 PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
- PrIntFuzz: fuzzing Linux drivers via automated virtual device simulation 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- PrIntFuzz: fuzzing Linux drivers via automated virtual device simulation 引用了 Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile Systems
- PrIntFuzz: fuzzing Linux drivers via automated virtual device simulation 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Pandawan: Quantifying Progress in Linux-based Firmware Rehosting 引用了 Towards Automated Dynamic Analysis for Linux-based Embedded Firmware
- Hacksaw: Hardware-Centric Kernel Debloating via Device Inventory and Dependency Analysis 引用了 PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
- Hacksaw: Hardware-Centric Kernel Debloating via Device Inventory and Dependency Analysis 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Dynamic Detection of Vulnerable DMA Race Conditions 引用了 PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
- Dynamic Detection of Vulnerable DMA Race Conditions 引用了 PrIntFuzz: fuzzing Linux drivers via automated virtual device simulation
- Dynamic Detection of Vulnerable DMA Race Conditions 引用了 Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile Systems
- Dynamic Detection of Vulnerable DMA Race Conditions 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile Systems 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile Systems 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Virtual Device Farms for Mobile App Testing at Scale: A Pursuit for Fidelity, Efficiency, and Accessibility 引用了 Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile Systems
引用它的顶会 Paper12
- PrIntFuzz: fuzzing Linux drivers via automated virtual device simulationZheyu Ma, Bodong Zhao, Letu Ren, Zheming Li 等ISSTA 2022 · 23 次引用
- Virtual Device Farms for Mobile App Testing at Scale: A Pursuit for Fidelity, Efficiency, and AccessibilityHao Lin, Jiaxing Qiu, Hongyi Wang, Zhenhua Li 等MobiCom 2023 · 18 次引用
- Pandawan: Quantifying Progress in Linux-based Firmware RehostingIoannis Angelakopoulos, Gianluca Stringhini, Manuel EgeleUSENIX Security 2024 · 5 次引用
- Hacksaw: Hardware-Centric Kernel Debloating via Device Inventory and Dependency AnalysisZhenghao Hu, Sangho Lee, Marcus PeinadoCCS 2023 · 3 次引用
- Dynamic Detection of Vulnerable DMA Race ConditionsBrian Johannesmeyer, Raphael Isemann, Cristiano Giuffrida, Herbert BosCCS 2025
它引用的 Paper6
- Towards Automated Dynamic Analysis for Linux-based Embedded FirmwareDaming D. Chen, Maverick Woo, David Brumley, Manuel EgeleNDSS 2016 · 428 次引用
- kAFL: Hardware-Assisted Feedback Fuzzing for OS KernelsSergej Schumilo, Cornelius Aschermann, Robert Gawlik, Sebastian Schinzel 等USENIX Security 2017 · 324 次引用
- DIFUZE: Interface Aware Fuzzing for Kernel DriversJake Corina, Aravind Machiry, Christopher Salls, Yan Shoshitaishvili 等CCS 2017 · 195 次引用
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS BoundaryDokyung Song, Felicitas Hetzelt, Dipanjan Das, Chad Spensky 等NDSS 2019 · 114 次引用
- Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile SystemsSeyed Mohammadjavad Seyed Talebi, Hamid Tavakoli, Hang Zhang, Zheng Zhang 等USENIX Security 2018 · 81 次引用
相关 Paper
- DROIDFUZZ: Proprietary Driver Fuzzing for Embedded Android DevicesJianzhong Liu, Yuheng Shen, Yifei Chu, Qiang Zhang 等DAC 2025
- LEMIX: Enabling Testing of Embedded Applications as Linux ApplicationsSai Ritvik Tanksalkar, Siddharth Muralee, Srihari Danduri, Paschal C. Amusuo 等USENIX Security 2025
- The Doom of Device Drivers: Your Android Device (Most Likely) has N-Day Kernel VulnerabilitiesLukas Maar, Florian Draschbacher, Lorenz Schumm, Ernesto Martínez García 等USENIX Security 2025
- PacDroid: A Pointer-Analysis-Centric Framework for Security Vulnerabilities in Android AppsMenglong Chen, Tian Tan, Minxue Pan, Yue LiICSE 2025 · 1 次引用
- FIRMSCOPE: Automatic Uncovering of Privilege-Escalation Vulnerabilities in Pre-Installed Apps in Android FirmwareMohamed Elsabagh, Ryan Johnson, Angelos Stavrou, Chaoshun Zuo 等USENIX Security 2020
