ECMO: Rehost Embedded Linux Kernels via Peripheral Transplantation
summary
Describes a toolchain that rehosts embedded Linux kernels in QEMU by replacing early-boot peripherals (interrupt controller, timer, UART) with existing emulated ones using peripheral transplantation and transplanted drivers. Workflow uses Binwalk to extract and decompress kernels, static disassembly to locate ~24 cross-version driver entry points, and driver binaries loaded into opaque memory via a hijacked page-table walk plus injected forward/backward pointers. Evaluated on 815 kernels with 87% success, supports loading NIC modules and fuzzing at ~400 exec/s.
AI-written summary · about
chapters (21)
- 0:00Introduction to ECMO
- 1:14Motivation for rehosting
- 3:01What is rehosting
- 5:08Challenges in rehosting
- 6:15Key insights of ECMO
- 7:19Peripheral transplantation
- 9:06Example of transplantation
- 9:50Workflow of ECMO
- 10:12Decompressing Linux kernel
- 11:14Identifying ACPI pointers
- 15:10Generating ECMA drivers
- 16:35Opaque memory implementation
- 17:38Evaluation setup
- 18:46Firmware datasets
- 19:29Pointer identification results
- 20:11Rehosting success rate
- 21:12Reliability and stability tests
- 22:19Supporting additional peripherals
- 23:02Applications of ECMO
- 23:44Conclusion and future work
- 24:26Q&A
