E-Trojans: Ransomware, Tracking, DoS, and Data Leaks on Battery-powered Embedded Systems
Marco Casagrande, Riccardo Cestaro, Eleonora Losiouk, Mauro Conti, Daniele Antonioli
TL;DR
The paper reveals an internal security risk landscape in Xiaomi M365 and Mi3 e-scooters by reverse-engineering BMS/DRV/BTS and UART/I2C channels. It identifies four design flaws enabling remote BCTRL compromise and introduces five E-Trojans (OBD, UBR, UTI, DES, PLR) implemented via a modular toolkit to exploit these flaws remotely or in proximity. The authors demonstrate the attacks on real devices, show potential hazards such as battery destruction and fires, and propose four practical countermeasures (encryption, signing, UART protection, and rate limiting). They also provide an open-source toolkit and report responsible disclosure that led to mitigations in newer models. This work significantly broadens the security focus from external interfaces to internal BES internals and underscores urgent needs for secure firmware boundaries and internal-bus protections.
Abstract
Battery-powered embedded systems (BESs) have become ubiquitous. Their internals include a battery management system (BMS), a radio interface, and a motor controller. Despite their associated risk, there is little research on BES internal attack surfaces. To fill this gap, we present the first security and privacy assessment of e-scooters internals. We cover Xiaomi M365 (2016) and ES3 (2023) e-scooters and their interactions with Mi Home (their companion app). We extensively RE their internals and uncover four critical design vulnerabilities, including a remote code execution issue with their BMS. Based on our RE findings, we develop E-Trojans, four novel attacks targeting BES internals. The attacks can be conducted remotely or in wireless proximity. They have a widespread real-world impact as they violate the Xiaomi e-scooter ecosystem safety, security, availability, and privacy. For instance, one attack allows the extortion of money from a victim via a BMS undervoltage battery ransomware. A second one enables user tracking by fingerprinting the BES internals. With extra RE efforts, the attacks can be ported to other BES featuring similar vulnerabilities. We implement our attacks and RE findings in E-Trojans, a modular and low-cost toolkit to test BES internals. Our toolkit binary patches BMS firmware by adding malicious capabilities. It also implements our undervoltage battery ransomware in an Android app with a working backend. We successfully test our four attacks on M365 and ES3, empirically confirming their effectiveness and practicality. We propose four practical countermeasures to fix our attacks and improve the Xiaomi e-scooter ecosystem security and privacy.
