信息安全研究 ›› 2025, Vol. 11 ›› Issue (7): 611-.

• 学术论文 • 上一篇    下一篇

一种面向开源BMC固件的内生模糊测试框架

梅傲寒1谭毓安1常振轩1李元章2   

  1. 1(北京理工大学网络空间安全学院北京100081)
    2(北京理工大学计算机学院北京100081)
  • 出版日期:2025-07-29 发布日期:2025-07-29
  • 通讯作者: 梅傲寒 硕士.主要研究方向为固件安全、系统安全. mei_aohan@qq.com
  • 作者简介:梅傲寒 硕士.主要研究方向为固件安全、系统安全. mei_aohan@qq.com 谭毓安 博士,教授,博士生导师.主要研究方向为嵌入式系统安全、数据安全存储、固件漏洞利用、人工智能安全. tan2008@bit.edu.cn 常振轩 博士.主要研究方向为固件安全、模糊测试. czxvan@foxmail.com 李元章 博士,副教授.主要研究方向为存储安全、系统安全、嵌入式技术. popular@bit.edu.cn

A Buildin Fuzzing Framework for Opensource BMC Firmware

Mei Aohan1, Tan Yu’an1, Chang Zhenxuan1, and Li Yuanzhang2   

  1. 1(School of Cyberspace Science and Technology, Beijing Institute of Technology, Beijing 100081)
    2(School of Computer Science and Technology, Beijing Institute of Technology, Beijing 100081)
  • Online:2025-07-29 Published:2025-07-29

摘要: 基板管理控制器(baseboard management controller, BMC)是服务器远程管理组件,具有极高的系统权限,其固件的安全性问题需要重视.目前,由于良好的兼容性、较高的开放性以及较短的开发周期,以OpenBMC为代表的开源BMC固件备受青睐.面对固件动态分析存在的计算资源有限、执行环境复杂等问题,模糊测试技术结合固件仿真可以有效完成对固件的脆弱性分析.然而,现有工具主要针对简单闭源嵌入式固件设计,不能良好地应用到结构复杂的BMC固件上.面向开源BMC固件,提出了一种内生模糊测试框架BMCfuzz,实现了对通用程序分析工具的支持.该框架依托全系统仿真,将通用模糊测试工具直接部署到仿真固件中,绕开复杂仿真环境直接面向固件程序工作.同时,框架充分利用开源特性,通过源代码插桩方式提升模糊测试效率.对于难以仿真的复杂网络服务程序,提出了一种简单的生成模糊网络数据包注入方式处理模糊数据输入,使其能够更好地仿真与分析.实验表明,与二进制插桩方式相比,该框架的执行效率提升了12.1倍,代码覆盖率提升了6.17倍,具有更好的测试性能.

关键词: 基板管理控制器, 固件安全, 固件仿真, 模糊测试, 漏洞分析

Abstract: The baseboard management controller (BMC) is a remote management component of servers with high system privileges, and its firmware security is crucial. Currently, opensource BMC firmware, such as OpenBMC, is favored due to its good compatibility, high openness, and shorter development cycles. Facing challenges such as limited computational resources and complex execution environments in firmware dynamic analysis, fuzzing technology combined with firmware emulation can effectively perform vulnerability analysis. However, existing tools mainly target simple closedsource embedded firmware and are not wellsuited for the complex structure of BMC firmware. This paper presents a buildin fuzzing framework, BMCfuzz, tailored for opensource BMC firmware, which supports generalpurpose program analysis tools. The framework relies on full system emulation, allowing generalpurpose fuzzing tools to be directly deployed in the emulated firmware, bypassing the complex emulation environment and directly working on firmware programs. Additionally, the framework leverages opensource features to enhance fuzzing efficiency through source code instrumentation. For complex network service programs that are difficult to emulate, this paper proposes a simple method for generating fuzzed network packet injections to handle fuzzed data input, enabling better emulation and analysis. Experimental results show that the framework’s execution efficiency is improved by 12.1 times, and code coverage is increased by 6.17 times compared to binary instrumentation methods, demonstrating better testing performance.

Key words: baseboard management controller, firmware security, firmware emulation, fuzzing, vulnerability analysis

中图分类号: