Abstract
dc:descriptionWe interact with embedded systems daily, both knowingly and unknowingly. From fitness trackers over WiFi routers up to the controllers powering our washing machines' laundry cycles, almost any electrical device in our modern world has some kind of embedded controller included. These devices are increasingly network-connected and often have an extremely poor security track record. At the same time, they have access to a lot of sensitive information about our health, browsing behavior, everyday habits, and much more. These properties make them attractive to attackers. Therefore, extensively analyzing and testing these devices is paramount for protecting us from abuse. Security and privacy analyses on embedded devices are typically limited by low-power on-device compute and lack of introspection capabilities. To improve upon these limitations, we call for abstractions in the hardware-software stack that support us in our analyses. In our work, we introduce abstractions at three different levels: at the boundary between hardware and software (hardware abstractions), the operating system kernel and user space software (software abstractions), and between devices (protocol abstractions). Our first contribution, SURGEON, abstracts away an embedded device's hardware to run its firmware in a virtual environment in an efficient, performant, and accurate manner. SURGEON leverages high-level emulation (HLE) to emulate peripherals at the hardware abstraction layer (HAL) level, and runs the targeted Arm Cortex-M firmware natively in an Arm Cortex-A user space process instead of going through an emulation layer. SURGEON provides high fidelity for its peripheral emulation thanks to the semantics attached to the HAL interface and executes firmware for dynamic analysis use cases up to 8x faster than existing work thanks to its native execution model. Our second work, uzrkaller, introduces abstraction at the system call layer. Embedded Linux-based firmware's user space components interact with the outside world through system calls into the underlying kernel. These system calls carry semantic information which we can leverage to emulate dependencies on other system components or hardware at this level. uzrkaller builds on top of this insight to comprehensively rehost firmware components that have been missed by previous work. Guided by an analyst, uzrkaller proves effective in finding previously unknown bugs. We have reported three security-relevant bugs to upstream vendors to date. Last, PrivacyShield analyzes offline finding systems such as Apple's Find My at the protocol level. By identifying fundamental flaws in how these offline finding systems work, we propose a privacy layer on top of these systems to protect users from unsolicited tracking. More specifically, we recognize that locating a tracker in these systems relies on unauthenticated Bluetooth Low Energy (BLE) broadcast messages. These are prone to spoofing due to their unauthenticated nature, which we exploit to build a relay-based location masking system. We empirically evaluate its effectiveness in protecting stalking victims and call for fundamental changes in the underlying tracking system. These works collectively provide a cross-section view across the hardware-software stack in embedded devices. We demonstrate how new firmware analysis techniques and user protection mechanisms can be built on top of the aforementioned abstraction levels.
Degree
thesis:*- Grantor dc:publisher
- EPFL
- Year dc:date
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Hofhammer, Florian
- Contributors dc:contributor
-
- Payer, Mathias Josef
Subjects
dc:subject × 5Rights
- Language dc:language
- eng