arXiv:2608.29737cs.CRAug 2026

Manuscript Offprint

arXiv:2608.29737

Reactive Peripheral Modeling for Faithful Firmware Rehosting

Qinying Wang, Florian Hofhammer, Eduard Vlad, Jianqiang Wang, Marcel Busch, Shouling Ji, Mathias Payer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Embedded BLE stacks are ubiquitous and therefore security critical. Rehosting enables tight control and introspection during testing but existing approaches largely fail to reach deeper protocol states and cannot drive the stacks beyond early-stage initialization. This limitation is not specific to BLE, but reflects a more fundamental limitation in existing rehosting approaches: their inability to faithfully model complex peripheral semantics and dependencies. In particular, existing work typically relies on passive approximations of peripheral behavior, overlooking three key aspects of peripheral semantics: (i) the interplay among interrupts, MMIO, and DMA; (ii) implicit state transitions within peripherals; (iii) interactions across multiple peripherals.

To address this challenge, we propose Reactive Peripheral Modeling (RPM), an abstraction that models hardware peripherals as reactive and stateful systems. RPM captures peripheral behavior through event-condition-action semantics, enabling faithful representation of interrupt, MMIO, DMA scheduling, implicit state transitions and cross-peripheral interactions. We implement RPM in BLUEZZ for BLE firmware rehosting and fuzzing, and show that such reactive modeling is necessary to reach deep protocol states, including connection establishment, service discovery, and post-connection processing. We evaluate BLUEZZ on representative BLE stacks, including NimBLE, Zephyr, and Nordic SoftDevice, a closed-source commercial stack. Across 18 targets, BLUEZZ achieves over 2.6× the basic-block coverage of prior state-of-the-art rehosting approaches on average. Unlike prior approaches that remain largely confined to advertising and scanning logic, BLUEZZ reliably exercises connected BLE states and uncovers five previously unknown vulnerabilities that manifest only after connection establishment. Finally, we show that RPM generalizes beyond BLE to other embedded firmware across different MCUs.

CCS Concepts

• Do Not Use This Code → Generate the Correct Terms for Your Paper.