paperbot · PL 论文追踪

全部论文 待读 收藏

P2 FirmGuide: Boosting the Capability of Rehosting Embedded Linux Kernels through Model-Guided Kernel Execution

FirmGuide:通过模型引导的内核执行提升嵌入式 Linux 内核的 rehosting 能力
ASE 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE)2021匹配度 2/10 · 该论文聚焦嵌入式 Linux 内核在 QEMU 中的 rehosting 与外设建模,属于系统/固件动态分析工具,与用户关注的静态分析、LLM/Agent 交叉、浮点程序分析或贝叶斯程序分析无直接关系;仅在 fuzzing/动态分析作为应用场景上有微弱关联。引用 10 inbox
Qiang Liu, Cen Zhang, Lin Ma, Muhui Jiang, Yajin Zhou, Lei Wu, Wenbo Shen, Xiapu Luo, Yang Liu, Kui Ren
crossref: 2026-09-12

AI 速览

一句话:提出模型引导内核执行,半自动生成外设模型并合成 QEMU 虚拟机,实现嵌入式 Linux 内核 rehosting。

嵌入式系统广泛使用 Linux 内核,但硬件碎片化使 QEMU 难以支持大量外设,导致无法进行全系统动态分析。本文提出模型引导的内核执行技术,结合 Linux 内核的外设抽象与内核-外设交互,半自动生成外设模型,并合成 QEMU 虚拟机以启动动态分析。作者实现 FirmGuide,生成 9 个完整功能与 64 个最小功能外设模型,覆盖 26 种 SoC。对 6,188 个固件镜像的评估显示,该方法在 2 种架构、22 个版本上成功 rehosting 超过 95% 的 Linux 内核,而原版 QEMU 均无法完成;LTP 验证了可靠性,并展示了漏洞分析与模糊测试应用。

问题
嵌入式 Linux 内核的硬件外设碎片化导致 QEMU 等全系统模拟器缺乏支持,难以开展动态分析。
方法
提出模型引导的内核执行,利用 Linux 内核的外设抽象与内核-外设交互半自动生成外设模型,并据此合成 QEMU 虚拟机来 rehosting 嵌入式 Linux 内核。
评估
实现 FirmGuide,生成 9 个完整和 64 个最小功能模型覆盖 26 种 SoC;在 6,188 个固件镜像上 rehosting 超过 95% 的 2 架构 22 版本 Linux 内核,原版 QEMU 均失败,并用 LTP 及漏洞分析/模糊测试验证。
原文摘要(Abstract)

Linux kernel is widely used in embedded systems. To understand practical threats to the Linux kernel, we need to perform dynamic analysis with a full-system emulator, e.g., QEMU. However, due to hardware fragmentation, e.g., various types of peripherals, most embedded systems are not currently supported by QEMU. Though some progress has been made on rehosting firmware, it mainly focuses on user space programs or simple real-time operating systems.The goal of this work is to boost the capability of rehosting the embedded Linux kernels in QEMU. By doing so, dynamic analysis systems can be firstly applied on embedded Linux kernels by leveraging off-the-shelf tools upon QEMU. Accordingly, we proposed a new technique called model-guided kernel execution. It combines the peripheral abstractions in the Linux kernel and kernel-peripheral interactions to semi-automatically generate peripheral models that are then used to synthesize new QEMU virtual machines to start the dynamic analysis.We have implemented a prototype called FirmGuide. It generates 9 peripheral models with full functionality and 64 with minimum functionality covering 26 SoCs. Our evaluation with 6,188 firmware images shows that it can successfully rehost more than 95% of Linux kernels in 2 architectures and 22 versions. None of them can be rehosted in the vanilla QEMU. The result of the LTP benchmark shows the reliability and robustness of the rehosted Linux kernels. We further conduct two security applications, i.e., vulnerability analysis and fuzzing, on the rehosted Linux kernels to demonstrate the usage scenarios.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6560,
  title = {FirmGuide: Boosting the Capability of Rehosting Embedded Linux Kernels through Model-Guided Kernel Execution},
  author = {Qiang Liu and Cen Zhang and Lin Ma and Muhui Jiang and Yajin Zhou and Lei Wu and Wenbo Shen and Xiapu Luo and Yang Liu and Kui Ren},
  booktitle = {ASE},
  year = {2021},
  doi = {10.1109/ase51524.2021.9678653}
}