TEEzz: Fuzzing Trusted Applications on COTS Android Devices
Security and privacy-sensitive smartphone applications use trusted execution environments (TEEs) to protect sensitive operations from malicious code. By design, TEEs have privileged access to the entire system but expose little to no insight into their inner workings. Moreover, real-world TEEs enforce strict format and protocol interactions when communicating with trusted applications (TAs), which prohibits effective automated testing.
TEEzz is the first TEE-aware fuzzing framework capable of effectively fuzzing TAs in situ on production smartphones, i.e., the TA runs in the encrypted and protected TEE and the fuzzer may only observe interactions with the TA but has no control over the TA's code or data. Unlike traditional fuzzing techniques, which monitor the execution of a program being fuzzed and view its memory after a crash, TEEzz only requires a limited view of the target. TEEzz overcomes key limitations of TEE fuzzing (e.g., lack of visibility into the executed TAs, proprietary exchange formats, and value dependencies of interactions) by automatically attempting to infer the field types and message dependencies of the TA API through its interactions, designing state- and typeaware fuzzing mutators, and creating an in situ, on-device fuzzer.
Due to the limited availability of systematic fuzzing research for TAs on commercial-off-the-shelf (COTS) Android devices, we extensively examine existing solutions, explore their limitations, and demonstrate how TEEzz improves the state-of-the-art. First, we show that general-purpose kernel driver fuzzers are ineffective for fuzzing TAs. Then, we establish a baseline for fuzzing TAs using a ground-truth experiment. We show that TEEzz outperforms other blackbox fuzzers, can improve greybox approaches (if TAs source code is available), and even outperforms greybox approaches for stateful targets. We found 13 previously unknown bugs in the latest versions of OPTEE TAs in total, out of which TEEzz is the only fuzzer to trigger three. We also ran TEEzz on popular phones and found 40 unique bugs for which one CVE was assigned so far.
Cite this item
Busch, M., Machiry, A., Spensky, C., Vigna, G., Kruegel, C., & Payer, M. (2023). TEEzz: Fuzzing Trusted Applications on COTS Android Devices. 2023 Ieee Symposium on Security and Privacy, Sp, IEEE Symposium on Security and Privacy, 1204–1219. https://doi.org/10.1109/SP46215.2023.00013
Click Copy to copy the citation, or select the text manually.
WOS:001035501501012
2023-01-01
Los Alamitos
978-1-6654-9336-9
IEEE Symposium on Security and Privacy
1204
1219
REVIEWED
EPFL
| Event name | Event place | Event date |
San Francisco, CA | May 21-25, 2023 | |