2020 · Conference paper
HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation
HALucinator rehosts monolithic ARM Cortex-M firmware by identifying hardware-abstraction-library functions and replacing them with authored Python handlers and peripheral models. LibMatch locates library interfaces; the QEMU/Avatar2 implementation supports interactive I/O, while the paper-associated HAL-fuzz variant uses AFL-Unicorn for fuzzing.
Scope and limitations
LibMatch requires an available HAL/library and a sufficiently similar compilation environment; compiler variation and inlining limit matching. Rehosting also needs a QEMU-supported architecture, firmware memory layout, interception addresses and authored handlers/models. Unmodeled direct hardware accesses may return zero or ignore writes; timing and peripheral behavior are simplified. The demonstrations cover the tested firmware rehosting and fuzzing cases; hardware equivalence, universal firmware coverage, complete device reconstruction and original-source recovery remain outside their scope.
Why it fits this collection
Shows how binary library identification and explicit environment models can reconstruct enough of an embedded execution environment to analyze existing firmware, with the abstraction boundary made visible.
Cite
@inproceedings{paper-halucinator,
title = {{HALucinator: Firmware Re-hosting Through Abstraction Layer Emulation}},
author = {{Abraham A Clements} and {Eric Gustafson} and {Tobias Scharnowski} and {Paul Grosen} and {David Fritz} and {Christopher Kruegel} and {Giovanni Vigna} and {Saurabh Bagchi} and {Mathias Payer}},
year = {2020},
url = {https://www.usenix.org/conference/usenixsecurity20/presentation/clements},
booktitle = {29th USENIX Security Symposium (USENIX Security 20)},
pages = {1201--1218},
publisher = {USENIX Association},
month = aug
}
Publication and review details
- Venue
- USENIX Security 2020
- Status
- Conference paper
- Publication / posting date
- August 2020
- Date source
- The official USENIX proceedings citation gives August 2020. Month precision is retained; the conference’s event dates are not substituted for a publication day.
The final USENIX paper spans pages 1201–1218; its DOI or arXiv identifier remains unverified. The paper-linked embedded-sec/halucinator repository carries GPLv3, while the separate ucsb-seclab/hal-fuzz implementation carries Apache-2.0; these licenses are not interchangeable. The original README describes a lightly tested Ubuntu 16.04/18.04 and Python 3 environment with Avatar2, QEMU and GDB, and points to a newer project separately. Reproduction needs firmware images, compatible HAL/SDK inputs and configuration; vendor firmware, dependencies and SDK rights remain separate. HAL-fuzz uses simplified handlers and deterministic timers; timing results are confined to that timer model, with wall-clock equivalence unevaluated.
Sources reviewed
Reviewed against the paper and its primary sources. Cite the original authors using the linked paper or BibTeX.
Discussed in the survey
Primary sources
- https://www.usenix.org/conference/usenixsecurity20/presentation/clements
- https://www.usenix.org/system/files/sec20-clements.pdf
- README.md GitHub · embedded-sec/halucinator · Revision fa85a1d
- LICENSE GitHub · embedded-sec/halucinator · Revision fa85a1d
- dependencies.md GitHub · embedded-sec/halucinator · Revision fa85a1d
- Developing.md GitHub · embedded-sec/halucinator · Revision fa85a1d
- doc/tutorial/0_Preqs.md GitHub · embedded-sec/halucinator · Revision fa85a1d
- doc/tutorial/1_HALucinator_overview.md GitHub · embedded-sec/halucinator · Revision fa85a1d
- install_deps.sh GitHub · embedded-sec/halucinator · Revision fa85a1d
- LICENSE GitHub · ucsb-seclab/hal-fuzz · Revision 1446408
- README.md GitHub · ucsb-seclab/hal-fuzz · Revision 1446408
- requirements.txt GitHub · ucsb-seclab/hal-fuzz · Revision 1446408