μUSB: Practical and Safe USB Driver Reuse for Arm TrustZone
Xuankai Zhang, Sijin Li, Pei Meng, Meng Wang, Yongzhao Zhang, Ting Chen, Xiaosong Zhang, Liwei Guo
摘要
TrustZone isolates device access with secure I/O, yet lacks support for USB devices, which constitute the most diverse peripherals. Existing approaches to integrate USB drivers into the TEE are impractical due to the complex USB protocols, high-frequency DMA accesses, and varying vendor implementations.
In this paper, we present µUSB, a system that derives a functional, micro USB driver for TrustZone from the observable concrete execution traces of a full-fledged, complex USB driver, an approach we dub record, lift, and replay. Based on the key insight of kernel specialization and the deterministic nature of USB FSMs, µUSB proposes a lightweight mutational recorder and a novel program analysis technique, addressing two challenges: how to record USB execution sufficiently and analyze the traces deeply?
Across four major USB classes and six diverse devices, µUSB generates performant, ready-to-use USB drivers for TrustZone, enabling in-TEE apps to, for the first time, leverage complex USB devices with near-native performance while still enjoying full TrustZone protection.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- RT-TEE: Real-time System Availability for Cyber-physical Systems using ARM TrustZone 引用了 Keystone: an open framework for architecting trusted execution environments
- Static Detection of Unsafe DMA Accesses in Device Drivers 引用了 Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile Systems
- StrongBox: A GPU TEE on Arm Endpoints 引用了 RT-TEE: Real-time System Availability for Cyber-physical Systems using ARM TrustZone
它引用的 Paper24
- Keystone: an open framework for architecting trusted execution environmentsDayeol Lee, David Kohlbrenner, Shweta Shinde, Krste Asanovic 等EuroSys 2020 · 381 次引用
- Charm: Facilitating Dynamic Analysis of Device Drivers of Mobile SystemsSeyed Mohammadjavad Seyed Talebi, Hamid Tavakoli, Hang Zhang, Zheng Zhang 等USENIX Security 2018 · 81 次引用
- RT-TEE: Real-time System Availability for Cyber-physical Systems using ARM TrustZoneJinwen Wang, Ao Li, Haoran Li, Chenyang Lu 等S&P 2022 · 69 次引用
- StrongBox: A GPU TEE on Arm EndpointsYunjie Deng, Chenxu Wang, Shunchang Yu, Shiqing Liu 等CCS 2022 · 37 次引用
- Static Detection of Unsafe DMA Accesses in Device DriversJia-Ju Bai, Tuo Li, Kangjie Lu, Shi-Min HuUSENIX Security 2021 · 28 次引用
相关 Paper
- Minimum viable device drivers for ARM trustzoneLiwei Guo, Felix Xiaozhu LinEuroSys 2022 · 15 次引用
- ReUSB: Replay-Guided USB Driver FuzzingJisoo Jang, Minsuk Kang, Dokyung SongUSENIX Security 2023
- MyTEE: Own the Trusted Execution Environment on Embedded DevicesSeung-Kyun Han, Jinsoo JangNDSS 2023
- USBFuzz: A Framework for Fuzzing USB Drivers by Device EmulationHui Peng, Mathias PayerUSENIX Security 2020
- PARTEMU: Enabling Dynamic Analysis of Real-World TrustZone Software Using EmulationLee Harrison, Hayawardh Vijayakumar, Rohan Padhye, Koushik Sen 等USENIX Security 2020
