BaseSAFE
Authors:
Open Access
- 8 July 2020
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 122-132
Abstract
Rogue base stations are an effective attack vector. Cellular basebands represent a critical part of the smartphone's security: they parse large amounts of data even before authentication. They can, therefore, grant an attacker a very stealthy way to gather information about calls placed and even to escalate to the main operating system, over-the-air. In this paper, we discuss a novel cellular fuzzing framework that aims to help security researchers find critical bugs in cellular basebands and similar embedded systems. BaseSAFE allows partial rehosting of cellular basebands for fast instrumented fuzzing off-device, even for closed-source firmware blobs. BaseSAFE's sanitizing drop-in allocator, enables spotting heap-based buffer-overflows quickly. Using our proof-of-concept harness, we fuzzed various parsers of the Nucleus RTOS-based MediaTek cellular baseband that are accessible from rogue base stations. The emulator instrumentation is highly optimized, reaching hundreds of executions per second on each core for our complex test case, around 15k test-cases per second in total. Furthermore, we discuss attack vectors for baseband modems. To the best of our knowledge, this is the first use of emulation-based fuzzing for security testing of commercial cellular basebands. Most of the tooling and approaches of BaseSAFE are also applicable for other low-level kernels and firmware. Using BaseSAFE, we were able to find memory corruptions including heap out-of-bounds writes using our proof-of-concept fuzzing harness in the MediaTek cellular baseband. BaseSAFE, the harness, and a large collection of LTE signaling message test cases will be released open-source upon publication of this paper.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- Basebads: Automated security analysis of baseband firmware2019
- PTfuzz: Guided Fuzzing With Processor Trace FeedbackIEEE Access, 2018
- Avatar2: A Multi-Target Orchestration Platform2018
- What You Corrupt Is Not What You Crash: Challenges in Fuzzing Embedded Devices2018
- LTEInspector: A Systematic Approach for Adversarial Testing of 4G LTE2018
- White Rabbit in Mobile2016
- Practical Attacks Against Privacy and Availability in 4G/LTE Mobile Communication Systems2016
- T-Fuzz: Model-Based Fuzzing for Robustness Testing of Telecommunication Protocols2014
- A Tibetan input method based on MTK for mobile phone2011
- Discovering and exploiting 802.11 wireless driver vulnerabilitiesJournal of Computer Virology and Hacking Techniques, 2007