LEMIX:支持将嵌入式应用作为Linux应用进行测试(扩展报告)
LEMIX: Enabling Testing of Embedded Applications as Linux Applications (Extended Report)
AI总结:
针对嵌入式软件重宿主测试高保真硬件仿真难度大的问题,提出LEMIX框架,将嵌入式应用转为脱离硬件的x86 Linux应用开展动态分析,在多RTOS的真实应用上验证了更优的代码覆盖率与漏洞检测能力。
摘要:
通过重宿主实现的动态分析是嵌入式系统软件安全评估的一项重要能力。现有重宿主技术旨在通过精准模拟硬件与外设交互来提供高保真执行环境。然而,随着可用外设数量不断增加,以及为各类硬件设计仿真模型的复杂度日益提升,这些技术在推广应用中面临挑战。此外,与指导现有研究的普遍认知相反,我们对已报告漏洞的分析表明,要暴露嵌入式软件中的大多数漏洞,并不需要高保真执行环境。我们的核心假设是,安全漏洞更有可能出现在更高的抽象层级。为验证这一假设,我们提出了LEMIX框架,该框架通过将嵌入式应用重宿主为脱离硬件依赖的x86 Linux应用,实现对嵌入式应用的动态分析。让嵌入式应用能在Linux上原生运行,不仅便于利用现有技术开展安全分析,还能借助Linux平台的强大硬件提升测试吞吐量。我们开发了多种技术来解决将嵌入式应用转换为Linux应用过程中涉及的难题。我们在4种实时操作系统(RTOS)的18个真实嵌入式应用上对LEMIX进行了评估,在12个应用及全部4个RTOS内核中发现了21个新漏洞。结果表明,LEMIX在代码覆盖率(覆盖率约为2倍)和漏洞检测(多发现18个漏洞)两方面均优于现有最先进技术。
英文摘要:
Dynamic analysis, through rehosting, is an important capability for security assessment in embedded systems software. Existing rehosting techniques aim to provide high-fidelity execution by accurately emulating hardware and peripheral interactions. However, these techniques face challenges in adoption due to the increasing number of available peripherals and the complexities involved in designing emulation models for diverse hardware. Additionally, contrary to the prevailing belief that guides existing works, our analysis of reported bugs shows that high-fidelity execution is not required to expose most bugs in embedded software. Our key hypothesis is that security vulnerabilities are more likely to arise at higher abstraction levels. To substantiate our hypothesis, we introduce LEMIX, a framework enabling dynamic analysis of embedded applications by rehosting them as x86 Linux applications decoupled from hardware dependencies. Enabling embedded applications to run natively on Linux facilitates security analysis using available techniques and takes advantage of the powerful hardware available on the Linux platform for higher testing throughput. We develop various techniques to address the challenges involved in converting embedded applications to Linux applications. We evaluated LEMIX on 18 real-world embedded applications across four RTOSes and found 21 new bugs in 12 of the applications and all 4 of the RTOS kernels. We report that LEMIX is superior to existing state-of-the-art techniques both in terms of code coverage (~2x more coverage) and bug detection (18 more bugs).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。