Star on GitHubStar3.9k stars

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.

Report an outdated entry Suggest a translation fix

Discussed in the survey

Primary sources

  1. https://www.usenix.org/conference/usenixsecurity20/presentation/clements
  2. https://www.usenix.org/system/files/sec20-clements.pdf
  3. README.md GitHub · embedded-sec/halucinator · Revision fa85a1d
  4. LICENSE GitHub · embedded-sec/halucinator · Revision fa85a1d
  5. dependencies.md GitHub · embedded-sec/halucinator · Revision fa85a1d
  6. Developing.md GitHub · embedded-sec/halucinator · Revision fa85a1d
  7. doc/tutorial/0_Preqs.md GitHub · embedded-sec/halucinator · Revision fa85a1d
  8. doc/tutorial/1_HALucinator_overview.md GitHub · embedded-sec/halucinator · Revision fa85a1d
  9. install_deps.sh GitHub · embedded-sec/halucinator · Revision fa85a1d
  10. LICENSE GitHub · ucsb-seclab/hal-fuzz · Revision 1446408
  11. README.md GitHub · ucsb-seclab/hal-fuzz · Revision 1446408
  12. requirements.txt GitHub · ucsb-seclab/hal-fuzz · Revision 1446408
↑↓ move↵ open⌘↵ new tab