KIT | KIT-Bibliothek | Impressum | Datenschutz

Binary-Level Code Injection for Automated Tool Support on the ESP32 Platform

Plach, Benjamin; Börsig, Matthias ORCID iD icon 1; Müller, Maximilian ORCID iD icon 1; Gröll, Roland 1; Dukek, Martin 1; Baumgart, Ingmar 1
1 FZI Forschungszentrum Informatik (FZI)

Abstract (englisch):

The analysis and testing of proprietary ESP32 firmware by independent security experts is often hampered by the lack of specialized tools that provide the necessary capabilities and ease of use to effectively support these tasks.
This paper presents a novel binary rewriting framework that addresses this challenge by allowing additional instructions to be inserted into ESP32 firmware without altering its original functionality. The framework leverages two already existing tools, Esptool and ESP32-Image-Parser, to extract firmware from ESP32 devices and convert it to ELF format, simplifying both the implementation of the framework and the development of subsequent tools.
In addition, an assembler has been developed to encode Xtensa assembly instructions without the need for linking the code afterward, facilitating the development of patch code. The framework includes a new patching methodology adapted from x86 patching tactics to the Xtensa architecture. These tactics have been implemented in a binary rewriting framework capable of inserting code at almost arbitrary locations without affecting the original firmware functionality.
A proof of concept tool that inserts fuzzing instrumentation was implemented to demonstrate the utility of the framework. ... mehr


Postprint §
DOI: 10.5445/IR/1000189321
Frei zugänglich ab 30.01.2026
Zugehörige Institution(en) am KIT FZI Forschungszentrum Informatik (FZI)
Publikationstyp Buchaufsatz
Publikationsmonat/-jahr 01.2025
Sprache Englisch
Identifikator ISBN: 978-3-031-79006-5
ISSN: 0302-9743
KITopen-ID: 1000189321
Erschienen in Secure IT Systems – 29th Nordic Conference, NordSec 2024 Karlstad, Sweden, November 6–7, 2024 Proceedings. Ed.: L. Horn Iwaya
Verlag Springer Nature Switzerland
Seiten 121–138
Serie Lecture Notes in Computer Science (LNCS) ; 15396
Vorab online veröffentlicht am 29.01.2025
Nachgewiesen in Dimensions
Scopus
OpenAlex
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page